13 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 "...
user avatar
  • 631
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 ...
user avatar
  • 5,245
9 votes
Accepted

List of Votes by Authenticated users

No. Currently the users type does not return any private_info and neither does the user_timeline type return any voting information. No other API method allows for detecting a user's vote history ...
user avatar
  • 12.5k
7 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 ...
user avatar
  • 12.5k
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 ...
user avatar
  • 12.5k
6 votes
Accepted

API throws improper error when "date" parameters are the same

Yes, that bug is annoying, especially since specifying a todate that's before the fromdate returns a valid result set, EG: { "items": [], "has_more": false, "quota_max": 10000, "...
user avatar
  • 12.5k
6 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: ...
user avatar
  • 12.5k
6 votes

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 ...
user avatar
  • 5,245
5 votes
Accepted

Why is comment_count=1 (incorrectly) when this particular filter is used?

Confirmed the bug on a post that accrues comments much slower than a typical Stack Overflow question does. Currently, the OP's filter returns "comment_count": 1 on that post. There are no comments. ...
user avatar
  • 12.5k
5 votes
Accepted

Possible to get a user's flag history?

Nope. Neither the user_timeline object, nor the user object return any flagging information, at all. (as of API version 2.2). The question, answer, and comment objects can return a can_flag boolean, ...
user avatar
  • 12.5k
5 votes

Marking inbox items as read in api v2.2

This is not possible in api-2.2, but it might be made available in 2.3. Semi-source: I had an email exchange with someone from the android app team, who then talked to the api team. It's not on 2.2 ...
user avatar
  • 263
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 ...
user avatar
  • 1,780
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 ...
user avatar
  • 12.5k
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 ...
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-...
user avatar
  • 12.5k
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 ...
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/...
user avatar
  • 12.5k
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() / ...
user avatar
  • 4,666
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 ...
user avatar
  • 12.5k
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 ...
user avatar
  • 631
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

`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 ....
user avatar
  • 12.5k
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 ...
user avatar
  • 12.5k
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/...
user avatar
  • 12.5k
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 ...
user avatar
  • 12.5k
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 ...
user avatar
3 votes
Accepted

Does verifying OAuth2 `access_token` validity count towards API call quota?

Yes, calls to /access-tokens/{accessTokens} use API quota. You can see that by repeatedly running /2.2/access-tokens/XBWL0stf*YIOCl7WpJHqYA)) for example. With each call, the quota_remaining value ...
user avatar
  • 12.5k
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. ...
user avatar
  • 12.5k
3 votes

StackExchange API Java wrapper

a few questions i have about your API. based on the user can I get a list of all questions and answers the user has? giving a user can I get a List<Questions> and List<Answer> that the ...
user avatar

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