GroundsocialDocs

API · Stack Overflow

GET /stackoverflow/questions/{id}

One Stack Overflow question with its body, tags and counts.

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

One Stack Overflow question with its body, tags and counts.

Path parameters

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

Responses

StatusMeaningSchema
200The question.StackOverflowQuestion
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

StackOverflowQuestion fields

FieldTypeDescription
question_idinteger
titlestring
linkstring
bodystringHTML.
tagsstring[]
ownerStackOverflowOwner
is_answeredboolean
accepted_answer_idinteger
answer_countinteger
scoreinteger
view_countinteger
creation_dateinteger
last_activity_dateinteger
closed_dateinteger
closed_reasonstring

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