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,482
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
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
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
“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
4
votes
Accepted
StackExchange API, OAuth for other sites than Stack Overflow
You already have the correct URL. The access token is valid for all sites, even those for which you don't have an account. The documentation explains how to switch to a different site than Stack ...
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
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 ...
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,482
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
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
Accepted
Can we find the time of a vote using the API?
Obviously, vote time data is sensitive and censored to protect voter anonymity.
So, scanning the list of available objects in the API, we see that:
A user's downvote times can be obtained via the /...
3
votes
Accepted
3
votes
Can I fetch Stack Overflow users by location in Stack Exchange API
It's not possible (short of fetching all users and filtering yourself). The API simply does not offer that query. For alternatives, see the Data Explorer (SEDE): https://meta.stackexchange.com/q/...
3
votes
Accepted
Suggested edit not returned by API
It's probably because the referenced post has been deleted.
The API excludes (most) deleted data (usually).
3
votes
What happened to the links to a Stack App mentioned in the documentation about write access?
This is a documentation bug in my opinion. The "via Example App" was never included, nor should it be.
A user is fully responsible for his or her content, it doesn't, and shouldn't, matter how that ...
2
votes
Accepted
How to search answers like is:answer
I forget when, but sometime in the last couple of years, the /search/excerpts route started allowing is:answer in the q parameter.
For example:
/2.2/search/...
2
votes
Accepted
top-answerers / top-askers documentation bug: number of results returned incorrect
Ok, this'll be corrected after the next API build.
2
votes
Accepted
`fromdate` and `todate` parameter in `/me` call
Yes, if you omit those parameters it will give you the expected result...
If a valid token is passed, then it will return the user ("There can be only one.") who obtained/approved that token.
For ...
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