Skip to main content
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 "...
Shog9's user avatar
  • 641
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 ...
Glorfindel's user avatar
  • 6,782
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 ...
Brock Adams's user avatar
  • 12.9k
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 ...
Brock Adams's user avatar
  • 12.9k
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: ...
Brock Adams's user avatar
  • 12.9k
6 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-...
Brock Adams's user avatar
  • 12.9k
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 ...
Glorfindel's user avatar
  • 6,782
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 ...
Brock Adams's user avatar
  • 12.9k
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's user avatar
  • 2,622
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 ...
Jon Ericson's user avatar
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 ...
Brian Nickel's user avatar
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 ...
Brock Adams's user avatar
  • 12.9k
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 ...
Shog9's user avatar
  • 641
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 ...
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 ...
Glorfindel's user avatar
  • 6,782
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 ...
Brock Adams's user avatar
  • 12.9k
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's user avatar
  • 2,622
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 ...
ᔕᖺᘎᕊ's user avatar
  • 4,365
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....
Brock Adams's user avatar
  • 12.9k
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 ...
Brock Adams's user avatar
  • 12.9k
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 /...
Brock Adams's user avatar
  • 12.9k
3 votes
Accepted

Typos in API documentation

These were just fixed in the latest build.
Taryn's user avatar
  • 191
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/...
Glorfindel's user avatar
  • 6,782
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).
Brock Adams's user avatar
  • 12.9k
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 ...
Brock Adams's user avatar
  • 12.9k
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/...
Brock Adams's user avatar
  • 12.9k
2 votes
Accepted

top-answerers / top-askers documentation bug: number of results returned incorrect

Ok, this'll be corrected after the next API build.
Shog9's user avatar
  • 641
2 votes

Are the inbox routes (`inbox_item`) missing some item types?

1) Answer is already in the inbox_item object. Note the entry for item_type in the doc page: one of comment, chat_message, new_answer, careers_message, careers_invitations, meta_question, ...
Brock Adams's user avatar
  • 12.9k

Only top scored, non community-wiki answers of a minimum length are eligible