Wikipedia REST API
by api.wikimedia.org
Books and research
Added on October 31st, 2026
Checked and working on November 16th, 2026
Visit api.wikimedia.org →
What it does
The Wikimedia APIs give access to Wikipedia in all languages. Get a page summary with its lead image (as used for link previews), the full page in HTML, search results, related pages and 'on this day' events, and page view statistics. Responses are JSON. Free, no key needed; send a User-Agent that identifies your app. The content is licensed under Creative Commons BY-SA.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed; send a User-Agent that identifies your app.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- api.wikimedia.org
- Last checked
- Working on November 16th, 2026
More information: https://api.wikimedia.org/wiki/Getting_started_with_Wikimedia_APIs
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://en.wikipedia.org/api/rest_v1/page/summary/London'
JavaScript
const response = await fetch("https://en.wikipedia.org/api/rest_v1/page/summary/London");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://en.wikipedia.org/api/rest_v1/page/summary/London",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.