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 not deleted user 18

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.

2 votes

Is there an api to post questions without using the websites interface?

I already tried this. Complete exasperation with sending POST requests to StackOverflow - Meta Stack Exchange. So it's v2.0 or nothing.
Nathan Osman's user avatar
  • 23.3k
2 votes

Is Stack API blocking Yahoo YQL services?

The API only provides Gzip'd data. This has caused a number of hard-to-spot problems in the past. …
Nathan Osman's user avatar
  • 23.3k
2 votes

Does there exist a method call to get unaccepted answers?

There isn't a specific route that does this, but you could call one of the question routes and then check to see if each of them has an accepted answer.
Nathan Osman's user avatar
  • 23.3k
1 vote

Prefered way to retrieve all search results

I'll try to answer your questions here: "This way, if new questions are posted between successive requests, they will only appear on the last page, and not cause questions to appear twice or never …
Nathan Osman's user avatar
  • 23.3k
1 vote
Accepted

Add revision diffs to API?

It actually is possible to get the markdown of an answer using the following URL: http:// {site} /revisions/ {revision GUID} /view-source Note: you may need to scrub some HTML out of the resulti …
Nathan Osman's user avatar
  • 23.3k
1 vote
Accepted

Sort options explained

Here is a summary: activity - sort by recent activity (edits, answers, etc.) - when using order=desc the first questions will be the ones with the most recent activity. votes - sort by vote count - …
Nathan Osman's user avatar
  • 23.3k
4 votes
Accepted

Has anyone *implemented* the Stack Exchange API on top of a public database dump?

Its behavior is designed to match the actual API route as much as possible. That being said, it serves mostly as a demonstration that such a thing is possible. … (Not only that, but it actually uses the real API to keep the information up to date.) …
Nathan Osman's user avatar
  • 23.3k
3 votes

Prefered way to retrieve all search results

A possible solution to this finally hit me out of the blue like a ton of bricks: Instead of retrieving successive pages by page number, why not retrieve them by date range? Here is a quick rundown of …
Nathan Osman's user avatar
  • 23.3k
0 votes

Is there an SO API which can fetch all Questions & Answers for a particluar Keywords

Not sure if this helps, but you can access the API using XML with a small utility I wrote. See Stack2XML. …
Nathan Osman's user avatar
  • 23.3k
6 votes
0 answers
109 views

Version 1.0 of the API seems to be here!

It looks like v1.0 of the API is here now! I waited a few minutes for an official announcement, but none came - so here it is! Thanks a million to the team for putting this together! …
Nathan Osman's user avatar
  • 23.3k
2 votes
0 answers
63 views

Would it be possible (in a future API release) to combine queries?

For example, to display a user's profile, the following routes are hit (keep in mind that these requests are all made to display one page): http://api.{SITE}.com/1.1/users/{ID} http://api. … sort=votes&pagesize=5 http://api.{SITE}.com/1.1/users/{ID}/answers?sort=votes&pagesize=5 http://api.{SITE}.com/1.1/users/{ID}/badges http://api. …
Nathan Osman's user avatar
  • 23.3k
3 votes
Accepted

How to register application for API implicit authentication?

This will provide you with an API key and application ID. If you want the application to use the implicit OAuth flow, then make sure the "Enable Client Side OAuth Flow" checkbox is checked: …
Nathan Osman's user avatar
  • 23.3k
3 votes

Can we get a sandbox please?

This is what you're looking for: https://meta.stackoverflow.com/questions/3122/
Nathan Osman's user avatar
  • 23.3k
2 votes
3 answers
316 views

Can there be a way to find a user given his email hash?

Given a user's email, it would be great if we could hash it and search for that user with it. The reason for this is suppose: Someone has a website On that website, they invite SO users to enter th …
Nathan Osman's user avatar
  • 23.3k
4 votes
Accepted

How many ids is 'too many'?

According to this answer, it looks like 100.
Nathan Osman's user avatar
  • 23.3k

15 30 50 per page