All Questions
533 questions
109
votes
3
answers
23k
views
API Documentation and Help
Method List
All API methods can be found at https://api.stackexchange.com/docs.
Global Method Parameters
All methods accept the following parameters:
type=jsontext: responds with mime-type text/json.
...
32
votes
1
answer
11k
views
Looking for a beginner's tutorial to using the API
I see the Stack Exchange API but I'm unable to understand it. I don't think there is any fundamental tutorial showing how to use Stack Overflow fully in the API documentation.
I want some fundamental ...
22
votes
1
answer
468
views
Stack Exchange thinks that Shog is a elected moderator
I was browsing the API for the list of elected moderators, The API URL is
http://api.stackexchange.com/docs/elected-moderators#pagesize=100&order=desc&sort=reputation&site=stackoverflow&...
20
votes
3
answers
159
views
Documentation or API method for `option_id` information, for the `/flags/options` API calls?
The Stack Exchange API has a couple of calls that return a list of flag_option objects.
These objects contain a couple of properties that can be used to identify the flag you need.
For example, when ...
18
votes
1
answer
278
views
Accessing Authenticated User's Close/Delete History
I'm working on the PHP chatroom's cv-pls backlog UI. Many users and myself would like the ability to track which questions we have already handled though close/delete votes. To be able to do that I ...
16
votes
1
answer
450
views
Bug in the StackExchange Api ? getting "could not parse proxy url" when user not logged in
I think I may have stumbled upon a bug in the Stack Exchange JS API
I'm having a problem getting its authentication to work properly, and I just discovered that the same problem exist in the official ...
14
votes
1
answer
149
views
Stack Exchange API is not returning the close vote counts for questions
When you visit this question (with proper privs) you can see that there are 2 close votes cast for it.
However, if you access the information for this question using the Stack Exchange API you get ...
13
votes
2
answers
620
views
Why is my API quota not resetting after UTC reset?
According to How API Keys Work, the default daily API limit -- which is per site, per day -- is 300.
I started with 300, as expected, but over a period of days, I've noticed that the remaining quota ...
12
votes
1
answer
362
views
How the /sites method is meant to be used
The /sites method is used to enumerate all sites in the network. If your [app] is meant to run against more than a single site (and many are) this method is how you should be discovering new sites in ...
11
votes
1
answer
197
views
"Informed" badge shown as Next badge, but doesn't exist on this site
On my profile page, the Informed badge is shown as the next badge to obtain:
Clicking it even shows a popup with a link to the Tour page, but it looks quite different from other SE sites. Looking at ...
11
votes
1
answer
369
views
Google’s OAuth redirect broken
We just tried to authenticate with our application without being logged into anything on StackExchange. This is best tested in a private browser session without any cookies etc.
So after starting the ...
11
votes
0
answers
144
views
The field body_markdown is not returned for comments [duplicate]
Using the method questions-by-ids to get the comments on a particular question, I do not get body_markdown returned despite it being selected in the filter.
Here is the test query to reproduce the ...
10
votes
0
answers
280
views
Tell us that POST is required to write
While troubleshooting /posts/{id}/comments/add in order to answer Why am I getting a 404 when trying to post a comment?, it was noticed that the API path in question only responded to POST requests. ...
9
votes
1
answer
1k
views
How to see which users upvoted a question?
I assume this information is tracked, since StackOverflow shows me the questions I have upvoted (when going to their question page, I can undo the upvote). I couldn't find any api call that gives this ...
9
votes
1
answer
630
views
Keep getting HTTP 406
Not sure if this is a user or an API problem, but I keep getting HTTP 406 Not Acceptable when making API calls (for example http://api.stackoverflow.com/0.8/stats) from either IE 8 or Chrome 6.
Here ...
9
votes
1
answer
141
views
Typos in API documentation
From the /posts documentation:
Most applications should use the question or answer specific methods, but /posts is available for those rare cases where any activity is of intereset.
intereset => ...
9
votes
1
answer
73
views
Whatever happened to closed_reason?
When pulling back info on a closed question, I have come to expect closed_reason to be a present key if there's a closed_date. It seems that as of recently this is no longer true.
Proof: https://api....
9
votes
2
answers
192
views
/search intitle arg is case sensitive
This seriously cripples any search capabilities.
Consider:
http://api.stackapps.com/0.8/search?intitle=soapi&order=desc&sort=activity
vs
http://api.stackapps.com/0.8/search?intitle=Soapi&...
9
votes
0
answers
388
views
Application stats are completely broken.
It appears that the application stats are completely broken. Attempting to view the number of times Stack Mobile hit the /questions/* methods results in this graph:
It would seem that statistics were ...
8
votes
1
answer
124k
views
sorting ascending vs descending
I don't understand the difference between ascending and descending?
Surely ascending means the most active/recent/popular/A first, and descending means the least active/recent/popular/Z first?
But it ...
8
votes
2
answers
168
views
Stack Apps homepage truncates user names
A picture says more than a thousand words:
These users aren't called "Bhargav Rac" and "Tunak", but Bhargav Rao and Tunaki.
This happens on both the 'apps' and 'scripts' tabs of the Stack Apps ...
8
votes
1
answer
235
views
Why is /questions API returning deleted questions?
In last few days I have noticed that questions API returns questions that where deleted hours before the API call.
This is a short example, if more logs are need to pin point the problem, please ...
8
votes
1
answer
468
views
API Key limit 10k is Per IP Address or Globally?
Getting started FAQ says No Key limit is IP Address based, but it does not say for with API Key.
When I test my API Key from different IP Addresses, I noticed that 10k limit is globally, limit is ...
8
votes
1
answer
142
views
The answer object returns an empty array for tags
Since version 2.1, the answer object has a field called tags. However, sometimes, an empty array or even nothing is returned in this field:
Example with the filter !-*f(6t0Vk01e.
Am I doing ...
8
votes
1
answer
138
views
Bug with `badges/name` endpoint
Last night I had a programme running and it errored on the first call to the badges/name endpoint on the API, exact API endpoint call:
https://api.stackexchange.com/2.2/badges/name?order=asc&sort=...
8
votes
1
answer
139
views
Why is comment_count=1 (incorrectly) when this particular filter is used?
We're seeing that, when a particular filter we've created is used, the API will return "comment_count": 1 for questions with no comments.
For a search for questions with no answers, ordered by ...
8
votes
0
answers
165
views
Incomplete information in API documentation
I am struggling a little bit with the Stack Exchange API since there seems to be no formal specification for the individual endpoints of the API.
Example:
Endpoint: https://api.stackexchange.com/2.2/...
7
votes
2
answers
548
views
After successfully retrieving 180 pages, the API gracelessly, semi-silently, fails
I'm trying to synchronize tags using the Stack Exchange API and this works for about 180 pages, but around 180 pages it always ends with an exception that seems to indicate that there is no HTTP ...
7
votes
1
answer
28k
views
How to deal with the "Too Many Requests" error coming as HTML?
The API specifies error codes, and messages.
It also specifies a "backoff" parameter.
But, even while respecting the backoff and stopping at errors, and even when waiting a long time between requests ...
7
votes
1
answer
76
views
User's Comments: returning 500 error?
It looks like when I try to get the comments of a user that has "a huge number" of comments, I get a 500 error.
Jon Skeet's comments, 500 error: http://api.stackoverflow.com/1.0/users/22656/comments
...
7
votes
1
answer
683
views
Application Key and AccessToken are not working for Stack Exchange API? [duplicate]
I have followed the documentation and used explicit OAuth 2.0 flow for access_token generation.
And I have gone through all 4 steps defined under explicit OAuth 2.0 flow with scope=no_expiry. Then I ...
7
votes
1
answer
223
views
Can't get JSON representation for the help
The API Documentation and Help states:
If the help URL is requested in a
common web browser, a HTML styled
version of the JSON help will be
returned. Otherwise, the JSON help
will be ...
7
votes
1
answer
297
views
Stackexchange oauth2.0 is suddenly failing
No changes in stack apps or my code, it was working fine for a while, suddenly it stopped working now.
I get "InternalOAuthError: Failed to obtain access token"
After more details inspection,...
7
votes
1
answer
92
views
The 'should be closed' description in the flag dialog is missing a word
The 'should be closed...' reason has this description (emphasis mine):
This question is completely unclear, incomplete, overly-broad, primarily opinion-based or is not about Stack Exchange API, app,...
7
votes
1
answer
127
views
What happened to the JSON documentation for the API?
Back in version 1.1 of the API, we used to be able to do:
http://api.stackoverflow.com/1.1/questions?help
...which would return information about the method in JSON format. However, attempting to ...
7
votes
0
answers
126
views
/me/associated doesn't return meta sites anymore
The documentation of /me/associated says:
You can filter the network_users returned by this method with the types parameter. Specify, semicolon delimited, main_site or meta_site to filter by site.
...
7
votes
0
answers
94
views
Requesting favorite questions should report which users have favorited it
I can request the favorite questions of a user via the users/{id}/favorites endpoint. If I'm only requesting the favorites for one user, then I know that all of the returned questions are the ...
6
votes
1
answer
350
views
Where is the usage documentation?
I know this is probably a dumb question, but there's a bunch of documentation and I don't know what to do with this stuff. How do you use the API?
6
votes
1
answer
140
views
API throws improper error when "date" parameters are the same
When using the Stack Exchange /questions API using the same date for fromdate and todate I get a 500 internal server error.
Using different dates appears to work OK but specifying the same value ...
6
votes
1
answer
1k
views
Please "release" and/or document API version 2.3
I was playing around a bit with Fiddler to capture traffic from the Stack Exchange iOS app. To my surprise, it uses version 2.3 of the Stack Exchange API:
I noticed here that it has some extra ...
6
votes
5
answers
536
views
Where can I find the reputation black market?
Apparently there is one around, at least I can't explain the recent jump in reputation of 4k for user 1026 by any other means (just kidding of course, no offense please ;)
The API Beta badge accounts ...
6
votes
1
answer
195
views
JavaScript SDK-based workflow never pushes message back from OAuth login_success page on Stack Exchange side
I'm using the JavaScript SDK by Stack Exchange provided with the latest API, and despite following the official instructions & examples it doesn't work - it seems there is a bug which breaks the ...
6
votes
1
answer
148
views
Field "comment_count" is not always returned by API
I am making a request with a custom filter that includes the "comment_count" field of the question type. My custom filter is !RtdMEtslKF6Z()NqpDUFZ58R6twu-.4V48gn0furqA*7_BL1.
However, when I'm ...
6
votes
1
answer
9k
views
'The target origin provided does not match the recipient window's origin' message when trying to use localhost
I am trying to experiment with the Stack Overflow API on my localhost and am struggling to get the authentication to complete. Here is my application JavaScript code (note that I am using IBM ...
6
votes
1
answer
86
views
Descriptions of tag-based badges are incorrect
The descriptions associated to tag-based badges are wrong, they always show 0 instead of actual thresholds:
Earned at least 0 total score for at least 0 non-community wiki answers in the … tag
See ...
6
votes
1
answer
112
views
API 'search' method with 'tagged' parameter
From the docs for tagged paremeter:
List of tags delimited by semi-colons of which at least one must be on a question
Yet, when I execute this query (http://api.stackoverflow.com/1.0/search?tagged=...
6
votes
3
answers
2k
views
API usage triggering 503 (Too Many Requests)
Update:
I generally try to back any claims of bugs and shortcomings with evidence.
I have prepared a test page which you, dear Stack Overflow staff and my fellow developers, can use to ascertain ...
6
votes
1
answer
109
views
/users/{ids}/timeline creation_date missing or incorrect
I am writing a small widget that displays the time since I was awarded my last badge on Stack Overflow. I noticed that my most recent badge was missing from the timeline data (/users/{ids}/timeline).
...
6
votes
1
answer
58
views
Several staff members are incorrectly listed as elected moderators
Several employees are being reported as elected moderators on sites they haven't been elected on, according to /2.0/users/moderators/elected. I think there was a similar issue reported before during ...
6
votes
1
answer
115
views
The tagged parameter does not work with multiple tags
Take these two API calls:
http://api.stackoverflow.com/0.8/questions?tagged=php;rant
http://api.stackoverflow.com/0.8/questions/tagged/php;rant
A couple of problems:
Shouldn't they return the same ...