API · Wikipedia
GET /wikipedia/search
Search a Wikipedia edition: titles, snippets, sizes, last edits.
| Request | GET /v1/wikipedia/search |
| Operation id | wikipedia.search.all |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search a Wikipedia edition: titles, snippets, sizes, last edits.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Example: espresso machine. |
language | string | no | Wikipedia language edition (default en). Example: de. |
page | integer | no | |
limit | integer | no | |
since | string | no | |
until | string | no |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Matching articles. | |
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 | Wikipedia has no page with that title in that language. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Wikipedia is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.