Wikipedia: Search
Search from Wikipedia as JSON. 1 credit per successful call.
GET /v1/wikipedia/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
q | string | Required | Up to 300 characters |
language | string | Optional | en, de, fr, es, it, pt, nl, ja, ru, pl, sv, zh |
page | integer | Optional | Any |
per_page | integer | Optional | Any |
Example request
Wikipedia
GET/v1/wikipedia/search?q=Albert+Einstein&language=en
{
"success": true,
"data": {
"search_parameters": {
"q": "Albert Einstein",
"language": "en"
},
"total_hits": 7560,
"page": 1,
"per_page": 20,
"has_more": true,
"results": [
{
"title": "Albert Einstein",
"page_id": 736,
"url": "https://en.wikipedia.org/wiki/Albert_Einstein",
"size_bytes": 240550,
"word_count": 24016,
"snippet": "Albert Einstein (14 March 1879 – 18 April 1955) was a German-born theoretical physicist best known for developing the theory of relativity. Einstein also",
"snippet_html": "<span class=\"searchmatch\">Albert</span> <span class=\"searchmatch\">Einstein</span> (14 March 1879 – 18 April 1955) was a German-born theoretical physicist best known for developing the theory of relativity. <span class=\"searchmatch\">Einstein…",
"updated_at": "2026-11-09T12:38:29Z"
},
{
"title": "Hans Albert Einstein",
"page_id": 1373258,
"url": "https://en.wikipedia.org/wiki/Hans_Albert_Einstein",
"size_bytes": 14413,
"word_count": 1222,
"snippet": "Hans Albert Einstein (May 14, 1904 – July 26, 1973) was a Swiss-American engineer, the second child and first son of physicists Albert Einstein and Mileva",
"snippet_html": "Hans <span class=\"searchmatch\">Albert</span> <span class=\"searchmatch\">Einstein</span> (May 14, 1904 – July 26, 1973) was a Swiss-American engineer, the second child and first son of physicists <span class=\"searchmatch\">Albert</span> <span …",
"updated_at": "2026-09-01T00:57:53Z"
},
{
"title": "Einstein family",
"page_id": 18742711,
"url": "https://en.wikipedia.org/wiki/Einstein_family",
"size_bytes": 33129,
"word_count": 3522,
"snippet": "The Einstein family is the family of physicist Albert Einstein (1879–1955). Einstein's fourth-great-grandfather, Jakob Weil, was his oldest recorded relative",
"snippet_html": "The <span class=\"searchmatch\">Einstein</span> family is the family of physicist <span class=\"searchmatch\">Albert</span> <span class=\"searchmatch\">Einstein</span> (1879–1955). <span class=\"searchmatch\">Einstein's</span> fourth-great-gra…",
"updated_at": "2026-11-08T17:16:17Z"
}
]
},
"meta": {
"endpoint_family": "search",
"request_id": "req_84b4048f2c8d48f2b88a39e61725f737",
"credits_charged": 1,
"credits_remaining": 1775
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.results has these 8 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
title | string |
page_id | integer |
url | url |
size_bytes | integer |
word_count | integer |
snippet | string |
snippet_html | string |
updated_at | string |