Wikipedia Article Scraper avatar

Wikipedia Article Scraper

Pricing

from $1.00 / 1,000 articles

Go to Apify Store
Wikipedia Article Scraper

Wikipedia Article Scraper

Search Wikipedia in any language or give article titles and export clean data: summary, full plain text, word count, categories, Wikidata ID, main image, last edit date and 30-day page views. Official API, no login or key.

Pricing

from $1.00 / 1,000 articles

Rating

0.0

(0)

Developer

Danial Maqbool

Danial Maqbool

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Features

Limited permissions

Share

Search Wikipedia in any language, or give a list of article titles or URLs, and export clean article data to JSON, CSV or Excel: the short description, lead summary, full article as plain text, word count, categories, Wikidata ID, main image, last edit date and, optionally, human page views over the last 30 days.

It uses the official MediaWiki API and the Wikimedia Pageviews API. No login, API key or proxy needed.

What you can use it for

  • AI and RAG datasets: collect clean plain-text articles on a topic for embeddings, fine-tuning or retrieval.
  • Research and education: export every article that matches a subject, with categories and Wikidata IDs for linking.
  • Content and SEO research: see which topics get the most page views and how long and recently edited the articles are.
  • Entity enrichment: turn a list of company, person or place names into descriptions, images and Wikidata IDs.
  • Multilingual work: run the same query on de, fr, es, ja or any other Wikipedia edition.

What data you get

FieldDescription
title, pageId, url, languageArticle title, page ID, link and language edition
descriptionShort description (from Wikidata)
summaryLead section as plain text
text, wordCountFull article as plain text and its word count (when "Include full article text" is on)
lengthBytesSize of the article source
lastEditedAtTime of the latest edit
categoriesVisible categories (hidden maintenance categories are left out)
isDisambiguationTrue for disambiguation pages
wikidataIdWikidata item, for example Q2539
imageUrlMain article image
pageviews30dHuman page views over the last 30 days (when enabled)
requestedAs, query, scrapedAtThe title you asked for if it redirected, the matching query and the scrape time

How to use it

  1. Add Search queries, or a list of Article titles or URLs, or both.
  2. Pick the Wikipedia language (default en).
  3. Set Max articles per query, and choose whether to include full text and page views.
  4. Click Start and export from the Output tab.

Example input

{
"searchQueries": ["renewable energy", "battery storage"],
"articles": ["https://en.wikipedia.org/wiki/Alan_Turing", "Grace Hopper"],
"language": "en",
"maxArticlesPerQuery": 100,
"includeFullText": true,
"includePageviews": true
}

Example output

One record from a real run (full text shortened):

{
"title": "Machine learning",
"pageId": 233488,
"language": "en",
"url": "https://en.wikipedia.org/wiki/Machine_learning",
"description": "Subset of artificial intelligence",
"summary": "Machine learning (ML) is a field of study in artificial intelligence concerned with the development and study of statistical algorithms that can learn from data and generalize to unseen data, and thus perform tasks without being explicitly programmed.\nStatistics and mathematical optimisation method...",
"text": "Machine learning (ML) is a field of study in artificial intelligence concerned with the development and study of statistical algorithms that can learn from data and generalize to unseen data, and thus perform tasks without being explicitly programmed.\nStatistics and mathematical optimisation method...",
"wordCount": 8573,
"lengthBytes": 147085,
"lastEditedAt": "2026-11-07T20:01:34Z",
"categories": [
"Cybernetics",
"Data science",
"Definition",
"Learning",
"Machine learning"
],
"isDisambiguation": false,
"wikidataId": "Q2539",
"imageUrl": null,
"pageviews30d": null,
"requestedAs": null,
"query": "machine learning",
"scrapedAt": "2026-11-16T15:25:50.282Z"
}

Pricing

Pay per event: $1.00 per 1,000 articles saved, plus a tiny standard start fee and Apify platform usage (usually a fraction of a cent per run). An article found by several queries is saved and charged once. Set Max cost per run to cap spending.

Tips and limits

  • Wikipedia search returns up to 10,000 results per query; results are ordered by relevance.
  • Turning off full text makes runs several times faster when you only need summaries and metadata.
  • Very long articles are cut at Max text length (100,000 characters by default; set 0 for no limit). wordCount always counts the whole article.
  • Article URLs must match the chosen language edition. Run the Actor once per language.
  • Page views count human traffic only (bots and spiders excluded) for the last 30 complete days.
  • A RUN_SUMMARY record shows matches and saved articles per query, and any titles that were not found.

FAQ

Is the text clean? Yes. It is the plain-text rendering from the TextExtracts API: no wiki markup, references or HTML. Section headings appear as plain lines.

Do redirects work? Yes. "Barack obama" returns the article "Barack Obama", with requestedAs showing what you typed.

Can I get infobox data or tables? Not in this version. It focuses on text, categories and metadata.

Wikipedia text is available under the Creative Commons Attribution-ShareAlike license. If you republish it, give attribution and follow the license terms. This Actor uses the official Wikimedia APIs with a descriptive User-Agent, as Wikimedia asks.