Wikipedia Scraper — Summary & Full Text · 300+ Languages
Pricing
from $2.00 / 1,000 article scrapeds
Wikipedia Scraper — Summary & Full Text · 300+ Languages
Search Wikipedia by title or keyword and get summary or full-text article extracts via the public REST API, in 300+ languages, with Wikidata ID, word count and images. $0.002 per article.
Pricing
from $2.00 / 1,000 article scrapeds
Rating
0.0
(0)
Developer
Gio
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
a month ago
Last modified
Categories
Features
Share
Why use this scraper
Wikipedia is the single largest source of structured, free-to-use general knowledge on the web, and it already has a public API, so pulling from it should be trivial. In practice it is not: the public endpoints are split across search, summary and full-text content, the response shapes differ between them, and anyone building a RAG pipeline, a knowledge base, a chatbot, or a dataset of entity descriptions ends up writing and maintaining their own thin wrapper around three or four different Wikimedia endpoints just to get a clean list of articles with text, metadata and an image.
This Actor is that wrapper, already built: give it a search term or an article title, pick a language and whether you want a short summary or the full plain-text article, and get back structured JSON with the extract, a Wikidata ID for entity linking, word count, coordinates (when the article is about a place) and a thumbnail image, ready to feed into an LLM prompt, a search index or a spreadsheet.
Overview
The Actor searches Wikipedia for a query or article title, retrieves matching pages, and returns either a short summary extract or the full plain-text article for each, along with metadata: page description, Wikidata entity ID, internal page ID, word count, geographic coordinates when present, thumbnail and original image URLs, and the canonical article URL. It supports Wikipedia's 300+ language editions by language code, so the same input shape works whether you're pulling English, Portuguese, Japanese or any other Wikipedia. A summary-mode run for a handful of articles finishes in a few seconds; full-text mode takes a bit longer per article since it fetches the complete article body instead of the short extract.
Supported inputs
- Search query or exact title —
searchTermaccepts either a loose keyword/phrase (returns the closest matching articles) or an exact article title (returns that article directly when it exists). - Language selection —
langis any Wikipedia language code (en,pt,es,fr,de,ja,ru,zh, and 300+ others); each run queries a single language edition. - Summary vs. full text —
modeset tosummaryreturns the short lead extract (fast, cheap, good for entity enrichment);fulltextreturns the complete plain-text article body (better for RAG and deep content use). - Result cap —
maxItems(1 to 200) limits how many matching articles are returned per run.
Use cases
- RAG / LLM knowledge grounding — pull full-text articles on a topic to use as retrieval context for a chatbot or question-answering system, instead of relying on model memory.
- Entity enrichment pipeline — look up a company, person or place name and attach its Wikidata ID, description and summary to an existing dataset.
- Content research — gather background summaries on a batch of topics before writing an article, script or report.
- Educational tools — build a quiz, flashcard or study app that pulls real article summaries and images for a given subject.
- Multilingual knowledge comparison — fetch the same topic in several language editions (by running the same
searchTermwith differentlangvalues) to compare how different Wikipedia editions cover it.
How it works
The Actor calls Wikipedia's own public REST API (the same backend the Wikipedia mobile apps and official summary cards use) rather than rendering and scraping the HTML page, which is why a summary-mode request returns in well under a second per article: the API already serves a clean, pre-extracted summary object. Full-text mode makes an additional call per matched article to pull the complete plain-text extract instead of just the lead section. Search terms that do not exactly match a title are resolved through Wikipedia's own search/autocomplete, so a loose or partial query still returns the closest real articles instead of failing outright.
Input configuration
Quick summary lookup, English:
{"searchTerm": "Apify","lang": "en","mode": "summary","maxItems": 5}
Full-text article for a RAG pipeline, Portuguese:
{"searchTerm": "Inteligência artificial","lang": "pt","mode": "fulltext","maxItems": 1}
Batch entity enrichment, several close matches:
{"searchTerm": "Nikola Tesla","lang": "en","mode": "summary","maxItems": 10}
Output sample
Real item from a reference run (searchTerm: "Apify", mode: "summary"):
{"title": "Apidya","displayTitle": "<i>Apidya</i>","description": "1992 video game","extract": "Apidya is a horizontally scrolling shoot 'em up video game developed by German studio Kaiko and released by Blue Byte in 1992 for the Amiga. The game was also released by the disk magazine Amiga Spiele Disc, and later as a budget game by Team17 in 1994.","lang": "en","wordCount": 47,"wikidataId": "Q618610","pageId": 509261,"type": "standard","timestamp": "2026-10-02T09:00:00Z","coordinates": null,"thumbnail": "https://upload.wikimedia.org/wikipedia/en/7/7e/Apidya_Cover.jpg","originalImage": "https://upload.wikimedia.org/wikipedia/en/7/7e/Apidya_Cover.jpg","url": "https://en.wikipedia.org/wiki/Apidya"}
Key output fields
| Field | Type | Description |
|---|---|---|
title | string | Plain article title. |
displayTitle | string | Title with Wikipedia's own HTML formatting (italics for species/works, etc.). |
description | string | Short one-line description Wikipedia stores for the page. |
extract | string | Summary text (summary mode) or full plain-text article body (fulltext mode). |
lang | string | Wikipedia language code the article was fetched from. |
wordCount | number | Word count of the returned extract. |
wikidataId | string | The article's Wikidata entity ID (e.g. Q618610), useful for entity linking across datasets. |
pageId | number | Wikipedia's internal numeric page ID. |
type | string | Page type as classified by Wikipedia (e.g. standard, disambiguation). |
timestamp | string | Last-edit timestamp of the article revision fetched. |
coordinates | object or null | Latitude/longitude when the article is about a geographic place; null otherwise. |
thumbnail / originalImage | string | Thumbnail and full-size lead image URL, when the article has one. |
url | string | Canonical article URL on the matching language's Wikipedia. |
Pricing
Pay per event, no subscription:
| Event | When it is charged | Price |
|---|---|---|
| Actor Start | Once per GB of memory allocated, minimum once per run | $0.00005 |
| Article scraped | Once per article successfully returned (errors and empty pages not charged) | $0.002 |
Cost per 1,000 articles: $2.00. A 10-article summary lookup costs about $0.02.
What makes this richer than the competition
The Wikipedia-scraping niche on the Store is crowded with thin wrappers around the same public API, differentiated mostly by marketing:
- automation-lab/wikipedia-scraper (11 users/30d), the highest-traffic listing in this niche by a wide margin, ships under a plain "Wikipedia Scraper" title with no stated feature differentiator.
- flash_scraper/wikipedia-scraper (2 users/30d), positioned as "Articles, Summaries & Full Text for RAG", targets the same LLM-grounding use case this Actor covers.
This Actor differentiates on completeness of the metadata returned in a single call: alongside the text extract, every item ships a Wikidata entity ID (for linking the same real-world entity across datasets), word count, geographic coordinates when applicable, and both thumbnail and original-resolution images, across 300+ language editions with the same input shape.
Notes & limitations
searchTermthat matches no article returns zero items rather than a fabricated result; very obscure or misspelled queries may resolve to an unrelated but similarly-named article (Wikipedia's own search behavior), so always checktitleandurlin the output against what you expected.coordinatesis only populated for articles Wikipedia itself geotags (places, buildings, geographic features); it isnullfor people, concepts, events and most other article types.- Full-text mode returns the plain-text article body with Wikipedia's own section structure flattened into one extract; tables, infoboxes and reference lists are not separately structured.
- This Actor is not affiliated with the Wikimedia Foundation. It reads the same publicly available REST API Wikipedia itself exposes for third-party use, subject to Wikimedia's API usage terms.
FAQ
What's the difference between summary and fulltext mode? summary returns the short lead extract Wikipedia uses for preview cards; fulltext returns the complete plain-text article body. Full-text costs the same per article but returns more content, useful for RAG and deep research use.
Can I fetch non-English Wikipedia? Yes, set lang to any of Wikipedia's 300+ language codes; each run queries one language edition.
What is wikidataId useful for? It is the stable Wikidata entity identifier for the subject (e.g. Q618610), which lets you link the same real-world entity across different datasets and languages, since article titles differ by language but the Wikidata ID does not.
Does a loose keyword search always return the article I meant? Not always. Wikipedia resolves loose queries through its own search/autocomplete, which can return a similarly-named but different article (as in the sample above, where "Apify" resolved to unrelated nearby matches). Use the exact article title in searchTerm when you need a specific page.
Are empty or failed lookups charged? No, only articles successfully returned are billed; errors and empty pages are not charged.
For AI Agents & LLM Apps
This Actor is available over the Apify MCP server (mcp.apify.com) for direct use inside an LLM agent, and over the Apify API for programmatic use.
Example API call (synchronous, returns dataset items directly):
curl "https://api.apify.com/v2/acts/wikipedia-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \-H "Content-Type: application/json" \-d '{"searchTerm": "Apify", "lang": "en", "mode": "summary", "maxItems": 5}'
SEO Keywords
Wikipedia scraper, Wikipedia API, Wikipedia article extractor, Wikidata entity lookup, RAG knowledge base, Wikipedia summary scraper, multilingual Wikipedia scraper, entity enrichment API, Wikipedia full text scraper, knowledge extraction tool.