API · Stack Overflow
GET /stackoverflow/questions/{id}
One Stack Overflow question with its body, tags and counts.
| Request | GET /v1/stackoverflow/questions/{id} |
| Operation id | stackoverflow.question.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One Stack Overflow question with its body, tags and counts.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | A question id or its stackoverflow.com link. Example: 11227809. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The question. | StackOverflowQuestion |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The question does not exist or was deleted. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Stack Overflow is temporarily unavailable. Retryable; nothing was charged. | Error |
StackOverflowQuestion fields
| Field | Type | Description |
|---|---|---|
question_id | integer | |
title | string | |
link | string | |
body | string | HTML. |
tags | string[] | |
owner | StackOverflowOwner | |
is_answered | boolean | |
accepted_answer_id | integer | |
answer_count | integer | |
score | integer | |
view_count | integer | |
creation_date | integer | |
last_activity_date | integer | |
closed_date | integer | |
closed_reason | string |
Errors use one shape everywhere; see Errors for every code and what to do.