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

This tag is for questions about the Stack Exchange API version 2. First released Feb 2012.

13 votes
Accepted

How to make a Stack Exchange API call, using my key

It's pretty simple, you just append your key to the URL as a parameter. For example, looking for users 1 and 5: http://api.stackexchange.com/2.2/users/1;5?site=stackoverflow&key=YOUR_KEY_HERE So, …
Brock Adams's user avatar
11 votes
Accepted

Unable to get access token

Refer to the Stack Exchange API, Authentication docs. It looks like you are trying to authenticate using either a server you do not control, or a local server that is not on the public internet. Cru …
Brock Adams's user avatar
10 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 ex …
Brock Adams's user avatar
10 votes
Accepted

How to strip out certain fields from the Stack Exchange API, JSON response?

This is what custom filters are for. For example, if you append &filter=!BGRhem4Z)WIti9lP55R*tgr(Jq_fHC to your query, above, you will get results without upvote_count, downvote_count, or owner inform …
Brock Adams's user avatar
7 votes
Accepted

Accessing Authenticated User's Close/Delete History

This is currently not possible via the API. The best you could do is have the user logged into a browser and then screen-scrape the stackoverflow.com/users/{user_id}/?tab=votes pages... Hardly an …
Brock Adams's user avatar
5 votes
Accepted

What does "Unchanged in unsafe filters" mean?

See the "Safety" heading in the "Custom Filters" doc. The difference between a "safe" (default) filter and an "unsafe" filter, is that the unsafe data might return data that could result in a script …
Brock Adams's user avatar
5 votes
Accepted

Is it possible to access data in real-time using the Stack Exchange API?

You can get data close-enough to "real time" for most practical purposes. See the StackHose app, for example. Read the page about the API's Throttles and Quotas. From that page we can deduce: The m …
Brock Adams's user avatar
5 votes
Accepted

How do I get a user's bio with the SE API?

By "bio" you mean the about me field, right? ... Any path that returns a user object will return the about_me property, but this is not returned by default. You have to use a filter that has about …
Brock Adams's user avatar
4 votes
Accepted

Can I search over SE using SE API if I have only a username?

To find user_id(s) for a username, use the inname parameter of the /users query. You will have to repeat this query call for every Stack Exchange site that you are interested in. For example: /user …
Brock Adams's user avatar
4 votes
Accepted

How to convert a (javascript) date to the API timestamp format?

Since the .getTime() value is already in UTC, you can just divide by 1000, and round. That is: var apiDate = Math.round (new Date().getTime() / 1000); works just fine. apiDate is in "unix epoch t …
Brock Adams's user avatar
4 votes
Accepted

Get the Authenticated User's email?

The API does not provide any method to determine a user's email address and it is unlikely to do so in the future. This would be a risk to both the user's privacy and his/her trust in Stack Exchange. …
Brock Adams's user avatar
3 votes
Accepted

How to get up_vote_count and down_vote_count for a user?

You need to use a filter that returns those properties. The default filter does not. Also, the API is at version 2.2. You should use that unless you've a very good reason not to. So try, for example …
Brock Adams's user avatar
3 votes
Accepted

What is the difference between accepted and is_accepted?

If the answer is the accepted answer, is_accepted is true and anyone can see it. accepted is set to true only if the currently authenticated user is the one who has accepted the answer. For instan …
Brock Adams's user avatar
3 votes
Accepted

Descriptions of tag-based badges are incorrect

This seems to have been silently/magically fixed in the last 7 months (Date of Nicos Karalis' comment). Descriptions seem correct now. I had verified that they weren't correct when I upvoted this q …
Brock Adams's user avatar
3 votes

What is "accept_rate" in the Stack Exchange API?

accept_rate is the internally tracked value of the user's Accept Rate. This is roughly a measure of how many of the user's questions have answers and where one of the answers was accepted by the user …
Brock Adams's user avatar

15 30 50 per page