Articles from Wikipedia: Text, Summaries and Wikidata IDs
Pricing
from $1.00 / 1,000 articles
Articles from Wikipedia: Text, Summaries and Wikidata IDs
Get Wikipedia articles in any language from titles, URLs or a search: summary or full plain text split into sections, Wikidata ID, short description, categories, thumbnail, last edit and monthly pageviews. Official Wikimedia APIs, attribution included. Pay per article.
Pricing
from $1.00 / 1,000 articles
Rating
0.0
(0)
Developer
Markus Heiß
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Get Wikipedia articles in any language as clean data. Give titles, Wikipedia links or a search query and get back one row per article: the summary, the full plain text or the text split into sections, the Wikidata ID, the short description, categories, the thumbnail, the last edit and, if you want, monthly pageviews. Every row carries the CC BY-SA 4.0 license and a link to the page history for attribution.
Built for RAG pipelines and LLM knowledge bases, entity enrichment and research. The Actor reads only the official Wikimedia APIs and follows the Wikimedia API etiquette.
Not affiliated with the Wikimedia Foundation. All article text comes from Wikipedia and its contributors.
What it does
- Titles or links in any language:
Albert Einstein,https://de.wikipedia.org/wiki/Graz, mobile links,index.php?title=links and?curid=page IDs. A link sets the language itself, titles use the language field. - Search: a full text search in one Wikipedia. The best matches are fetched as articles, ranked, up to Max articles.
- Three content levels: the lead section as summary, the full article as plain text with headings on their own lines, or the full article as a list of sections with title, level and text. Empty sections such as References are dropped.
- Entity data: Wikidata item ID (like
Q937), short description, visible categories without hidden maintenance categories, thumbnail URL, page ID, revision ID and last edit time. - Disambiguation and redirects: disambiguation pages are flagged. Redirects are followed by default (
UKgivesUnited Kingdom), the original title stays inredirectedFrom. - Monthly pageviews: human pageviews for the last 1 to 24 full months from the Wikimedia pageviews API, as an object month to count.
- Attribution included: license, license URL and a link to the page history on every row.
- Gentle with Wikipedia: up to 20 titles per API request, one request at a time,
maxlag=5, a User-Agent with a contact URL, backoff on HTTP 429 and 5xx, and it waits as long as Retry-After asks.
Use cases
- RAG and LLM knowledge bases: load articles split into sections as chunks with title, level and source URL, ready for embeddings.
- Entity enrichment: add Wikidata IDs, short descriptions and thumbnails to a list of companies, places or people, then join other data sets on the Wikidata ID.
- Research: collect the articles of a search or a topic list in several languages, with word counts, categories and edit dates.
- Content briefs: get the summary, structure and pageview trend of the articles about a topic before you write about it.
Input
| Field | Description | Default |
|---|---|---|
| Titles or Wikipedia URLs | Albert Einstein, https://de.wikipedia.org/wiki/Graz, https://en.wikipedia.org/w/index.php?curid=736 | |
| Search query | Full text search in the Wikipedia of the language below | |
| Language | Wikipedia language code for titles and the search: en, de, fr, ja, simple ... | en |
| Content | summary, text (full plain text) or sections | summary |
| Include categories | Visible categories of each article | on |
| Include Wikidata ID | Wikidata item ID of each article | on |
| Monthly pageviews (months) | 0 (off) to 24 full months | 0 |
| Follow redirects | Return the target article of a redirect | on |
| Max articles | 1 to 5,000 | 50 |
Example, three articles in two languages as sections for a RAG index:
{"articles": ["Retrieval-augmented generation","https://de.wikipedia.org/wiki/Graz","https://ja.wikipedia.org/wiki/東京都"],"content": "sections"}
Example, the 20 best French articles for a search, with summary and 12 months of pageviews:
{"searchQuery": "énergie solaire","language": "fr","pageviewsMonths": 12,"maxArticles": 20}
Output
One dataset item per article (shortened):
{"input": "Albert Einstein","title": "Albert Einstein","language": "en","pageId": 736,"url": "https://en.wikipedia.org/wiki/Albert_Einstein","wikidataId": "Q937","description": "German-born theoretical physicist (1879–1955)","summary": "Albert Einstein (14 March 1879 – 18 April 1955) was a German-born theoretical physicist best known for developing the theory of relativity...","text": null,"sections": [{ "title": "Albert Einstein", "level": 1, "text": "Albert Einstein (14 March 1879 – 18 April 1955) was a German-born theoretical physicist..." },{ "title": "Life and career", "level": 2, "text": "" },{ "title": "Childhood, youth and education", "level": 3, "text": "Einstein was born in Ulm as a subject to the Kingdom of Württemberg..." }],"wordCount": 14199,"pageLengthBytes": 240577,"categories": ["1879 births", "1955 deaths", "Nobel laureates in Physics"],"lastEditedAt": "2026-11-17T17:32:00Z","revisionId": 1386275911,"thumbnailUrl": "https://thumb.wikimedia.org/wikipedia/commons/thumb/2/28/Albert_Einstein_Head_cleaned.jpg/960px-Albert_Einstein_Head_cleaned.jpg","pageviews": { "2026-08": 304441, "2026-09": 293266, "2026-10": 296284 },"isDisambiguation": false,"isRedirect": false,"redirectedFrom": null,"searchRank": null,"license": "CC BY-SA 4.0, text from Wikipedia contributors","licenseUrl": "https://creativecommons.org/licenses/by-sa/4.0/","attributionUrl": "https://en.wikipedia.org/w/index.php?title=Albert_Einstein&action=history","error": null}
summaryis the lead section as plain text. It is always included.textis filled with Contenttext,sectionswith Contentsections. The other one isnull. Insections, the lead has the article title and level 1,==headings are level 2,===level 3 and so on. A heading without own text stays in the list when subsections with text follow.wordCountcounts the words of the delivered text: the full text or the sections with Contenttextorsections, the summary otherwise. It also works for Chinese, Japanese and Thai.pageLengthBytesis the size of the wiki source of the page, a rough measure of the article length that does not depend on the content option.descriptionis the short description that Wikipedia shows under the title in search and on mobile. Not every article has one.categoriesholds the visible categories without the namespace prefix.nullwhen the option is off.pageviewscounts human views (no bots) per calendar month. Months without data are 0.nullwhen the option is off.searchRankis the position in the search results,nullfor titles and links.isRedirectistrueonly when Follow redirects is off and the title is a redirect page.- A title that does not exist, an invalid title or a link that is not a Wikipedia article returns a free item with
errorset, for examplePage not found on en.wikipedia.org.
Export the dataset as JSON, CSV or Excel, or read it through the Apify API.
Pricing
Pay per article: 0.001 USD per delivered article, so 1.00 USD per 1,000 articles. The price is the same for summary, full text and sections. Missing pages, invalid lines and errors are free. Set Max articles or the maximum charge in Apify to cap the cost of a run.
Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.
Limits
- Summaries come in batches of 20 articles per request. The full text and the pageviews take one extra request per article each, so runs with Content
textorsectionsand with pageviews take longer. Expect about 1,000 articles with full text in 10 minutes. - The plain text comes from the Wikipedia TextExtracts API. Tables, infoboxes, image captions, math formulas and references are mostly left out. Lists become plain lines.
- The search uses the Wikipedia search engine and returns at most 10,000 results per query.
- Duplicates are removed: the same title twice, or two inputs that lead to the same article (for example a redirect and its target), give one row.
- Language variants (for example Chinese
zh-twlinks) return the article in the default script of that Wikipedia. - When Wikipedia stays unavailable after retries, the run stops with a free error item. Rows delivered so far stay in the dataset.
Data source, permitted use and legal
- Data source: Wikipedia, read through the official MediaWiki Action API and the Wikimedia pageviews API. All credit for the articles goes to the Wikipedia contributors. This Actor is not affiliated with or endorsed by the Wikimedia Foundation.
- License of the text: Wikipedia text is licensed under CC BY-SA 4.0. When you reuse it, you must give attribution (credit the Wikipedia contributors and link the article or its history, as in
attributionUrl) and share your adapted text under the same license. Images behindthumbnailUrlcan have their own licenses on Wikimedia Commons. The Wikimedia Terms of Use apply. - Snapshot: Results show the articles at the time of the run. We do not guarantee that they are complete, current or correct.
- For business use: This Actor is offered to businesses only, not to consumers.
- Your responsibility: You choose the articles and decide what happens with the results. If your input or the results contain personal data, you are the controller and need your own legal basis. Articles about living people contain personal data.
- No circumvention: The Actor uses public, unauthenticated endpoints only. It does not bypass rate limits, blocks or access restrictions.
- Request volume: One request at a time with a short pause, up to 20 titles per request,
maxlag=5, a User-Agent with a contact URL, exponential backoff on HTTP 429 and 5xx, Retry-After honoured, and it stops when Wikipedia stays unavailable. Do not use it to put excessive load on Wikimedia servers. For a full copy of Wikipedia, use the Wikimedia dumps instead. - Provider: forgeloop, Markus Heiss, Austria. Imprint, Privacy Notice, Terms of Use.
Questions and issues
Open an issue on the Actor page.