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.

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
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
2 votes

Get favorited tags of user

UPDATE: The feature appears to be present in the, so far, undocumented API version 2.3. See captncraig's answer on this page. After all these years, it looks like this might never get implemented. …
Brock Adams's user avatar
2 votes
Accepted

How can I get a list of favorite/ignored tags?

No, the API does not provide a method to get the user's question-page, display preferences -- including Favorite or Ignored tags. Currently, the only way for your app to get these is to browse to the …
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
1 vote

API returns the last activity date even if asked not to

Confirmed. The path seems to use a default sort key on last_activity_date and that corrupts the filter somehow. (I checked for caching by waiting more than 1 minute and by varying the question ids.) …
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
3 votes
Accepted

Stack Exchange API is returning boolean(false) For 'is_answered' On Question With Accepted A...

Update: Per Kevin Montrose's answer and its comments: The bug has now been fixed and the is_answered property will return true if either of these is true: The question has an accepted answer The qu …
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
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
1 vote

The `top_questions` field shows outdated information?

Although this can be annoying or confusing, there is no bug. Take a look at your Stack Exchange accounts page. Currently it shows: (Click for larger image) 10 questions, here on Stack Apps, and 1 …
Brock Adams's user avatar
1 vote

How do I find a user by their `display_name`?

You would use the inname parameter of the users path. For example this gets users with marcamillion in their name, on Stack Overflow. Note that the filter parameter controls what fields are returned …
Brock Adams's user avatar
2 votes

Getting display name of the site on which question is located

You already know the site, it has to be built in to every /questions query. But, if you are querying separate sites with concurrent AJAX queries, merely encapsulate the site name in your AJAX callbac …
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
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

15 30 50 per page