Wikipedia & Wikidata Knowledge Scraper | 2Space avatar

Wikipedia & Wikidata Knowledge Scraper | 2Space

Pricing

from $0.40 / 1,000 wikipedia articles scraped

Go to Apify Store
Wikipedia & Wikidata Knowledge Scraper | 2Space

Wikipedia & Wikidata Knowledge Scraper | 2Space

Fast Wikipedia and Wikidata scraper across 300+ languages. Scrapes full clean Markdown articles, summaries, Wikidata Q-IDs, structured entity properties, categories, and outbound references.

Pricing

from $0.40 / 1,000 wikipedia articles scraped

Rating

0.0

(0)

Developer

2Space Group

2Space Group

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

an hour ago

Last modified

Features

Limited permissions

Share

Built by 2Space · Pure-HTTP Wikipedia scraper, Wikidata extractor, Wikipedia API client, and knowledge base dataset builder engineered for AI agents, RAG pipelines, entity resolution, and MCP workflows.

Apify Actor MCP Ready Zero Browser

Whether you need a fast Wikipedia scraper for RAG and LLM grounding, a clean Wikidata extractor mapping encyclopedia articles to canonical Wikidata Q-IDs (Q133436854), or a structured Wikipedia API dataset for entity enrichment across any language edition, this Actor delivers validated, deduplicated records in seconds with zero headless browser overhead and zero external LLM API keys.


Key Features & Why Choose This Scraper

  • Pure HTTP + Official MediaWiki & REST APIs: Queries Wikipedia's official search API, REST v1 summary endpoint, and MediaWiki action=query endpoint over direct HTTP with a compliant User-Agent—no Puppeteer, no Playwright, and no proxy bloat.
  • Canonical Wikidata Q-ID Linking: Every record automatically resolves its linked wikidataId (e.g., Q133436854) alongside pageId, url, thumbnailUrl, and clean topic categories.
  • Dual Input Modes (Search & Exact Titles): Run keyword queries via searchQueries, fetch exact pages via titles, or combine both with automatic title and pageId deduplication.
  • Full Plain-Text Extracts + Lead Summaries: Returns both a crisp lead summary and the complete plain-text extractText (toggleable via includeFullExtract) plus accurate wordCount and lastModified timestamps.
  • Multilingual Wikipedia Support: Switch language to en, de, fr, es, ja, simple, or any Wikipedia language subdomain.
  • Instant Empty {} Input Support: Works out of the box with zero configuration—an empty {} input defaults to ["Model Context Protocol", "Web scraping"] (en, maxItems: 6, maxCostUsd: 0.25).
  • No Data, No Charge (Pay-Per-Event): Uses the wiki-article-scraped event (count: 1), charged only after a validated article record is pushed to the dataset, with strict maxItems and maxCostUsd pre-charge spending guards.

Common Use Cases

  1. RAG & LLM Knowledge Ingestion: Build clean, plain-text Wikipedia corpora with summary, extractText, and wordCount ready for chunking, embeddings, and vector databases.
  2. Entity Resolution & Knowledge Graphs: Enrich company, technology, and concept lists with canonical wikidataId Q-IDs, pageIds, and Wikipedia categories.
  3. AI Agent Tool Calling via MCP: Give Claude, ChatGPT, Cursor, or Antigravity instant, deterministic encyclopedia and Wikidata lookup capabilities without browser latency.
  4. Multilingual Research & Dataset Creation: Extract structured topic datasets across dozens of Wikipedia language editions in a single API call.

Input Parameters

FieldTypeDefaultDescription
searchQueriesstring[]["Model Context Protocol", "Web scraping"]Wikipedia search queries. Leave empty when providing only titles.
titlesstring[][]Optional exact Wikipedia page titles to fetch directly.
languagestring"en"Wikipedia language edition subdomain (en, de, fr, es, ja, etc.).
includeFullExtractbooleantrueFetch complete plain-text extractText alongside the REST summary.
maxItemsinteger6Hard cap on deduplicated articles pushed and billed per run.
maxCostUsdnumber0.25Pre-charge spending safety cap in USD for Pay-Per-Event billing.

Sample JSON Output

Each dataset item uses flat, strongly typed fields ready for JSON, CSV, SQL, vector stores, and MCP tool responses:

{
"pageId": 79706999,
"title": "Model Context Protocol",
"language": "en",
"summary": "The Model Context Protocol (MCP) is an open standard, open-source framework introduced by Anthropic in November 2024 to standardize the way artificial intelligence (AI) systems like large language models (LLMs) integrate and share data with external tools, systems, and data sources.",
"extractText": "The Model Context Protocol (MCP) is an open standard, open-source framework introduced by Anthropic in November 2024...\n\n== History ==\n...",
"wikidataId": "Q133436854",
"url": "https://en.wikipedia.org/wiki/Model_Context_Protocol",
"thumbnailUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Model_Context_Protocol_logo.svg/330px-Model_Context_Protocol_logo.svg.png",
"categories": [
"2024 software",
"Anthropic",
"Application layer protocols",
"Generative AI",
"Linux Foundation projects",
"Open standards"
],
"wordCount": 1320,
"lastModified": "2026-11-23T20:16:26.000Z",
"extractedAt": "2026-12-03T03:45:00.000Z"
}

A full execution summary is also persisted to the default Key-Value Store under RUN_DIAGNOSTICS, recording search counts, candidate deduplication totals, article success/failure counts, and budget-cap flags.


1-Prompt MCP Setup

Connect 2space/wikipedia-wikidata-scraper directly to ChatGPT, Claude Desktop, Cursor, or Antigravity using the Apify MCP endpoint:

https://mcp.apify.com?tools=2space/wikipedia-wikidata-scraper

Or configure mcpServers in your MCP client configuration:

{
"mcpServers": {
"apify-wikipedia-wikidata": {
"url": "https://mcp.apify.com?tools=2space/wikipedia-wikidata-scraper",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}

Then prompt your AI assistant:

"Use 2space/wikipedia-wikidata-scraper to fetch the Wikipedia summaries, full extracts, categories, and Wikidata IDs for 'Retrieval-augmented generation' and 'Knowledge graph'."

You can also invoke the synchronous Apify REST API directly from n8n, Make, Zapier, or any backend service:

POST https://api.apify.com/v2/acts/2space~wikipedia-wikidata-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN

Pricing & Reliability

  • Pay-Per-Event: Billed via the single wiki-article-scraped event (count: 1 per pushed article).
  • No Data, No Charge: Missing or invalid pages are skipped before Actor.pushData() and never trigger Actor.charge().
  • Hard Budget Safety: Enforces both maxItems and maxCostUsd prior to pushing and charging, and exits immediately if Apify reports eventChargeLimitReached.

Support

Questions or edge cases with specific Wikipedia language editions? Open an issue on the Actor's Issues tab in Apify Console (https://apify.com/2space/wikipedia-wikidata-scraper/issues) and include your input payload and RUN_DIAGNOSTICS output.