Wikipedia API
en.wikipedia.org
Wikipedia — search articles, get page summaries and full content, browse featured articles, on this day events.
- Actions
- 5
- Category
- Reference
- Login
- Not required
- Output
- JSON
Call the Wikipedia API
Submit a task, then poll the job until it settles. This example runs wp_search.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "wp_search",
"params": {
"query": "<query>"
}
}'5 actions on en.wikipedia.org
Read
Search Wikipedia
wp_searchread1 credit / callSearch Wikipedia articles by keywords. Returns matching pages with descriptions.
- query
- string · required
Wikipedia Featured
wp_featuredread1 credit / callToday's featured article, news, on this day events, and most read articles.
Wikipedia On This Day
wp_on_this_dayread1 credit / callHistorical events, births, deaths, and holidays on today's date.
Wikipedia Page Content
wp_page_contentread1 credit / callFetch full Wikipedia page — HTML content, sections, categories, languages, external links.
- title
- string · required
Wikipedia Page Summary
wp_page_summaryread1 credit / callGet a concise summary/extract for a Wikipedia page by title.
- title
- string · required
Wikipedia API questions
- Is there an API for Wikipedia?
- Wikipedia does not offer a public data API for this, but Anakin Wire provides 5 maintained endpoints for en.wikipedia.org. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape Wikipedia data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when en.wikipedia.org changes its markup, Anakin updates the action.
- Do I need a Wikipedia account?
- No. Every Wikipedia action listed here runs anonymously — no account and no credentials required.
- What does the Wikipedia API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.