Tag Info

Hot answers tagged

3

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 callback. See this Stack Overflow question for an example of doing that in javascript. Alternatively, you can parse the link property of the question response to ...


3

If you already have a token, then you can use the /me/associated network route to get the associated site for the authorized user. There's a similar route that takes a network account ID and does not require an active access token.


3

Currently the API does not let you get "featured" questions (questions that have bounties) using or logic with the tag parameters. That is, you cannot search for questions that: Have a bounty AND (have Tag-A OR Tag-B) It might make sense to add a hasbounty parameter to the /search/advanced path. Workaround: In the meantime, since the number of featured ...


2

You can get at this information, but it's messy. Using the /posts/{id}/revisions route you can query for the list of all revision events for a particular question, which includes close/reopen events. These have revision_type = "vote_based" which you can filter the results by, but so do delete/undelete and protect/unprotect events, meaning you ultimately ...


1

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 minutes, it will only take 2 to 10 pages to get all the unfiltered results on Stack Overflow (the busiest site). However, your options increase depending on ...


1

Just for posterity: Version 2.1 (released 2012-09-04) supported posting comments. Version 2.2 (released 2014-02-10) supports posting questions, answers, and comments. More reading material on write access here.


1

This has been implemented in API version 2.2. To list the available close reasons, make a call to /questions/{id}/close/options. The result will list all valid close reasons, including pre-existing duplicate suggestions and off-topic comments. You cannot assume that a close option will be available without calling this method to see if it actually is. ...


1

The API path you want is /users/{ids}/associatedDoc. It takes global, Stack Exchange account_ids and returns all the site-specific user_ids for the specified users. For example, your user_id for Stack Overflow is 2257664 and your global Stack Exchange, account_id is 2606599. (You can see your /associated results, here.) You can get user account_ids from ...



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