Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 7653

For questions relating to version 2.2 of the Stack Exchange API.

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 w …
Brock Adams's user avatar
2 votes
Accepted

Encoding type of display_name

That is not URL encoding, that is HTML entity encoding. By default, the API returns "safe" values; see the filters doc: Any string returned as a result of an API call with a safe filter will be …
Brock Adams's user avatar
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 whi …
Brock Adams's user avatar
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 thi …
Brock Adams's user avatar
0 votes

Why API Version 2.2 returns null always while getting questions list?

Several things: You appear to be trying to use Soapi.CS -- which is way obsolete and using an old API version that no longer functions. If you are going to use .net, try one of the more recent libr …
Brock Adams's user avatar
2 votes
Accepted

What does "in practice" mean here?

Strictly speaking, that line is incorrect. The method will always return a JSON object (barring certain server failures). But the items array will be empty or missing. On success, the default objec …
Brock Adams's user avatar
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
1 vote

Comments have incorrect `can_flag` values for at least 2 different API routes

I can't replicate the bug as stated; both /questions/{ids} and /comments/{ids} give the same results which are: can_flag is false for my comments.   (Correct behavior) can_flag is true for comment …
Brock Adams's user avatar
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
2 votes
Accepted

OAuth redirect_uri to https://stackexchange.com/oauth/login_success?xxx strips part of the q...

I don't think that's a bug, for implicit OAuth. Anyway, if I understand RFC 6749 correctly, that is not how you are supposed to do such extra checks. Use the state parameter. And this works. For exa …
Brock Adams's user avatar
2 votes
Accepted

How can I filter events by event_type?

There is currently no method to filter events by event_type. For now, just load all the events and filter through the event_type values afterwards. Since the /events route only covers the last 15 mi …
Brock Adams's user avatar
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/notifica …
Brock Adams's user avatar
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 t …
Brock Adams's user avatar
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, …
Brock Adams's user avatar
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. …
Brock Adams's user avatar

1
2 3 4 5
15 30 50 per page