GroundsocialDocs

API · Stack Overflow

GET /stackoverflow/questions/{id}/answers

Answers to a Stack Overflow question, by votes, activity or date.

RequestGET /v1/stackoverflow/questions/{id}/answers
Operation idstackoverflow.question.answers
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Answers to a Stack Overflow question, by votes, activity or date.

Path parameters

NameTypeRequiredDescription
idstringyesA question id or its stackoverflow.com link. Example: 11227809.

Query parameters

NameTypeRequiredDescription
sort"votes" | "activity" | "creation"noOne of votes, activity, creation.
pageintegernoPage number, 1 to 25. Defaults to 1.
limitintegernoRows per page, 1 to 100. Defaults to 30.
sincestringnoOnly rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Example: 2026-01-01.
untilstringnoOnly rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp. Example: 2026-12-31.

Responses

StatusMeaningSchema
200A page of answers.StackOverflowAnswers
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The question does not exist or was deleted.Error
429Too many requests. Wait for Retry-After seconds.Error
503Stack Overflow is temporarily unavailable. Retryable; nothing was charged.Error

StackOverflowAnswers fields

FieldTypeDescription
itemsStackOverflowAnswer[]
has_moreboolean
pageinteger
page_sizeinteger

Errors use one shape everywhere; see Errors for every code and what to do.