Skip to main content
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
Results tagged with
Search options answers only not deleted user 4746

Questions about the Stack Exchange API *only*. If your question concerns any other API, do not use this tag. For bugs, please (also) use the version tag, EG [api-v2.2], that the bug applies to.

3 votes
Accepted

Why do you need to specify a site when getting the inbox?

You should use /inbox instead, which is a network route instead of a site-specific one. As mentioned in the documentation, the site-specific route is mostly just provided for convenience of consumers …
amit jha's user avatar
  • 842
5 votes
Accepted

404 "This Method cannot be called this way" when getting user's inbox

I don't believe that that route accepts POST requests (as it's non-actionable), so you should have better luck sending a GET request instead. Routes that require auth tokens necessitate HTTPS, but st …
Tim Stone's user avatar
  • 4,676
3 votes

Where are the built-in filters?

withbody, which is default plus the *.body fields none, which is empty total, which includes just .total The page also lists a few filters that can be used for backwards compatibility with API 1. …
Tim Stone's user avatar
  • 4,676
4 votes
Accepted

Limiting the number of items returned by a request?

Just set pagesize in the URL, like: https://api.stackexchange.com/2.2/tags?pagesize=10&order=desc&sort=popular&site=stackoverflow
Tim Stone's user avatar
  • 4,676
3 votes
Accepted

Question's body rendering in Android's webview

If you query the site list, the markdown_extensions property for each site will contain the list of enabled post-processing extensions, if applicable. Some possible extensions are: Balsamiq MathJax …
Community's user avatar
  • 1
3 votes
Accepted

Total Number Of Answers

It does return all the answers, but they're paged - by default you'll only get 30 at a time. You'll likely want to increase pagesize to 100, and then add the additional code necessary to make subseque …
Tim Stone's user avatar
  • 4,676
4 votes
Accepted

Does the API have a method to get the total favorite count of a question?

You just need to create and pass in a filter that will return favorite_count. For example, this query will return the information for this question, including "favorite_count": 18
Community's user avatar
  • 1
1 vote
Accepted

Questions returned by /questions/{ids}/related do not contain link properties

The documentation you linked to is for API 2.x, but you're querying 1.1 which doesn't return those exact objects (and is deprecated). … This API 2.1 request will return the results you were expecting: http://api.stackexchange.com/2.1/questions/13752517/related?site=stackoverflow …
Tim Stone's user avatar
  • 4,676
6 votes
Accepted

How to get Question/Answer body in the API response using filters?

The most straightforward way to get the body is to use the named withbody filter, which you pass in as the value of the filter parameter (example). This will give you all of the default fields, along …
Tim Stone's user avatar
  • 4,676
2 votes
Accepted

How to get the site name from document to pass to API?

You can actually just pass in window.location.hostname directly: This parameter can be the full domain name (ie. "stackoverflow.com"), or a short form identified by api_site_parameter on the site …
Tim Stone's user avatar
  • 4,676