Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
This tag is for questions about the Stack Exchange API version 2. First released Feb 2012.
5
votes
Accepted
Is there a limit on the data that is returned from stackoverflow API calls?
The API allows you to set a pagesize of 0 to 100 (with the exception of the /sites route, which allows larger values), and defaults to a maximum of 30 items in the response.
To get all of the items a …
1
vote
Accepted
Serel returns a JSON Parse error for the 'C#' tag
I imagine the API is returning a Bad Request response because the hash mark isn't properly encoded in the URL.
As Serel doesn't appear to attempt to encode the passed-in values at the moment, you sho …
6
votes
Accepted
API for getting multiple (yet specific users)
Most routes that take an ID, including the /users route, will accept multiple values separated by semicolons. For example, a query like
/users/1%3B22656?site=stackoverflow
will give you results for …
8
votes
Accepted
StackExchange API /sites/ does not return all the sites
You need to pass in a sufficiently large pagesize value, per the documentation:
The pagesize parameter for this method is unbounded, in acknowledgement that for many applications repeatedly fetchi …
8
votes
Accepted
Give us a site's API name in the list of a user's sites
I don't see any particular reason not to add it, but there are some workarounds you can use in the meantime:
Build a cache of all site information with the site URL as the key, and then look up the …
2
votes
How to track the open/closed status over the history of a question?
You can get at this information, but it's messy.
Using the /posts/{id}/revisions route you can query for the list of all revision events for a particular question, which includes close/reopen events. …
3
votes
How to deal with the "Too Many Requests" error coming as HTML?
It sounds like you've either got a bug which is in fact making more requests than you think it is, or you're on a network where there's some other source of high-frequency requests.
You're not suppos …
3
votes
Accepted
Is the display name meant to be escaped HTML in the 2.0 version of the API?
It's mentioned under the Safety section of the filters documentation that by default all response data can be safely inserted into HTML, which is why the data is pre-escaped in this case. You can try …
3
votes
Are the "body", "comments" and "answers" parameters supported in the API version 2.x?
Are they moved to filters?
Yes, you need to generate a filter that includes the question.body, question.comments, and question.answers fields. There are shorthand filters (i.e. _bca) that will do …