List Stack Overflow question answers
List the answers to a Stack Overflow question by votes, activity or time, with their text and, if asked, their comments.
Headers
Get your API keyAPI key (`sfk_...`)
Question id on the chosen site, e.g. `11227809`.
≥ 1 · ≤ 2147483647
Stack Exchange site, by its API name (`askubuntu`, `serverfault`, `math`, `ru.stackoverflow`). Default: `stackoverflow`. The sites endpoint lists them all.
Order of the answers: `votes` (default), `activity` or `creation`. Only `creation` pages without a ceiling.
one of: votes, activity, creation
Direction of the sort: `desc` (default) or `asc`.
one of: desc, asc
`comments` adds each answer's comments. Default: none.
Up to this many rows per page, 1 to 100. Default: 30. A page can hold fewer than `limit` rows where rows share a creation second or a block of 100 rows ends. Follow `page.nextCursor` until `hasMore` is false.
≥ 1 · ≤ 100
Cursor from `page.nextCursor` of the previous response. It only works with the same filters.
min 1 chars · max 1024 chars
Endpoint-specific response payload.
`not_found` when the question does not exist or was deleted. A question with no answers is `found` with an empty list.
one of: found, not_found
The Stack Exchange site the answers belong to.
The question the answers belong to.
The answers on this page.
Answer id.
The question it answers.
Title of the question it answers, with HTML entities decoded.
Tags of the question it answers, filled when the answer is nested in its question; empty on answer lists, which do not carry them.
Link to the answer.
Votes up minus votes down.
Vote counts.
Upvotes.
Downvotes.
Whether the asker accepted it.
When it was posted, ISO 8601 UTC.
Last edit or activity, ISO 8601 UTC.
Last edit, ISO 8601 UTC; null when never edited.
When it became a community wiki; null when it is not.
When it was locked; null when it is not.
Who wrote it.
User id on this site; null for a deleted user.
Network-wide account id, the same on every site.
Display name.
Profile URL.
Avatar URL.
Reputation on this site.
Kind of account.
one of: registered, moderator, unregistered, does_not_exist, team_admin, null
Percent of the user's questions with an accepted answer; null when not shown.
Who edited it last; null when never edited.
User id on this site; null for a deleted user.
Network-wide account id, the same on every site.
Display name.
Profile URL.
Avatar URL.
Reputation on this site.
Kind of account.
one of: registered, moderator, unregistered, does_not_exist, team_admin, null
Percent of the user's questions with an accepted answer; null when not shown.
Content licence, e.g. `CC BY-SA 4.0`.
Comments on the answer.
The bounty this answer was awarded; null when none.
Reputation awarded.
Who received it.
User id on this site; null for a deleted user.
Network-wide account id, the same on every site.
Display name.
Profile URL.
Avatar URL.
Reputation on this site.
Kind of account.
one of: registered, moderator, unregistered, does_not_exist, team_admin, null
Percent of the user's questions with an accepted answer; null when not shown.
Answer text as HTML; null when bodies were not asked for.
Answer text as Markdown; null when bodies were not asked for.
Comments on the answer when asked for with `include=comments`; null otherwise.
Comment id.
The question or answer the comment is on.
Whether the comment is on a question or an answer; null when not known.
one of: question, answer, null
Link to the comment.
Upvotes the comment received.
Whether the comment was edited. The flag comes from the route that returned the comment, so the same comment can differ between routes.
When it was written, ISO 8601 UTC.
Who wrote it.
User id on this site; null for a deleted user.
Network-wide account id, the same on every site.
Display name.
Profile URL.
Avatar URL.
Reputation on this site.
Kind of account.
one of: registered, moderator, unregistered, does_not_exist, team_admin, null
Percent of the user's questions with an accepted answer; null when not shown.
The user the comment is addressed to, when it is a reply. Null when the comment is not a reply; on the comments-by-post routes it is always null because those routes do not carry reply targets.
User id on this site; null for a deleted user.
Network-wide account id, the same on every site.
Display name.
Profile URL.
Avatar URL.
Reputation on this site.
Kind of account.
one of: registered, moderator, unregistered, does_not_exist, team_admin, null
Percent of the user's questions with an accepted answer; null when not shown.
Whether the comment's author wrote the post it is on; null on lists that do not carry it.
Content licence, e.g. `CC BY-SA 4.0`.
Comment text as HTML.
Comment text as Markdown; null on lists that do not carry it.
Pagination state for the current page.
Whether another page is available.
Cursor for the next page; null on the last page.
True when the list stopped at the site's 25-page ceiling (2,500 rows, or 625 when the page carries text), or when a user's answer or comment list is too large for page-offset paging and has served its first 100 rows (25 when it carries text). Sort by `creation` to page deeper. False for every list that ends because it ran out.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/stack-overflow/questions/11227809/answers?sort=votes" \
-H "x-api-key: YOUR_API_KEY"Responses
Answer listing.