# Stack Overflow: Search questions

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

One page of a Stack Overflow search, up to 100 questions, each 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 need what Stack Overflow's developers asked and answered about something: search its questions by words, by tags (every tag given), by words of the title or the body, by author, by a link they hold, by date, by how many answers or views they have, or by whether they are answered, closed, migrated or community wiki. Each question comes whole in the same call: its text in HTML and in Markdown, every answer (the accepted one says so) and every comment of both, with their scores, dates, authors and licence; no other call is needed to read them. Sort by relevance (Stack Overflow's own search), newest, latest activity or votes. Follow `next` for the following page: a search goes to 25 pages of 100, 2,500 questions; narrow it by dates (`created_after`, `created_before`) to go further. For one question you already have, by its id or its link, use stackoverflow/questions/get.

## 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/search", "options": {"query": "httpx timeout", "tags": ["python"], "sort": "votes"}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 100, "has_more": true, "next": {"source": "stackoverflow", "operation": "questions/search", "options": {...}},
 "cost": {"credits": 1}, "balance": {"credits": 9990}, "results": [...]}
```

`cost` and `balance` are objects: a call's credits are `cost.credits`. `results` holds the records (below). `next` is the whole call for the following page: send it as it is; `null` on the last page.

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. |
| `limit` | integer | Only the first N records of this call (1 to 1000), in the call's order; the call costs the same, and `next` keeps the limit. Left out: every record. |

## Options

| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| `query` | string |  |  | Words to search for, anywhere in a question (its title, its text, its tags), as Stack Overflow's own search reads them. |
| `tags` | array of string |  |  | Tags the questions must have, all of them (python and asyncio: the questions tagged both), as Stack Overflow writes them (python, c++, asp.net-core). A question has at most five. |
| `excluded_tags` | array of string |  |  | Tags the questions must not have, none of them. Needs another criterion beside it (words, tags...). |
| `title` | string |  |  | Words the question's title must hold, whole, side by side and in this order: `connection pool` finds "Connection pool is full", not "Pool of connections"; `timeout` does not find "ReadTimeout". To find a subject, `query` reaches further. |
| `body` | string |  |  | Words the question's text must hold, whole, side by side and in this order (`read timeout`, not `timeout read`). To find a subject, `query` reaches further. |
| `user` | integer | string |  |  | The questions of one author: their user id on Stack Overflow (22656), or the address of their profile (https://stackoverflow.com/users/22656/...). |
| `mentions_url` | string |  |  | A link that the question or one of its answers holds; `*` stands for any part of it (https://github.com/encode/httpx*). |
| `has_accepted_answer` | boolean |  |  | True for the questions with an accepted answer only, false for those without. Both when left out. |
| `is_closed` | boolean |  |  | True for the closed questions only (duplicates, off-topic...), false for the open ones. Both when left out. |
| `is_migrated` | boolean |  |  | True for the questions moved from Stack Overflow to another Stack Exchange site only, false for the others. Both when left out. |
| `has_notice` | boolean |  |  | True for the questions with a moderator's notice only (a lock, a call for better answers...), false for the others. Both when left out. |
| `is_wiki` | boolean |  |  | True for the community wiki questions only, false for the others. Both when left out. |
| `answers_min` | integer |  |  | The questions with at least this many answers. |
| `views_min` | integer |  |  | The questions viewed at least this many times. |
| `created_after` | string |  |  | The questions asked from this date on (2024-01-31, from its midnight UTC) or from this instant (2024-01-31T12:00:00Z). |
| `created_before` | string |  |  | The questions asked before this date (before its midnight UTC: 2025-02-01 keeps January 31 whole) or this instant. A month is its first day in `created_after` and the next month's here: 2025-01-01 and 2025-02-01. |
| `sort` | `relevance`, `newest`, `activity`, `votes` |  | `"relevance"` | The order of the questions: relevance, Stack Overflow's own search order; newest, the latest asked first; activity, the latest answered, commented or edited first; votes, the highest scored first among every question that matches, however loosely (with `query`, popular questions that only mention the words come first). For the most voted on a subject, sort by relevance and compare their `score`. |
| `order` | `desc`, `asc` |  | `"desc"` | The sort's direction, desc as each sort says or asc to reverse it (the oldest first, the lowest scored first). |
| `page` | integer, 1 to 25 |  | `1` | The page to start at, 100 questions a page; `next` goes on from there, to page 25. |
| `cursor` | string |  |  | Where to go on, from `next` in an answer, as it is: opaque, and only for the search it was given with (otherwise `invalid_cursor`). |

## Record

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

| Field | Type | Description |
|---|---|---|
| `object` | `"question"` |  |
| `position` | integer | The question's rank in the search, across pages. |
| `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",
  "position": 1,
  "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/search/advanced?site=stackoverflow&page=1&pagesize=100&order=desc&sort=votes&q=httpx%20timeout&tagged=python&filter=tvdphAWpCmQIKKbhPRIUXwhmqHNHrzzUDek3PwM4rHR",
  "observed_at": "2026-12-02T12:00:00Z"
}
```

## Price

1 credit a call, one page of up to 100 questions, each whole with its answers and comments. An empty page and a failed call are free.

## Errors

| Code | Status | Retry | Message |
|---|---|---|---|
| `invalid_input` | 422 | no | Pass the criteria Stack Overflow's search takes: words, tags as Stack Overflow writes them, an author's id or profile, dates (2024-01-31), and a page from 1 to 25. |
| `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): Descriptions only: `title` and `body` find their words whole, side by side and in that order; `created_before` ends before the date's midnight UTC; `votes` ranks every match by score, however loose.
- **1.0.0** (2026-12-02): First version: one page of a Stack Overflow search, 100 questions, by words, tags, title, text, author, link, dates, answers, views and state, sorted by relevance, date, activity or votes; each question whole with its text in HTML and Markdown, every answer and every comment, their votes, dates, authors and licences, why it is closed, its bounty, notice and migration.

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