# Stack Overflow: Get a question

`stackoverflow/questions/get` · version 1.0.1 · pilot · 1 credits a call

One Stack Overflow question, whole: its text, every answer and every comment, the votes, views, tags, authors, and why it is closed when it is.

Categories: Developers

## When to use

You have a Stack Overflow question (its link, its short link, an answer's link under it, or its id) and need all of it: its text in HTML and in Markdown, every answer (the accepted one says so, however many: 105 of 105 on the longest question read on 2026-12-02) and every comment of both, with their scores, dates, authors and licence, why and by whom it is closed and the question it repeats, its bounty, a moderator's notice, where it was migrated from. To find questions by words, tags, author, dates or state (answered, closed), use stackoverflow/questions/search, which gives each one just as whole.

## Call

```bash
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"source": "stackoverflow", "operation": "questions/get", "options": {"question": "https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array"}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 1, "has_more": false, "next": null,
 "cost": {"credits": 1}, "balance": {"credits": 9990}, "results": [...]}
```

`cost` and `balance` are objects: a call's credits are `cost.credits`. `results` holds the records (below).

Beside `options`, the call takes:

| Parameter | Type | Description |
|---|---|---|
| `fields` | array of string | The record fields to keep, by path: inside an object with a dot (`ids.question_id`), in each item of a list with `[]` (`answers[].id`, or with a dot: `answers.id`); `object`, `id` and `position` always come. Left out: every field. |

## Options

| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| `question` | string | integer | yes |  | The question: its id (11227809), its page (https://stackoverflow.com/questions/11227809/...), its short link (https://stackoverflow.com/q/11227809), or the link of one of its answers (https://stackoverflow.com/a/11227902, whose question is found first). |

## Record

Each item of `results`. Every field is always present, `null` when the site gives nothing.

| Field | Type | Description |
|---|---|---|
| `object` | `"question"` |  |
| `id` | integer | The question's id on Stack Overflow, as in its address. |
| `ids` | object |  |
| `ids.question_id` | integer |  |
| `url` | string | null | The question's page. |
| `share_url` | string | null | Its short link (stackoverflow.com/q/<id>). |
| `title` | string | null | As written, not HTML-escaped. |
| `tags` | array of string |  |
| `body_html` | string | null | The question as the page shows it, in HTML. |
| `body_markdown` | string | null | The question as its author wrote it, in Markdown. |
| `score` | integer | null | Upvotes less downvotes. |
| `upvote_count` | integer | null |  |
| `downvote_count` | integer | null |  |
| `favorite_count` | integer | null | What the API counts as the question's favorites. Stack Overflow's saves are private, and this count is 0 on nearly every question however popular (273 of 274 read on 02/12/2026): not a measure of interest. |
| `view_count` | integer | null |  |
| `answer_count` | integer | null |  |
| `comment_count` | integer | null |  |
| `is_answered` | boolean | null | Whether it has an accepted answer or an answer scored above 0. |
| `accepted_answer_id` | integer | null | The accepted answer's id, among `answers`. |
| `close_vote_count` | integer | null | Votes to close it, cast and pending. |
| `reopen_vote_count` | integer | null | Votes to reopen it, cast and pending. |
| `delete_vote_count` | integer | null | Votes to delete it, cast and pending. |
| `created_at` | string | null (date-time) |  |
| `last_activity_at` | string | null (date-time) | Its last answer, comment or edit. |
| `last_edited_at` | string | null (date-time) |  |
| `owner` | object | null | Who asked it. |
| `owner.id` | integer | null | The user's id on Stack Overflow. |
| `owner.account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `owner.name` | string | null | Their display name, as written. |
| `owner.url` | string | null | Their profile on Stack Overflow. |
| `owner.avatar_url` | string | null |  |
| `owner.type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `owner.reputation` | integer | null |  |
| `owner.accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `owner.badges` | object | null |  |
| `owner.badges.gold` | integer | null |  |
| `owner.badges.silver` | integer | null |  |
| `owner.badges.bronze` | integer | null |  |
| `last_editor` | object | null | Who edited it last. |
| `last_editor.id` | integer | null | The user's id on Stack Overflow. |
| `last_editor.account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `last_editor.name` | string | null | Their display name, as written. |
| `last_editor.url` | string | null | Their profile on Stack Overflow. |
| `last_editor.avatar_url` | string | null |  |
| `last_editor.type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `last_editor.reputation` | integer | null |  |
| `last_editor.accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `last_editor.badges` | object | null |  |
| `last_editor.badges.gold` | integer | null |  |
| `last_editor.badges.silver` | integer | null |  |
| `last_editor.badges.bronze` | integer | null |  |
| `closed` | object | null | Why and by whom the question is closed; null while it is open. |
| `closed.closed_at` | string | null (date-time) |  |
| `closed.reason` | string | null | Duplicate, Opinion-based, Needs details or clarity... |
| `closed.description_html` | string | null | The reason's own words, as the page shows them. |
| `closed.by_users` | array | Who voted to close it. |
| `closed.by_users[].id` | integer | null | The user's id on Stack Overflow. |
| `closed.by_users[].account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `closed.by_users[].name` | string | null | Their display name, as written. |
| `closed.by_users[].url` | string | null | Their profile on Stack Overflow. |
| `closed.by_users[].avatar_url` | string | null |  |
| `closed.by_users[].type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `closed.by_users[].reputation` | integer | null |  |
| `closed.by_users[].accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `closed.by_users[].badges` | object | null |  |
| `closed.by_users[].badges.gold` | integer | null |  |
| `closed.by_users[].badges.silver` | integer | null |  |
| `closed.by_users[].badges.bronze` | integer | null |  |
| `closed.original_questions` | array | The questions it repeats, for a duplicate. |
| `closed.original_questions[].id` | integer | null |  |
| `closed.original_questions[].url` | string | null |  |
| `closed.original_questions[].title` | string | null |  |
| `closed.original_questions[].answer_count` | integer | null |  |
| `closed.original_questions[].accepted_answer_id` | integer | null |  |
| `locked_at` | string | null (date-time) | When a moderator locked it: no votes, answers or edits since. |
| `protected_at` | string | null (date-time) | Since when only users with reputation may answer it. |
| `community_owned_at` | string | null (date-time) | Since when it is a community wiki. |
| `bounty` | object | null | An open bounty on the question; null when there is none. |
| `bounty.amount` | integer | null | Reputation offered. |
| `bounty.closes_at` | string | null (date-time) |  |
| `bounty.user` | object | null | Who offered it. |
| `bounty.user.id` | integer | null | The user's id on Stack Overflow. |
| `bounty.user.account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `bounty.user.name` | string | null | Their display name, as written. |
| `bounty.user.url` | string | null | Their profile on Stack Overflow. |
| `bounty.user.avatar_url` | string | null |  |
| `bounty.user.type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `bounty.user.reputation` | integer | null |  |
| `bounty.user.accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `bounty.user.badges` | object | null |  |
| `bounty.user.badges.gold` | integer | null |  |
| `bounty.user.badges.silver` | integer | null |  |
| `bounty.user.badges.bronze` | integer | null |  |
| `notice` | object | null | A moderator's notice on the question (a lock's reason, a call for better answers); null when there is none. |
| `notice.body_html` | string | null |  |
| `notice.created_at` | string | null (date-time) |  |
| `notice.owner_user_id` | integer | null | The id of the user who set it. |
| `migrated_from` | object | null | Where the question was moved from, when it came from another Stack Exchange site. |
| `migrated_from.question_id` | integer | null | The question's id on the other site. |
| `migrated_from.site` | object | null |  |
| `migrated_from.site.name` | string | null | Unix & Linux, Super User... |
| `migrated_from.site.url` | string | null |  |
| `migrated_from.site.api_site_parameter` | string | null | The site's name in the Stack Exchange API (unix, superuser). |
| `migrated_from.migrated_at` | string | null (date-time) |  |
| `migrated_to` | object | null | Where it was moved to, when Stack Overflow sent it to another site. |
| `migrated_to.question_id` | integer | null | The question's id on the other site. |
| `migrated_to.site` | object | null |  |
| `migrated_to.site.name` | string | null | Unix & Linux, Super User... |
| `migrated_to.site.url` | string | null |  |
| `migrated_to.site.api_site_parameter` | string | null | The site's name in the Stack Exchange API (unix, superuser). |
| `migrated_to.migrated_at` | string | null (date-time) |  |
| `content_license` | string | null | The question's licence (CC BY-SA 4.0), when the API says it: on few questions (1 of 153 on 02/12), where its answers and comments always do. |
| `answers` | array | Every answer, whole, in the API's order. |
| `answers[].id` | integer |  |
| `answers[].url` | string | null |  |
| `answers[].share_url` | string | null | Its short link (stackoverflow.com/a/<id>). |
| `answers[].body_html` | string | null |  |
| `answers[].body_markdown` | string | null |  |
| `answers[].score` | integer | null |  |
| `answers[].upvote_count` | integer | null |  |
| `answers[].downvote_count` | integer | null |  |
| `answers[].is_accepted` | boolean | null |  |
| `answers[].created_at` | string | null (date-time) |  |
| `answers[].last_activity_at` | string | null (date-time) |  |
| `answers[].last_edited_at` | string | null (date-time) |  |
| `answers[].locked_at` | string | null (date-time) |  |
| `answers[].community_owned_at` | string | null (date-time) |  |
| `answers[].owner` | object | null | A user as a post shows them; null when the post has none. A deleted user keeps a name, the type `does_not_exist` and no id; the Community user, which owns what nobody does, is -1. |
| `answers[].owner.id` | integer | null | The user's id on Stack Overflow. |
| `answers[].owner.account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `answers[].owner.name` | string | null | Their display name, as written. |
| `answers[].owner.url` | string | null | Their profile on Stack Overflow. |
| `answers[].owner.avatar_url` | string | null |  |
| `answers[].owner.type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `answers[].owner.reputation` | integer | null |  |
| `answers[].owner.accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `answers[].owner.badges` | object | null |  |
| `answers[].owner.badges.gold` | integer | null |  |
| `answers[].owner.badges.silver` | integer | null |  |
| `answers[].owner.badges.bronze` | integer | null |  |
| `answers[].last_editor` | object | null | A user as a post shows them; null when the post has none. A deleted user keeps a name, the type `does_not_exist` and no id; the Community user, which owns what nobody does, is -1. |
| `answers[].last_editor.id` | integer | null | The user's id on Stack Overflow. |
| `answers[].last_editor.account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `answers[].last_editor.name` | string | null | Their display name, as written. |
| `answers[].last_editor.url` | string | null | Their profile on Stack Overflow. |
| `answers[].last_editor.avatar_url` | string | null |  |
| `answers[].last_editor.type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `answers[].last_editor.reputation` | integer | null |  |
| `answers[].last_editor.accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `answers[].last_editor.badges` | object | null |  |
| `answers[].last_editor.badges.gold` | integer | null |  |
| `answers[].last_editor.badges.silver` | integer | null |  |
| `answers[].last_editor.badges.bronze` | integer | null |  |
| `answers[].bounty_awarded` | object | null | The bounty the answer won; null when it won none. |
| `answers[].bounty_awarded.amount` | integer | null | Reputation won. |
| `answers[].bounty_awarded.users` | array | Who awarded it. |
| `answers[].bounty_awarded.users[].id` | integer | null | The user's id on Stack Overflow. |
| `answers[].bounty_awarded.users[].account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `answers[].bounty_awarded.users[].name` | string | null | Their display name, as written. |
| `answers[].bounty_awarded.users[].url` | string | null | Their profile on Stack Overflow. |
| `answers[].bounty_awarded.users[].avatar_url` | string | null |  |
| `answers[].bounty_awarded.users[].type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `answers[].bounty_awarded.users[].reputation` | integer | null |  |
| `answers[].bounty_awarded.users[].accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `answers[].bounty_awarded.users[].badges` | object | null |  |
| `answers[].bounty_awarded.users[].badges.gold` | integer | null |  |
| `answers[].bounty_awarded.users[].badges.silver` | integer | null |  |
| `answers[].bounty_awarded.users[].badges.bronze` | integer | null |  |
| `answers[].recommended_by` | array | The collectives that recommend the answer, and since when. |
| `answers[].recommended_by[].collective` | object | null | A collective of Stack Overflow: a company's or a technology's space on the site (Google Cloud, Microsoft Azure). |
| `answers[].recommended_by[].collective.name` | string | null |  |
| `answers[].recommended_by[].collective.slug` | string | null |  |
| `answers[].recommended_by[].collective.url` | string | null |  |
| `answers[].recommended_by[].collective.description` | string | null |  |
| `answers[].recommended_by[].collective.external_links` | array |  |
| `answers[].recommended_by[].collective.external_links[].type` | string | null | website, twitter, github, facebook, instagram, support or linkedin. |
| `answers[].recommended_by[].collective.external_links[].url` | string | null |  |
| `answers[].recommended_by[].recommended_at` | string | null (date-time) |  |
| `answers[].posted_by_collectives` | array | The collectives the answer was posted for. |
| `answers[].posted_by_collectives[].name` | string | null |  |
| `answers[].posted_by_collectives[].slug` | string | null |  |
| `answers[].posted_by_collectives[].url` | string | null |  |
| `answers[].posted_by_collectives[].description` | string | null |  |
| `answers[].posted_by_collectives[].external_links` | array |  |
| `answers[].posted_by_collectives[].external_links[].type` | string | null | website, twitter, github, facebook, instagram, support or linkedin. |
| `answers[].posted_by_collectives[].external_links[].url` | string | null |  |
| `answers[].content_license` | string | null |  |
| `answers[].comment_count` | integer | null |  |
| `answers[].comments` | array |  |
| `answers[].comments[].id` | integer |  |
| `answers[].comments[].url` | string | null |  |
| `answers[].comments[].body_html` | string | null | The comment as the page shows it, in HTML. |
| `answers[].comments[].body_markdown` | string | null | The comment as its author wrote it, in Markdown. |
| `answers[].comments[].score` | integer | null | Its upvotes (comments have no downvotes). |
| `answers[].comments[].is_edited` | boolean | null |  |
| `answers[].comments[].created_at` | string | null (date-time) |  |
| `answers[].comments[].owner` | object | null | A user as a post shows them; null when the post has none. A deleted user keeps a name, the type `does_not_exist` and no id; the Community user, which owns what nobody does, is -1. |
| `answers[].comments[].owner.id` | integer | null | The user's id on Stack Overflow. |
| `answers[].comments[].owner.account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `answers[].comments[].owner.name` | string | null | Their display name, as written. |
| `answers[].comments[].owner.url` | string | null | Their profile on Stack Overflow. |
| `answers[].comments[].owner.avatar_url` | string | null |  |
| `answers[].comments[].owner.type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `answers[].comments[].owner.reputation` | integer | null |  |
| `answers[].comments[].owner.accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `answers[].comments[].owner.badges` | object | null |  |
| `answers[].comments[].owner.badges.gold` | integer | null |  |
| `answers[].comments[].owner.badges.silver` | integer | null |  |
| `answers[].comments[].owner.badges.bronze` | integer | null |  |
| `answers[].comments[].reply_to_user` | object | null | The user the comment answers (@name), when it answers one. |
| `answers[].comments[].reply_to_user.id` | integer | null | The user's id on Stack Overflow. |
| `answers[].comments[].reply_to_user.account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `answers[].comments[].reply_to_user.name` | string | null | Their display name, as written. |
| `answers[].comments[].reply_to_user.url` | string | null | Their profile on Stack Overflow. |
| `answers[].comments[].reply_to_user.avatar_url` | string | null |  |
| `answers[].comments[].reply_to_user.type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `answers[].comments[].reply_to_user.reputation` | integer | null |  |
| `answers[].comments[].reply_to_user.accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `answers[].comments[].reply_to_user.badges` | object | null |  |
| `answers[].comments[].reply_to_user.badges.gold` | integer | null |  |
| `answers[].comments[].reply_to_user.badges.silver` | integer | null |  |
| `answers[].comments[].reply_to_user.badges.bronze` | integer | null |  |
| `answers[].comments[].content_license` | string | null | CC BY-SA 4.0, 3.0 or 2.5, by the date it was written. |
| `comments` | array | The question's own comments. |
| `comments[].id` | integer |  |
| `comments[].url` | string | null |  |
| `comments[].body_html` | string | null | The comment as the page shows it, in HTML. |
| `comments[].body_markdown` | string | null | The comment as its author wrote it, in Markdown. |
| `comments[].score` | integer | null | Its upvotes (comments have no downvotes). |
| `comments[].is_edited` | boolean | null |  |
| `comments[].created_at` | string | null (date-time) |  |
| `comments[].owner` | object | null | A user as a post shows them; null when the post has none. A deleted user keeps a name, the type `does_not_exist` and no id; the Community user, which owns what nobody does, is -1. |
| `comments[].owner.id` | integer | null | The user's id on Stack Overflow. |
| `comments[].owner.account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `comments[].owner.name` | string | null | Their display name, as written. |
| `comments[].owner.url` | string | null | Their profile on Stack Overflow. |
| `comments[].owner.avatar_url` | string | null |  |
| `comments[].owner.type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `comments[].owner.reputation` | integer | null |  |
| `comments[].owner.accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `comments[].owner.badges` | object | null |  |
| `comments[].owner.badges.gold` | integer | null |  |
| `comments[].owner.badges.silver` | integer | null |  |
| `comments[].owner.badges.bronze` | integer | null |  |
| `comments[].reply_to_user` | object | null | The user the comment answers (@name), when it answers one. |
| `comments[].reply_to_user.id` | integer | null | The user's id on Stack Overflow. |
| `comments[].reply_to_user.account_id` | integer | null | Their network account's id, the same on every Stack Exchange site. |
| `comments[].reply_to_user.name` | string | null | Their display name, as written. |
| `comments[].reply_to_user.url` | string | null | Their profile on Stack Overflow. |
| `comments[].reply_to_user.avatar_url` | string | null |  |
| `comments[].reply_to_user.type` | string | null | registered, unregistered, moderator, team_admin or does_not_exist (deleted). |
| `comments[].reply_to_user.reputation` | integer | null |  |
| `comments[].reply_to_user.accept_rate` | integer | null | The share of their questions' answers they accepted, in percent, when Stack Overflow shows it. |
| `comments[].reply_to_user.badges` | object | null |  |
| `comments[].reply_to_user.badges.gold` | integer | null |  |
| `comments[].reply_to_user.badges.silver` | integer | null |  |
| `comments[].reply_to_user.badges.bronze` | integer | null |  |
| `comments[].content_license` | string | null | CC BY-SA 4.0, 3.0 or 2.5, by the date it was written. |
| `source_url` | string | The API call the question was read from. |
| `observed_at` | string (date-time) |  |

Example:

```json
{
  "object": "question",
  "id": 10000001,
  "ids": {
    "question_id": 10000001
  },
  "url": "https://stackoverflow.com/questions/10000001/how-do-i-set-a-timeout-on-an-httpx-request",
  "share_url": "https://stackoverflow.com/q/10000001",
  "title": "How do I set a timeout on an httpx request?",
  "tags": [
    "python",
    "httpx"
  ],
  "body_html": "<p>My request hangs forever when the server does not answer. How do I set a timeout?</p>\n",
  "body_markdown": "My request hangs forever when the server does not answer. How do I set a timeout?",
  "score": 42,
  "upvote_count": 43,
  "downvote_count": 1,
  "favorite_count": 0,
  "view_count": 51200,
  "answer_count": 1,
  "comment_count": 1,
  "is_answered": true,
  "accepted_answer_id": 10000002,
  "close_vote_count": 0,
  "reopen_vote_count": 0,
  "delete_vote_count": 0,
  "created_at": "2024-03-14T09:26:53Z",
  "last_activity_at": "2025-06-02T17:40:11Z",
  "last_edited_at": "2024-03-14T10:02:31Z",
  "owner": {
    "id": 1000001,
    "account_id": 2000001,
    "name": "Jane Doe",
    "url": "https://stackoverflow.com/users/1000001/jane-doe",
    "avatar_url": "https://www.gravatar.com/avatar/00000000000000000000000000000000?s=256&d=identicon&r=PG",
    "type": "registered",
    "reputation": 1234,
    "accept_rate": 80,
    "badges": {
      "gold": 0,
      "silver": 5,
      "bronze": 12
    }
  },
  "last_editor": null,
  "closed": null,
  "locked_at": null,
  "protected_at": null,
  "community_owned_at": null,
  "bounty": null,
  "notice": null,
  "migrated_from": null,
  "migrated_to": null,
  "content_license": null,
  "answers": [
    {
      "id": 10000002,
      "url": "https://stackoverflow.com/questions/10000001/how-do-i-set-a-timeout-on-an-httpx-request/10000002#10000002",
      "share_url": "https://stackoverflow.com/a/10000002",
      "body_html": "<p>Pass <code>timeout=10.0</code> to the client.</p>\n",
      "body_markdown": "Pass `timeout=10.0` to the client.",
      "score": 57,
      "upvote_count": 57,
      "downvote_count": 0,
      "is_accepted": true,
      "created_at": "2024-03-14T09:41:07Z",
      "last_activity_at": "2024-03-14T09:41:07Z",
      "last_edited_at": null,
      "locked_at": null,
      "community_owned_at": null,
      "owner": {
        "id": 1000003,
        "account_id": 2000003,
        "name": "John Smith",
        "url": "https://stackoverflow.com/users/1000003/john-smith",
        "avatar_url": null,
        "type": "registered",
        "reputation": 48210,
        "accept_rate": null,
        "badges": {
          "gold": 12,
          "silver": 80,
          "bronze": 120
        }
      },
      "last_editor": null,
      "bounty_awarded": null,
      "recommended_by": [],
      "posted_by_collectives": [],
      "content_license": "CC BY-SA 4.0",
      "comment_count": 0,
      "comments": []
    }
  ],
  "comments": [
    {
      "id": 130000001,
      "url": "https://stackoverflow.com/questions/10000001/how-do-i-set-a-timeout-on-an-httpx-request#comment130000001_10000001",
      "body_html": "Which version of httpx do you use?",
      "body_markdown": "Which version of httpx do you use?",
      "score": 2,
      "is_edited": false,
      "created_at": "2024-03-14T09:30:12Z",
      "owner": null,
      "reply_to_user": null,
      "content_license": "CC BY-SA 4.0"
    }
  ],
  "source_url": "https://api.stackexchange.com/2.3/questions/10000001?site=stackoverflow&order=desc&sort=activity&filter=tvdphAWpCmQIKKbhPRIUXwhmqHNHrzzUDek3PwM4rHR",
  "observed_at": "2026-12-02T12:00:00Z"
}
```

## Price

1 credit a call, one question whole with its answers and comments. A question gone and a failed call are free.

## Errors

| Code | Status | Retry | Message |
|---|---|---|---|
| `invalid_question` | 422 | no | The value is neither a Stack Overflow question's id nor its link (or an answer's link). |
| `question_gone` | 404 | no | Stack Overflow has no such question, or no such answer, any more (deleted), or never had. Not charged. |
| `ip_blocked` | 503 | yes | Stack Overflow's API refused the IPs tried for today. Retry later; failed calls are free. |
| `site_unavailable` | 503 | yes | Stack Overflow's API did not answer properly; retry later (not charged). |
| `unexpected_answer` | 424 | no | Stack Overflow's API answered in a shape we do not read yet; we are told and fix it (not charged). |
| `missing_api_key` | 401 | no | No API key: send it as `Authorization: Bearer <key>`. |
| `invalid_api_key` | 401 | no | The key is not valid, or not anymore. |
| `insufficient_credits` | 402 | no | The call costs more credits than are left. |
| `unknown_operation` | 404 | no | No such source and operation in the catalog. |
| `timeout` | 408 | yes | The call did not finish within its deadline (not charged). |
| `invalid_body` | 422 | no | The body is not a call: source, operation, options. |
| `invalid_options` | 422 | no | An option is missing or out of its contract; `param` names it. |
| `invalid_idempotency_key` | 400 | no | The Idempotency-Key header is not printable ASCII, or too long. |
| `concurrency_limit` | 429 | yes | The plan's calls at a time are all in progress (Free 1, Starter 2, Pro 10, Team 50); retry when one has finished (not charged, never queued). |
| `service_busy` | 503 | yes | Too many calls at once on the account; retry in a few seconds. |
| `balance_unavailable` | 503 | yes | The balance could not be read; retry in a few seconds. |

## Changelog

- **1.0.1** (2026-12-02): Description only: says what stackoverflow/questions/search finds questions by.
- **1.0.0** (2026-12-02): First version: one Stack Overflow question whole, from its id, its link, its short link or an answer's link: its text in HTML and Markdown, every answer and every comment, their votes, dates, authors and licences, why it is closed and what it repeats, its bounty, notice and migration.

Schema: https://api.lobstr.io/v2/catalog/stackoverflow/questions/get · All operations: https://api.lobstr.io/v2/catalog.md
