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,467
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.8k
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.8k
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.8k
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,467
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,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 ...
Brock Adams's user avatar
  • 12.8k
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

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.8k
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

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/...
Brock Adams's user avatar
  • 12.8k
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() / ...
Tim Stone's user avatar
  • 4,706
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.8k
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 ...
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 ...
Brock Adams's user avatar
  • 12.8k
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 ....
Brock Adams's user avatar
  • 12.8k
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 ...
Brock Adams's user avatar
  • 12.8k
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/...
Brock Adams's user avatar
  • 12.8k
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 ...
Brock Adams's user avatar
  • 12.8k
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 ...
Brock Adams's user avatar
  • 12.8k
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 ...
Jack Sprat's user avatar
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. ...
Brock Adams's user avatar
  • 12.8k
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.8k
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.8k
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
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,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 ...
Brock Adams's user avatar
  • 12.8k

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