Hot answers tagged

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.6k
4 votes
Accepted

Get total answers count for a specified: Tag, Userid and Date-range?

Your stated problem is considerably easier than the question you linked. You can use the /users/{ids}/answers route to get what you want -- with a little work. The trick is to use a filter that ...
user avatar
  • 12.6k
4 votes
Accepted

How to include answers when fetching questions?

The various /questions routes do allow you to simultaneously retrieve answers, if you set the right filter. A good starting filter for getting questions with answers is: !gB7hjL3lhJ*Cnfe63rh6pAm74J(...
user avatar
  • 12.6k
4 votes

Getting the top answerers/users for a tag in a custom time range?

This is very costly to do in the API and currently impossible for many combinations of tag and date (because it would require more than the 10,000 allowed API calls per day). I'll write more about ...
user avatar
  • 12.6k
4 votes

Quick navigation between answers

status-completed person who answered now shown the answer score shown owner reps shown box floats correctly Awesome script. Here is a eventual feature for it that could be useful. Instead of listing ...
user avatar
3 votes

Activity Indicator - see if you participated in a Q&A at a glance

status-planned Just a simple recommendation (I do not particularly like the abbreviations): could there be a table on hover, e.g: * Like the Roomba Forecaster userscript. The table can contain long ...
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 instance,...
user avatar
  • 12.6k
3 votes
Accepted

Total Number Of Answers

It does return all the answers, but they're paged - by default you'll only get 30 at a time. You'll likely want to increase pagesize to 100, and then add the additional code necessary to make ...
user avatar
  • 4,666
3 votes
Accepted

Top answers for a tag is returning user details?

Notice that the route used has /top-answerers/. The doc page states: Returns the top 30 answer​ers active in a single tag, of either all-time or the last 30 days. (Emphasis added) So, ...
user avatar
  • 12.6k
2 votes

How to monitor (for new) accepted answers by certain tags?

The API does not provide a good way for this. Worst case, your app will have to keep a table of every question in the tags of interest. Poll that table and see if the accept status has changed from ...
user avatar
  • 12.6k
2 votes
Accepted

Search for answers/comments under questions with certain tags using the Stack Overflow API?

First, you'll want to go upvote the feature request to add tag search for answers, etc. (If/when you have the upvote privilege) In the meantime, for answers by tag you can use the /search/excerpts ...
user avatar
  • 12.6k
2 votes

Quick navigation between answers

New feature: if there's a pager displayed (for the reason of 30+ answers), the Quick Nav box gets a mini-pager too: This feature is available as of Quick Nav v2.4
user avatar
  • 386
2 votes

Quick navigation between answers

bug status-completed When searching questions with a specific tag, the quick navigation button will appear. Here is a screenshot showing the bug.
user avatar
2 votes

Quick navigation between answers

feature-request status-completed (except deletion) The realtime updates are enabled by default .You can opt out of them by clicking "settings" and unchecking "real-time updates". When an answer gets ...
user avatar
2 votes

Quick navigation between answers

bug status-completed in case if owner is deleted, using "Answer by deleted user" in case if CW, using "Community Wiki answer" When the user is a community wiki there is no reputation shown. This ...
user avatar
2 votes
Accepted

`last_editor` is missing but `last_edit_date` is present?

last_editor will be missing (empty) from the results when the last editor is a deleted user. This deleted user does not have to be the owner, or original poster, of a given question or answer. For ...
user avatar
  • 12.6k
2 votes
Accepted

How to search answers like is:answer

I forget when, but sometime in the last couple of years, the /search/excerpts route started allowing is:answer in the q parameter. For example:           /2.2/search/...
user avatar
  • 12.6k
2 votes

Please add the `tagged` parameter to /answers, /users, etc

Hear! Hear! I want to study what makes a good answer on SO. I started by querying complete web pages (questions with all comments, answers, and their comments) for questions with some minimum score (...
user avatar
2 votes

The /search route is ignoring the answers parameter.

The /search/excerpts route looks to be about as good as /search and it does return both questions and answers, and it does have an answers parameter. This route is "★ All new! For version 2.2! ★"
user avatar
  • 12.6k
2 votes
Accepted

Default Stack Exchange behavior interferes with my "Mark answers as favorites" code?

First can I say, you might want to use your own icon. Font Awesome is a very useful and easy to use icon toolkit that lets you add icons with simple CSS classes. You could use http://fontawesome.io/...
user avatar
  • 4,195
2 votes

Total Number Of Answers

If you just want the total, don't bother paging through the entire full result set. Use the total property of the Common Wrapper Object. This will save lots of time and bandwidth and quota and doesn'...
user avatar
  • 12.6k
2 votes

Getting the ID of the question-asker when fetching new answers from the API

No; the answer object doesn't contain any information about the question except the question ID. I'm not sure how you obtain the answer IDs, but you could investigate if it's possible to look for ...
user avatar
  • 5,267
2 votes

Activity Indicator - see if you participated in a Q&A at a glance

feature-request status-deferred Please add a way to search through these posts1. Possible use cases: Checking your recent comments (on either questions or answers) to see whether they are still up to ...
user avatar
2 votes
Accepted

How to get deleted answers?

This question is nearly a duplicate of: Provide a way to retrieve questions and answers that have been deleted -- which has been "status planned" for 6+ years. In general, it is very hard to search ...
user avatar
  • 12.6k
1 vote
Accepted

Obtain the list of questions associated to answer_ids without losing the information of which question comes from which answer_id

On the other hand, making one single /answers/{ids}/questions request for all the ids (well, I should actually make a request for chunks of 100 entries; then maybe I have to browse the few resulting ...
user avatar
  • 5,267
1 vote

Sort Best First

Test cases: The good: Under ‘Passing a string literal as a type argument to a class template’, the ‘Votes’ order currently places an answer with a not-quite-solution workaround (+56 / −2) first. The ...
user avatar
1 vote

Why doesn't the API return a 'locked date' for this locked answer?

Does it work on answers at all? Here's a newer locked answer.   Yet, it doesn't have a locked_date either. It's not a filter issue. Nor is it fixed in version 2.3 (yet). Also, additional bug ...
user avatar
  • 12.6k
1 vote
Accepted

Get everything touched by a user?

Since some users might exhaust your quota, for such a set of data, this might be a better job for SEDE. In your API approach, not sure why you are getting question id's from answer id's. You can ...
user avatar
  • 12.6k
1 vote

Default Stack Exchange behavior interferes with my "Mark answers as favorites" code?

Don't use the default button. That's bad UI anyway. Add your own favorite button for each answer. And, since you will be using your own classes, like: <a class="myStarOff" href="#" data-ansID="...
user avatar
  • 12.6k
1 vote

How do I get the body of an answer, as well as the author?

Okay I figured out that a filter(withbody) needs to be applied here. So the URL would be something like : http://api.stackexchange.com/2.2/questions/5877753/answers?order=desc&sort=activity&...
user avatar

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