Research
Wikipedia logo

Wikipedia API

en.wikipedia.org

Wikipedia - article search, summaries, full content, and featured articles.

Actions
5
Category
Research
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": "Python"
    }
  }'

5 actions on en.wikipedia.org

Read

  • Article Search

    wp_searchread1 credit / call

    Returns Wikipedia pages matching keywords with descriptions.

    query
    string · required
  • Featured Content

    wp_featuredread1 credit / call

    Returns today's featured article, news, on this day events, and most read articles.

  • On This Day

    wp_on_this_dayread2 credits / call

    Returns historical events, births, deaths, and holidays for today's date.

  • Page Content

    wp_page_contentread2 credits / call

    Returns a full Wikipedia page with content, sections, categories, languages, and external links.

    title
    string · required
  • Page Summary

    wp_page_summaryread1 credit / call

    Returns 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.

More Research APIs

All Research sites