API · Stack Overflow
GET /stackoverflow/search
Search Stack Overflow questions by text, tags and date.
| Request | GET /v1/stackoverflow/search |
| Operation id | stackoverflow.search.all |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search Stack Overflow questions by text, tags and date.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | Search terms. Example: pandas groupby. |
tagged | string | no | Tags, separated by ; or ,. |
sort | "relevance" | "votes" | "activity" | "creation" | no | One of relevance, votes, activity, creation. |
page | integer | no | Page number, 1 to 25. Defaults to 1. |
limit | integer | no | Rows per page, 1 to 100. Defaults to 30. |
since | string | no | Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Example: 2026-01-01. |
until | string | no | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp. Example: 2026-12-31. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of matching questions. | StackOverflowQuestions |
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 |
StackOverflowQuestions fields
| Field | Type | Description |
|---|---|---|
items | StackOverflowQuestion[] | |
has_more | boolean | |
page | integer | |
page_size | integer |
Errors use one shape everywhere; see Errors for every code and what to do.