Wikipedia API
Mediawiki Encyclopedia
- Our call
- HTTP 200
- Latency
- 1,766 ms
- From a browser
- Allowed
- Key
- No key
- Docs link
- Answered
https://en.wikipedia.org/api/rest_v1/page/summary/EarthPress Run: the request leaves from your browser, and you see what it gets back.
const res = await fetch("https://en.wikipedia.org/api/rest_v1/page/summary/Earth");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);curl -sS 'https://en.wikipedia.org/api/rest_v1/page/summary/Earth'import requests
r = requests.get("https://en.wikipedia.org/api/rest_v1/page/summary/Earth", timeout=10)
r.raise_for_status()
print(r.json())Wikipedia docsMore Open Data APIs
Come back to see anything that changed: answers, keys, browser access, rate limits.
Our test call Measured by us
- Request
GET https://en.wikipedia.org/api/rest_v1/page/summary/Earth- Result
- HTTP 200 in 1,766 ms (1,769 ms with the body)
- From a browser
- Browser OK Access-Control-Allow-Origin: *
- HTTPS
- Yes
- Response
- application/json, 3,490 bytes, a JSON object
- Fields
typetitledisplaytitlenamespacewikibase_itemtitlespageidthumbnailoriginalimagelang- Rate-limit headers
- none sent (that doesn't mean unlimited)
Access-Control-Allow-Origin: * to us, so browser code can call it.Change log Measured by us
No changes seen since we started tracking on 2026-11-06. Each check compares the answer, the key requirement, the browser (CORS) header and the rate limit with the run before.
What the list says From the public-apis list
- Category
- Open Data
- Auth
- No key
- CORS
- Not recorded Our call disagrees
- Docs link
- mediawiki.org answered 200 in 3918 ms on 2026-11-06 Measured
Wikipedia is listed in Open Data. Wikipedia needs no key: you can call it without signing up. The list doesn't record whether it allows browser calls (CORS), so test that before building a browser-only app on it.
The list has 55 Open Data APIs: 34 need no key, 17 need an API key and 4 use OAuth, and 28 of them are marked as allowing browser calls. 8 others have the same setup, such as BotsArchive, Callook.info and CollegeScoreCard.ed.gov.
Wikipedia and other Open Data APIs
| Fact | Wikipedia (this page) | Microlink.io | Nobel Prize | Universities List | 10ML Fragrance Index |
|---|---|---|---|---|---|
| Key needed From the public-apis list | No key | No key | No key | No key | No key |
| CORS, as listed From the public-apis list | Not recorded | Yes | Yes | Not recorded | Yes |
| Our test call Measured by us | 1,766 ms | 921 ms | 392 ms | 2,262 ms | Not tested |
| Browser call Measured by us | Allowed | Allowed | Allowed | HTTP only | — |
| Docs link Measured by us | Answered | Answered | Answered | Answered | Answered |
Questions
Does Wikipedia need an API key?
Wikipedia needs no key: you can call it without signing up.
Can I call Wikipedia from JavaScript in the browser?
Yes. When we called it it sent Access-Control-Allow-Origin: *, so a web page can call it directly.
Where are the Wikipedia docs?
At https://www.mediawiki.org/wiki/API:Main_page. When we checked, the link answered 200 in 3918 ms.
What are some alternatives to Wikipedia?
Other Open Data APIs in the list include BotsArchive, Callook.info, CollegeScoreCard.ed.gov and French Address Search.
Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.