Wikipedia scraper

ExtractHub extractors are versioned web scrapers: each one is a saved scraper for one kind of page that returns structured JSON through an API. For Wikipedia (en.wikipedia.org) there is one public extractor: Wikipedia - article. Together they return fields such as title, url, shortDescription, wikidataId, summary, summaryParagraphs, infobox, image and 6 more fields. Call one with your API key and a pinned extractor_id, from the REST API, the Batch API or an AI agent over MCP.

Wikipedia scraper extractor

  • en.wikipedia.org · @extracthub1/wikipedia-article@1 (v1.0.0)

    Wikipedia article page (any language edition, /wiki/<title>): title, URL, short description, Wikidata id, lead summary (first paragraph and all lead paragraphs), infobox as label / value rows, infobox image, section headings, categories, references count, language editions count, first published and last modified dates.

    Fields: title , url , shortDescription , wikidataId , summary , summaryParagraphs , infobox , image , sections , categories and 4 more

    Wikipedia - article scraper: fields, versions and examples →

How to call the Wikipedia scraper API

Every call needs your API key (X-API-Key) and a pinned extractor_id. This example uses @extracthub1/wikipedia-article@1 (Wikipedia - article); open an extractor's page for its batch, Python and Node examples.

REST: realtime extract
curl -X POST "https://api.extracthub.io/api/extractor/extract" \
  -H "X-API-Key: $EXTRACTHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "extractor_id": "@extracthub1/wikipedia-article@1",
    "target": { "url": "https://en.wikipedia.org/..." }
  }'
MCP: ask your agent (server https://api.extracthub.io/mcp), which calls the extract tool
Use ExtractHub to extract https://en.wikipedia.org/... with @extracthub1/wikipedia-article@1
{
  "tool": "extract",
  "arguments": {
    "extractor_id": "@extracthub1/wikipedia-article@1",
    "url": "https://en.wikipedia.org/..."
  }
}

See the web scraping API reference and the web scraping MCP server setup.

Need another Wikipedia page type?

Build your own Wikipedia scraper with an AI agent and the extractor builder skill, or in ExtractHub Studio. It stays private until you release it.

Wikipedia scraper: frequently asked questions

Is there a ready-made Wikipedia scraper?

Yes. ExtractHub lists one public extractor for en.wikipedia.org. An extractor is a versioned web scraper for one kind of page: its owner released it as an immutable version with an output schema, and you call that version with your own API key.

What data can I scrape from Wikipedia?

Wikipedia - article returns title, url, shortDescription, wikidataId, summary, summaryParagraphs and 8 more. Every field is listed on the extractor's page with a sample response.

How do I call the Wikipedia scraper API?

Send GET or POST https://api.extracthub.io/api/extractor/extract with your API key in the X-API-Key header, extractor_id=@extracthub1/wikipedia-article@1 and the URL of a en.wikipedia.org page as the target. For many URLs use POST https://api.extracthub.io/api/extractor/batch. AI agents call the same extractor through the extract tool of the ExtractHub MCP server at https://api.extracthub.io/mcp.

Can I build my own Wikipedia scraper?

Yes. Build an extractor for any Wikipedia page type in ExtractHub Studio, or let an AI agent such as Claude Code build, test and release it with the open-source extractor builder skill. New extractors are private until you release them.