# Wikipedia REST API

Category: [Books and research](https://free-web-services.com/web-services/documentation/)  
Page: https://free-web-services.com/web-services/documentation/wikipedia-rest-api.html  
Documentation: https://api.wikimedia.org/wiki/Getting_started_with_Wikimedia_APIs

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.

- API key: Not needed
- 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

Example request:

```sh
curl 'https://en.wikipedia.org/api/rest_v1/page/summary/London'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

