Get Stack Overflow question
Get a Stack Overflow question with its text, tags, votes, closed or locked state and, if asked, its answers and 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.
Extra parts to return with the question: `answers`, `comments` (the question's comments, and each answer's when `answers` is also asked for), or both, comma-separated. Default: neither.
Endpoint-specific response payload.
`not_found` when the question does not exist or was deleted.
one of: found, not_found
The Stack Exchange site the question belongs to.
The question when `lookupStatus` is `found`; otherwise null.
Question id.
Link to the question.
Title, with HTML entities decoded.
Tags.
Votes up minus votes down.
Vote counts.
Upvotes.
Downvotes.
Views.
Answers.
Comments on the question.
Times favourited.
Whether it has an accepted or upvoted answer.
The accepted answer; null when none.
When it was asked, ISO 8601 UTC.
Last 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 protected; null when it is not.
When it was locked; null when it is not.
Why it was closed; null when it is open.
When it was closed, ISO 8601 UTC.
Why it was closed, e.g. `Duplicate`.
The explanation shown on the question, as HTML.
The users who voted to close.
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 questions this one duplicates.
Question id of the original.
Its title.
Its answer count.
Whether it has an accepted answer.
The open bounty; null when none.
Reputation offered.
When the bounty closes, ISO 8601 UTC.
Who offered 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 lock, protection or bounty banner; null when none.
The banner text as HTML (a lock, a protection or a bounty).
When the banner was put up, ISO 8601 UTC.
Who put it up.
Who asked 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`; null when the site does not say.
The site it was moved from; null when it was not moved.
The site it was moved to; null when it was not moved.
Question text as HTML; null on lists that were not asked for bodies.
Question text as Markdown; null on lists that were not asked for bodies.
The answers when asked for with `include=answers`; null otherwise.
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.
False when the list in `answers` has fewer answers than `answerCount` says the question has; null when answers were not asked for.
Comments on the question 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.
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?include=answers" \
-H "x-api-key: YOUR_API_KEY"Responses
Question.