Questions tagged [answers]
Tools (scripts/apps/libraries) that help with answers, or issues with the API handling of answers
72 questions
2
votes
1
answer
79
views
`last_editor` is missing but `last_edit_date` is present?
Some posts (questions or answers) have a last_edit_date but no last_editor. Does this always mean that the post was last edited by the post owner?
Example: stackapps.com/a/3891/
PS: This issue came ...
2
votes
1
answer
566
views
Get accepted answers from Stack Overflow using Stack Overflow API 2.1
I want to fetch only my accepted answers from Stack Overflow using the API 2.1 and currently I've following code
$data = file_get_contents("http://api.stackexchange.com/2.1/users/741747/answers?page=...
2
votes
1
answer
2k
views
Obtain the list of questions associated to answer_ids without losing the information of which question comes from which answer_id
This is a follow up to a previous question of mine, and the starting point is that, given a list of reputation objects retrieved via /users/{ids}/reputation, I can easily retain only the entries with ...
2
votes
1
answer
96
views
Get everything touched by a user?
I'm trying to figure out the best way to compile all "post threads" (Questions and all related Answers and Comments) where a specific user owns any of the {Question, Answer or [a comment on either the ...
2
votes
3
answers
160
views
Ideas for dealing with this pagination problem?
Okay, here is the problem:
Certain questions contain more than one page's worth of answers. Given a sort method and an answer id, how can we figure out which page the answer is on?
Any suggestions ...
2
votes
1
answer
102
views
Problem getting a users answers within a date range
This issue is similar to Problem getting a users questions within a date range. Only this time I'm calling a different api and getting unexpected results.
I'm calling
http://api.stackoverflow.com/0.8/...
2
votes
1
answer
90
views
Answers parameter not functional
For example the following:
http://api.stackoverflow.com/0.8/questions?answers=true
doesn't return answers.
2
votes
0
answers
252
views
StackExchange – Expand Hidden Comments
In principle that what Expand all comments script does, but with two major differences:
Scrolls the page back to the initial target of the corresponding link you selected (i.e. to question, question ...
2
votes
0
answers
72
views
How can I show recently answered questions and answers in my blog site?
I would like to showcase some of my Stack Exchange answers in my blog site. I couldn't find a relevant post on how to implement this.
Also, from what I can see, in order to use the API a user needs ...
2
votes
0
answers
76
views
Unhide Downvoted Answers
About
This simple userscript allows you to hover over an answer that has been greyed-out because of its low score to remove the styling. After you move away from the post, it will return to its ...
2
votes
1
answer
128
views
Why answers don't have a "locked" attribute?
When looking at an answer, I can see that there is no locked_date attribute, like there is for questions. IIRC, answers can be locked by moderators.
Also, if a post is unlocked, is that field ...
1
vote
1
answer
177
views
How can I fetch the answers posted in last week based on tags of the question?
I see that tags are present only for questions. How can I get the answers to these questions given in last week (if any) having specific tags?
1
vote
1
answer
119
views
Why doesn't the API return a 'locked date' for this locked answer?
This answer has been locked, yet when I ask the API about this post it fails to return a locked_date:
It's a rather old lock, but I can't see anything suspicious in the timeline or the Post History.
1
vote
1
answer
135
views
How do I get the body of an answer, as well as the author? [duplicate]
I am using this call to get the body of an answer :
http://api.stackexchange.com/2.2/questions/5877753/answers?order=desc&sort=activity&site=stackoverflow
But this only gives the author of ...
1
vote
1
answer
215
views
Load answers to a question with review-like wrapper HTML
I'm trying to implement this feature request in SOUP, but I'm having trouble figuring out a good way to actually load the answers.
I can just load the full question page (like this one, for example) ...
1
vote
1
answer
661
views
How can I use the Stack Exchange API to get the total score on answers to questions with a specific tag?
I want to use the API to get the sum of all scores of my answers to questions having a specific tag.
I started using top-user-answers-in-tags method, but it only returns the top 30, whereas I want ...
1
vote
0
answers
66
views
Answer Hider - adds box and buttons to hide answers on posts
Screenshot / Code Snippet
About
This script allows a user to hide answers on a post, both from the answer itself or from a central box at the top. This might be helpful when reading responses to ...
1
vote
0
answers
148
views
Sentinel - monitoring new answers to old questions
This post is to enable authentication with the version of Sentinel that I'm (cocomac) hosting. See also OBSOLETE - Sentinel - monitoring new answers to old questions.
In early February 2025, there ...
1
vote
0
answers
32
views
Get tags from question through an answer [duplicate]
I'd like to use this function: /users/{ids}/answers to get a list of answers from a user.
The key element that I need though is what the question was tagged as, is there a possibility of having ...
1
vote
1
answer
59
views
Answer up/down vote count not being returned in filter
As the picture shows, the up_vote_count and down_vote_count answer properties are selected but not returned. What gives?
0
votes
2
answers
166
views
Questions with accepted answers
I know that you could technically loop through the answers returned when you ask for /questions/{id} to see if an answer has been accepted, but it would be AWESOME if there was a top level boolean ...
0
votes
1
answer
144
views
How to sort answers to question?
If I retrieve a question like so:
http://api.stackoverflow.com/0.8/questions/1429951&sort=votes
I expect the answers to be sorted by votes, but they're not.
How can I do this?