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 |
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.
13
votes
Accepted
Get questions content from StackOverflow API
First of all, version 1.1 of the API has been deprecated for quite some time now. Users are strongly encouraged to move their applications over to version 2.1. … Version 2.0 of the API introduced the concept of filters, which (in your case) requires that you manually specify that you would like to fetch the post body. …
4
votes
Accepted
How to access my App info
You can find the page listing all of your v2.0 and v2.1 keys here:
https://stackapps.com/apps/oauth
3
votes
What is the correct way to get the stackoverflow.com URL for an answer via the API?
As of version 2.0 of the API, answers can return a link field in the response, which can be returned in the response by creating a filter that includes it: …
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: …
1
vote
Accepted
How many simultaneous queries may I make of the same Stack Exchange API?
"I'm also interested in looking how any Stack Exchange API frameworks might have already implemented methods to query all pages in such "friendly" ways." … I wrote a PHP wrapper for the API that does this in a rather unique way. …
2
votes
Answers without owners
You can find more information on this page in the API docs:
This affects "shallow user" fields most frequently.
For example, this question's owner has been deleted (a very rare occurrence). … An API query for that question returns no user accordingly. …
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 …
3
votes
1
answer
51
views
The /users/{id}/timeline route is reporting incorrect totals
It seems that the /users/{id}/timeline route is returning an incorrect total. For example, the following URL is reporting a total of 1607 items:
http://api.stackapps.com/1.1/users/7789/timeline
…
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.) …
2
votes
Using the API directly from JavaScript
You can do this by making a JSONP request. This works by returning the results of a query in a <script> tag that invokes a callback.
You can find more information about it here.
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 - …
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. …
2
votes
User "authentication" (validation?) in V1 of the StackExchange API
This is relatively easy - just make him give you the same email address that he provided for his Stack Exchange account and then calculate the MD5 hash of the email address. Then compare that to the e …
1
vote
Accepted
Better way to find activity changes in terms of API Usage
Notifications for new answers are quite easy. Here's what I did for StackApplet:
Grab the users' recent 100 questions (the maximum) with no body or anything
Combine the IDs using ';' and make the fo …
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 …