Wikipedia & Wikidata Knowledge Scraper | 2Space
Pricing
from $0.40 / 1,000 wikipedia articles scraped
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
an hour ago
Last modified
Categories
Features
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.
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=queryendpoint over direct HTTP with a compliantUser-Agent—no Puppeteer, no Playwright, and no proxy bloat. - Canonical Wikidata Q-ID Linking: Every record automatically resolves its linked
wikidataId(e.g.,Q133436854) alongsidepageId,url,thumbnailUrl, and clean topiccategories. - Dual Input Modes (Search & Exact Titles): Run keyword queries via
searchQueries, fetch exact pages viatitles, or combine both with automatic title andpageIddeduplication. - Full Plain-Text Extracts + Lead Summaries: Returns both a crisp lead
summaryand the complete plain-textextractText(toggleable viaincludeFullExtract) plus accuratewordCountandlastModifiedtimestamps. - Multilingual Wikipedia Support: Switch
languagetoen,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-scrapedevent (count: 1), charged only after a validated article record is pushed to the dataset, with strictmaxItemsandmaxCostUsdpre-charge spending guards.
Common Use Cases
- RAG & LLM Knowledge Ingestion: Build clean, plain-text Wikipedia corpora with
summary,extractText, andwordCountready for chunking, embeddings, and vector databases. - Entity Resolution & Knowledge Graphs: Enrich company, technology, and concept lists with canonical
wikidataIdQ-IDs,pageIds, and Wikipediacategories. - AI Agent Tool Calling via MCP: Give Claude, ChatGPT, Cursor, or Antigravity instant, deterministic encyclopedia and Wikidata lookup capabilities without browser latency.
- Multilingual Research & Dataset Creation: Extract structured topic datasets across dozens of Wikipedia language editions in a single API call.
Input Parameters
| Field | Type | Default | Description |
|---|---|---|---|
searchQueries | string[] | ["Model Context Protocol", "Web scraping"] | Wikipedia search queries. Leave empty when providing only titles. |
titles | string[] | [] | Optional exact Wikipedia page titles to fetch directly. |
language | string | "en" | Wikipedia language edition subdomain (en, de, fr, es, ja, etc.). |
includeFullExtract | boolean | true | Fetch complete plain-text extractText alongside the REST summary. |
maxItems | integer | 6 | Hard cap on deduplicated articles pushed and billed per run. |
maxCostUsd | number | 0.25 | Pre-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-scrapedevent (count: 1per pushed article). - No Data, No Charge: Missing or invalid pages are skipped before
Actor.pushData()and never triggerActor.charge(). - Hard Budget Safety: Enforces both
maxItemsandmaxCostUsdprior to pushing and charging, and exits immediately if Apify reportseventChargeLimitReached.
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.