Stack Overflow

Get several Stack Overflow questions

Get up to 100 Stack Overflow questions in one call, by id.

GET/v1/stack-overflow/questions/batch
x-api-keystringheader

API key (`sfk_...`)

Parameters
3
idsarrayrequiredquery

Question ids, comma-separated, 1 to 100, e.g. `11227809,927358`. Duplicates are dropped.

sitestringoptionalquery

Stack Exchange site, by its API name (`askubuntu`, `serverfault`, `math`, `ru.stackoverflow`). Default: `stackoverflow`. The sites endpoint lists them all.

includearrayoptionalquery

Extra parts to return with each question: `answers`, `comments`, or both, comma-separated. Default: neither. With either, a request takes at most 10 ids.

Response fields
199

Endpoint-specific response payload.

datasite
string

The Stack Exchange site the questions belong to.

One entry per distinct requested id, in the order first asked. Duplicates are dropped.

dataquestions[]id
integer

The question id that was asked for.

dataquestions[]lookupStatus
string

Whether the item was found.

one of: found, not_found

The question when found; otherwise null.

dataquestions[]questionid
integer

Question id.

dataquestions[]questionurl
stringnullable

Link to the question.

dataquestions[]questiontitle
stringnullable

Title, with HTML entities decoded.

Tags.

dataquestions[]questiontags[]
stringoptional
dataquestions[]questionscore
integernullable

Votes up minus votes down.

Vote counts.

dataquestions[]questionvotesup
integernullable

Upvotes.

dataquestions[]questionvotesdown
integernullable

Downvotes.

dataquestions[]questionviewCount
integernullable

Views.

dataquestions[]questionanswerCount
integernullable

Answers.

dataquestions[]questioncommentCount
integernullable

Comments on the question.

dataquestions[]questionfavoriteCount
integernullable

Times favourited.

dataquestions[]questionisAnswered
booleannullable

Whether it has an accepted or upvoted answer.

dataquestions[]questionacceptedAnswerId
integernullable

The accepted answer; null when none.

dataquestions[]questioncreatedAt
stringnullable

When it was asked, ISO 8601 UTC.

dataquestions[]questionlastActivityAt
stringnullable

Last activity, ISO 8601 UTC.

dataquestions[]questionlastEditedAt
stringnullable

Last edit, ISO 8601 UTC; null when never edited.

dataquestions[]questioncommunityWikiAt
stringnullable

When it became a community wiki; null when it is not.

dataquestions[]questionprotectedAt
stringnullable

When it was protected; null when it is not.

dataquestions[]questionlockedAt
stringnullable

When it was locked; null when it is not.

Why it was closed; null when it is open.

dataquestions[]questionclosedat
stringnullable

When it was closed, ISO 8601 UTC.

dataquestions[]questionclosedreason
stringnullable

Why it was closed, e.g. `Duplicate`.

dataquestions[]questioncloseddescriptionHtml
stringnullable

The explanation shown on the question, as HTML.

The users who voted to close.

dataquestions[]questionclosedbyUsers[]id
integernullable

User id on this site; null for a deleted user.

dataquestions[]questionclosedbyUsers[]accountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questionclosedbyUsers[]name
stringnullable

Display name.

dataquestions[]questionclosedbyUsers[]url
stringnullable

Profile URL.

dataquestions[]questionclosedbyUsers[]imageUrl
stringnullable

Avatar URL.

dataquestions[]questionclosedbyUsers[]reputation
integernullable

Reputation on this site.

dataquestions[]questionclosedbyUsers[]type
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questionclosedbyUsers[]acceptRate
integernullable

Percent of the user's questions with an accepted answer; null when not shown.

The questions this one duplicates.

dataquestions[]questionclosedoriginalQuestions[]id
integer

Question id of the original.

dataquestions[]questionclosedoriginalQuestions[]title
stringnullable

Its title.

dataquestions[]questionclosedoriginalQuestions[]answerCount
integernullable

Its answer count.

dataquestions[]questionclosedoriginalQuestions[]accepted
booleannullable

Whether it has an accepted answer.

The open bounty; null when none.

dataquestions[]questionbountyamount
integernullable

Reputation offered.

dataquestions[]questionbountyclosesAt
stringnullable

When the bounty closes, ISO 8601 UTC.

Who offered it.

dataquestions[]questionbountysponsorid
integernullable

User id on this site; null for a deleted user.

dataquestions[]questionbountysponsoraccountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questionbountysponsorname
stringnullable

Display name.

dataquestions[]questionbountysponsorurl
stringnullable

Profile URL.

dataquestions[]questionbountysponsorimageUrl
stringnullable

Avatar URL.

dataquestions[]questionbountysponsorreputation
integernullable

Reputation on this site.

dataquestions[]questionbountysponsortype
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questionbountysponsoracceptRate
integernullable

Percent of the user's questions with an accepted answer; null when not shown.

The lock, protection or bounty banner; null when none.

dataquestions[]questionnoticebodyHtml
stringnullable

The banner text as HTML (a lock, a protection or a bounty).

dataquestions[]questionnoticecreatedAt
stringnullable

When the banner was put up, ISO 8601 UTC.

dataquestions[]questionnoticeownerUserId
integernullable

Who put it up.

Who asked it.

dataquestions[]questionauthorid
integernullable

User id on this site; null for a deleted user.

dataquestions[]questionauthoraccountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questionauthorname
stringnullable

Display name.

dataquestions[]questionauthorurl
stringnullable

Profile URL.

dataquestions[]questionauthorimageUrl
stringnullable

Avatar URL.

dataquestions[]questionauthorreputation
integernullable

Reputation on this site.

dataquestions[]questionauthortype
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questionauthoracceptRate
integernullable

Percent of the user's questions with an accepted answer; null when not shown.

Who edited it last; null when never edited.

dataquestions[]questionlastEditorid
integernullable

User id on this site; null for a deleted user.

dataquestions[]questionlastEditoraccountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questionlastEditorname
stringnullable

Display name.

dataquestions[]questionlastEditorurl
stringnullable

Profile URL.

dataquestions[]questionlastEditorimageUrl
stringnullable

Avatar URL.

dataquestions[]questionlastEditorreputation
integernullable

Reputation on this site.

dataquestions[]questionlastEditortype
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questionlastEditoracceptRate
integernullable

Percent of the user's questions with an accepted answer; null when not shown.

dataquestions[]questionlicense
stringnullable

Content licence, e.g. `CC BY-SA 4.0`; null when the site does not say.

dataquestions[]questionmigratedFrom
stringnullable

The site it was moved from; null when it was not moved.

dataquestions[]questionmigratedTo
stringnullable

The site it was moved to; null when it was not moved.

dataquestions[]questionbodyHtml
stringnullable

Question text as HTML; null on lists that were not asked for bodies.

dataquestions[]questionbodyMarkdown
stringnullable

Question text as Markdown; null on lists that were not asked for bodies.

The answers when asked for with `include=answers`; null otherwise.

dataquestions[]questionanswers[]id
integer

Answer id.

dataquestions[]questionanswers[]questionId
integernullable

The question it answers.

dataquestions[]questionanswers[]questionTitle
stringnullable

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.

dataquestions[]questionanswers[]tags[]
stringoptional
dataquestions[]questionanswers[]url
stringnullable

Link to the answer.

dataquestions[]questionanswers[]score
integernullable

Votes up minus votes down.

Vote counts.

dataquestions[]questionanswers[]votesup
integernullable

Upvotes.

dataquestions[]questionanswers[]votesdown
integernullable

Downvotes.

dataquestions[]questionanswers[]isAccepted
booleannullable

Whether the asker accepted it.

dataquestions[]questionanswers[]createdAt
stringnullable

When it was posted, ISO 8601 UTC.

dataquestions[]questionanswers[]lastActivityAt
stringnullable

Last edit or activity, ISO 8601 UTC.

dataquestions[]questionanswers[]lastEditedAt
stringnullable

Last edit, ISO 8601 UTC; null when never edited.

dataquestions[]questionanswers[]communityWikiAt
stringnullable

When it became a community wiki; null when it is not.

dataquestions[]questionanswers[]lockedAt
stringnullable

When it was locked; null when it is not.

Who wrote it.

dataquestions[]questionanswers[]authorid
integernullable

User id on this site; null for a deleted user.

dataquestions[]questionanswers[]authoraccountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questionanswers[]authorname
stringnullable

Display name.

dataquestions[]questionanswers[]authorurl
stringnullable

Profile URL.

dataquestions[]questionanswers[]authorimageUrl
stringnullable

Avatar URL.

dataquestions[]questionanswers[]authorreputation
integernullable

Reputation on this site.

dataquestions[]questionanswers[]authortype
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questionanswers[]authoracceptRate
integernullable

Percent of the user's questions with an accepted answer; null when not shown.

Who edited it last; null when never edited.

dataquestions[]questionanswers[]lastEditorid
integernullable

User id on this site; null for a deleted user.

dataquestions[]questionanswers[]lastEditoraccountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questionanswers[]lastEditorname
stringnullable

Display name.

dataquestions[]questionanswers[]lastEditorurl
stringnullable

Profile URL.

dataquestions[]questionanswers[]lastEditorimageUrl
stringnullable

Avatar URL.

dataquestions[]questionanswers[]lastEditorreputation
integernullable

Reputation on this site.

dataquestions[]questionanswers[]lastEditortype
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questionanswers[]lastEditoracceptRate
integernullable

Percent of the user's questions with an accepted answer; null when not shown.

dataquestions[]questionanswers[]license
stringnullable

Content licence, e.g. `CC BY-SA 4.0`.

dataquestions[]questionanswers[]commentCount
integernullable

Comments on the answer.

The bounty this answer was awarded; null when none.

dataquestions[]questionanswers[]bountyAwardedamount
integernullable

Reputation awarded.

Who received it.

dataquestions[]questionanswers[]bountyAwardedusers[]id
integernullable

User id on this site; null for a deleted user.

dataquestions[]questionanswers[]bountyAwardedusers[]accountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questionanswers[]bountyAwardedusers[]name
stringnullable

Display name.

dataquestions[]questionanswers[]bountyAwardedusers[]url
stringnullable

Profile URL.

dataquestions[]questionanswers[]bountyAwardedusers[]imageUrl
stringnullable

Avatar URL.

dataquestions[]questionanswers[]bountyAwardedusers[]reputation
integernullable

Reputation on this site.

dataquestions[]questionanswers[]bountyAwardedusers[]type
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questionanswers[]bountyAwardedusers[]acceptRate
integernullable

Percent of the user's questions with an accepted answer; null when not shown.

dataquestions[]questionanswers[]bodyHtml
stringnullable

Answer text as HTML; null when bodies were not asked for.

dataquestions[]questionanswers[]bodyMarkdown
stringnullable

Answer text as Markdown; null when bodies were not asked for.

Comments on the answer when asked for with `include=comments`; null otherwise.

dataquestions[]questionanswers[]comments[]id
integer

Comment id.

dataquestions[]questionanswers[]comments[]postId
integernullable

The question or answer the comment is on.

dataquestions[]questionanswers[]comments[]postType
stringnullable

Whether the comment is on a question or an answer; null when not known.

one of: question, answer, null

dataquestions[]questionanswers[]comments[]url
stringnullable

Link to the comment.

dataquestions[]questionanswers[]comments[]score
integernullable

Upvotes the comment received.

dataquestions[]questionanswers[]comments[]edited
booleannullable

Whether the comment was edited. The flag comes from the route that returned the comment, so the same comment can differ between routes.

dataquestions[]questionanswers[]comments[]createdAt
stringnullable

When it was written, ISO 8601 UTC.

Who wrote it.

dataquestions[]questionanswers[]comments[]authorid
integernullable

User id on this site; null for a deleted user.

dataquestions[]questionanswers[]comments[]authoraccountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questionanswers[]comments[]authorname
stringnullable

Display name.

dataquestions[]questionanswers[]comments[]authorurl
stringnullable

Profile URL.

dataquestions[]questionanswers[]comments[]authorimageUrl
stringnullable

Avatar URL.

dataquestions[]questionanswers[]comments[]authorreputation
integernullable

Reputation on this site.

dataquestions[]questionanswers[]comments[]authortype
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questionanswers[]comments[]authoracceptRate
integernullable

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.

dataquestions[]questionanswers[]comments[]replyToid
integernullable

User id on this site; null for a deleted user.

dataquestions[]questionanswers[]comments[]replyToaccountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questionanswers[]comments[]replyToname
stringnullable

Display name.

dataquestions[]questionanswers[]comments[]replyTourl
stringnullable

Profile URL.

dataquestions[]questionanswers[]comments[]replyToimageUrl
stringnullable

Avatar URL.

dataquestions[]questionanswers[]comments[]replyToreputation
integernullable

Reputation on this site.

dataquestions[]questionanswers[]comments[]replyTotype
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questionanswers[]comments[]replyToacceptRate
integernullable

Percent of the user's questions with an accepted answer; null when not shown.

dataquestions[]questionanswers[]comments[]isByPostAuthor
booleannullable

Whether the comment's author wrote the post it is on; null on lists that do not carry it.

dataquestions[]questionanswers[]comments[]license
stringnullable

Content licence, e.g. `CC BY-SA 4.0`.

dataquestions[]questionanswers[]comments[]bodyHtml
stringnullable

Comment text as HTML.

dataquestions[]questionanswers[]comments[]bodyMarkdown
stringnullable

Comment text as Markdown; null on lists that do not carry it.

dataquestions[]questionanswersComplete
booleannullable

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.

dataquestions[]questioncomments[]id
integer

Comment id.

dataquestions[]questioncomments[]postId
integernullable

The question or answer the comment is on.

dataquestions[]questioncomments[]postType
stringnullable

Whether the comment is on a question or an answer; null when not known.

one of: question, answer, null

dataquestions[]questioncomments[]url
stringnullable

Link to the comment.

dataquestions[]questioncomments[]score
integernullable

Upvotes the comment received.

dataquestions[]questioncomments[]edited
booleannullable

Whether the comment was edited. The flag comes from the route that returned the comment, so the same comment can differ between routes.

dataquestions[]questioncomments[]createdAt
stringnullable

When it was written, ISO 8601 UTC.

Who wrote it.

dataquestions[]questioncomments[]authorid
integernullable

User id on this site; null for a deleted user.

dataquestions[]questioncomments[]authoraccountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questioncomments[]authorname
stringnullable

Display name.

dataquestions[]questioncomments[]authorurl
stringnullable

Profile URL.

dataquestions[]questioncomments[]authorimageUrl
stringnullable

Avatar URL.

dataquestions[]questioncomments[]authorreputation
integernullable

Reputation on this site.

dataquestions[]questioncomments[]authortype
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questioncomments[]authoracceptRate
integernullable

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.

dataquestions[]questioncomments[]replyToid
integernullable

User id on this site; null for a deleted user.

dataquestions[]questioncomments[]replyToaccountId
integernullable

Network-wide account id, the same on every site.

dataquestions[]questioncomments[]replyToname
stringnullable

Display name.

dataquestions[]questioncomments[]replyTourl
stringnullable

Profile URL.

dataquestions[]questioncomments[]replyToimageUrl
stringnullable

Avatar URL.

dataquestions[]questioncomments[]replyToreputation
integernullable

Reputation on this site.

dataquestions[]questioncomments[]replyTotype
stringnullable

Kind of account.

one of: registered, moderator, unregistered, does_not_exist, team_admin, null

dataquestions[]questioncomments[]replyToacceptRate
integernullable

Percent of the user's questions with an accepted answer; null when not shown.

dataquestions[]questioncomments[]isByPostAuthor
booleannullable

Whether the comment's author wrote the post it is on; null on lists that do not carry it.

dataquestions[]questioncomments[]license
stringnullable

Content licence, e.g. `CC BY-SA 4.0`.

dataquestions[]questioncomments[]bodyHtml
stringnullable

Comment text as HTML.

dataquestions[]questioncomments[]bodyMarkdown
stringnullable

Comment text as Markdown; null on lists that do not carry it.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/stack-overflow/questions/batch?ids=11227809,927358" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Question batch.