14
votes
Stack Exchange thinks that Shog is a elected moderator
Funny story...
When I first joined the team here at Stack Exchange, Jeff just went around on the trilogy sites and made me a moderator... And he used the "elected" route instead of the "...
10
votes
Accepted
Why has my daily quota increased from 10k to 2 billion?
After re-investigating my code, I realized what was going on here. For this particular project I wasn't using the API key and access token of my own application; I'm using the ones I sniffed from the ...
9
votes
Accepted
Can the redirect_uri contain port number?
You got that error because you set the OAuth Domain like example.com:8080, not the redirect_uri. That's not how you configure non-standard ports; see below.
The redirect uri, with port, feature now ...
7
votes
Accepted
Why is /questions API returning deleted questions?
Confirmed; see bottom section, below.
However, please refer to Provide a way to retrieve questions and answers that have been deleted -- which is "status-planned".
This is a feature, not a bug. And ...
7
votes
After successfully retrieving 180 pages, the API gracelessly, semi-silently, fails
Yes, this is a serious bug. You can replicate it from any browser using the code below.
Every time I run it, it fetches 180 pages at an average rate of 5.51 calls per second.
On the 181st call I get:
...
6
votes
Accepted
Does a closed and/or deleted Stack Apps post still provide access to the API?
I've just done a couple of tests with my placeholder app. Even though the question is closed, I was able to generate a new access token (following the regular procedure) for my sockpuppet account, and ...
5
votes
Accepted
How do I find all questions/answers per a tag using .Net?
To get the questions in a tag you can simply use the /questions endpoint as that does accept a tagged query parameter, from that document page:
To constrain questions returned to those with a set ...

rene♦
- 2,275
5
votes
Accepted
How to increase app request quota from 300 to 10,000?
You are using the "Javascript SDK" and that's not how it works. The doc page calls the SDK "small and minimalistic". The source code states:
This file is provided to API clients to ...
5
votes
Accepted
Bug with `badges/name` endpoint
I don't know for sure what the original problem was, but the most recent issue was a result of implementing a new badge without rebuilding the API. Once the API was pushed to production, the bug was ...
5
votes
The answer object returns an empty array for tags
This is a bug and seems (based on a series of A/B tests) to be linked with the body_markdown property.
That is, if your filter returns the tags array, it works:
"items": [ {
"tags": [ "batch-...
5
votes
400 - Bad Request - Invalid URL errors with HTML response
This is fixed.
I was able to pin down the issue two web servers. After SRE verified that the URL length settings were fine, I was able to narrow the issue to individual path components over the IIS ...
4
votes
Accepted
How can I access a user's ID on another site (eg. SU) if I have their ID from another site (eg. SO)?
Use the /users/{ids} route to get account_id.
Then pass the account_id to /users/{ids}/associated.
Note that account_id is exactly the kind of information that should be heavily cached by your script/...
4
votes
Accepted
API returns implausibly low questions per minute rate for Stack Overflow
I mean, the value's not wrong, just perhaps not useful? The QPM is taken over the entire lifetime of the site, so 10005086 / 3644369.9112 = 2.745354133577943, where 3644369.9112 is
((Date.now() / ...
4
votes
Accepted
“Try It” URL has wrong URI
The link is correct. The purpose of that control is to provide a URL to the doc page with all the parameters prefilled. This is what most users expect and is similar to how that link control works ...
4
votes
Documentation or API method for `option_id` information, for the `/flags/options` API calls?
The original intent of these options is clearly not to enable automated flagging, but rather to allow an application to generate a UI that presents the applicable options to a user who would be ...
4
votes
503 errors on batch get questions endpoint
So, you are making up to 150 requests in a 30 second period (10 "parallel requests", with a 2 second pause in between). And failing at 80 to 100+ seconds of operation and 400 to 500 total ...
Community wiki
3
votes
Accepted
Is there a way to specify how long I want an access token to be valid for?
Yes, I always get 86399 too. And, no, you can't specify an interval other than no_expiry.
But you can call /access-tokens/{accessTokens}/invalidateDoc at whatever interval you wish.
So, for less ...
3
votes
Accepted
`body` of `inbox_item` returning only excerpt, not full body
An inbox message body is not the same as a post body. Inbox messages are truncated by design.
Here's a snippet of my inbox:
Notice how the "body" is truncated at 100 characters? (Counting the ....
3
votes
Accepted
How to find questions that were posted or edited recently?
There really is no particularly satisfactory way to do this since all versions of last_activity_date conflate a question's activity with the activity of its answers.
You are going to have to fetch ...
3
votes
Accepted
What does `total` in the /notifications route represent?
This is a bug. I've tagged your question accordingly.
total, in the wrapper object, should always be the length of the items array, after concatenating all pages of results.
When I run /2.2/...
3
votes
Accepted
Search function in the API doesn't work as expected
Although it doesn't appear to say so in the doc page, intitle expects an exact phrase, not a list of words.
You can currently see this by:
/2.2/search?intitle=get column array&site=stackoverflow
...
3
votes
Accepted
Reputation_change has the historical total rather than the daily delta?
It's a bit confusing but that is not a bug.
Think of it as, "Reputation change from when to when?"
Since you specified neither a fromdate, nor a todate, you are effectively asking for the changes for ...
3
votes
Help with javascript SDK configuration
Of course as soon as I finally break down and ask a question I see my mistake:
Applications that have the client side flow enabled can use https://stackexchange.com/oauth/login_success as their ...
3
votes
Accepted
Is it possible to have no sorting - to just show results in order of inputted IDs?
This is a classic "procedural" (or "row based" or "sequential") versus "set based" issue. See Understanding “Set based” and “Procedural” approaches in SQL or any one of thousands of similar articles.
...
3
votes
Accepted
iOS Client for stackoverflow always throws redirect_uri not a valid uri
That error means either that you've misconfigured the app or that the authentication call is incorrect.
Note that stackexchange.com/oauth/login_success is not a valid redirect_uri irregardless.
You ...
3
votes
Field "comment_count" is not always returned by API
This appears to be closely related to the bug: Why is comment_count=1 (incorrectly) when this particular filter is used?.
The workaround from there -- altering the filter by:
selecting comment....
3
votes
Accepted
Access token keeps being invalidated
Turns out this is completely my fault :/
I overlooked the expiry aspect of the access token which meant that I got the default 86399 seconds (~24 hours), which meant my users had to get a new access ...
3
votes
Accepted
Got 502 response after very few calls
Your app is subject to IP throttling as explained in the rate limiting documentation:
Every application is subject to an IP based concurrent request throttle. If a single IP is making more than 30 ...

rene♦
- 2,275
3
votes
Accepted
Implicit OAuth flow puts the access token in the hash?
No, you can't get the access_token in the query/search part of the URL. This would be a security leak that would allow 3rd parties to see your access_tokens on the web.
Reference:
OAuth2.0 Implicit ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
api-v2.2 × 189support × 88
bug × 67
api × 57
feature-request × 24
documentation × 22
questions × 19
oauth2 × 19
tags × 17
search × 15
authentication × 14
status-completed × 13
app × 12
answers × 12
users × 11
comments × 10
javascript × 8
inbox × 8
sort × 7
script × 6
write-access × 6
flags × 6
discussion × 5
library × 5
python × 4