Wikipedia Scraper avatar

Wikipedia Scraper

Pricing

from $2.50 / 1,000 results

Go to Apify Store
Wikipedia Scraper

Wikipedia Scraper

Scrape Wikipedia articles in any language by search term, category or link: full plain text split into sections, lead summary, short description, categories, coordinates, images, Wikidata ID, word count, last edit and optional 30-day pageviews. Clean JSON, no API key, no proxy.

Pricing

from $2.50 / 1,000 results

Rating

0.0

(0)

Developer

Anyx Solutions

Anyx Solutions

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

banner

Wikipedia Scraper

Wikipedia articles in any language — by search, category or link — as clean text with sections, metadata and pageviews.

Wikipedia is the largest reference work ever written: more than 60 million articles across over 300 language editions, each with a short description, categories, a Wikidata ID and, for places, coordinates. This Actor turns it into a dataset: paste article, category or search links from any language edition, or type your own search terms, and get every matching article with its full plain text split into sections with their headings, the lead summary, short description, categories, lead image, coordinates, Wikidata ID, word count, last edit date and revision, how many other languages cover it, and optionally how many people read it over the last 30 days. Formulas come out as inline LaTeX, not pages of stray symbols. There is no login, no API key, and no proxy to configure. Built for RAG and LLM knowledge bases, training and evaluation corpora, entity enrichment, content and SEO research, and trend tracking.

⚡ Quick start

{
"startUrls": [
{
"url": "https://en.wikipedia.org/w/index.php?search=quantum+computing&title=Special%3ASearch&fulltext=1&ns0=1"
}
],
"maxItems": 5
}

Or every article in a category, with 30 days of pageviews:

{
"startUrls": [
{
"url": "https://en.wikipedia.org/wiki/Category:Machine_learning_algorithms"
}
],
"includePageviews": true,
"maxItems": 100
}

Or search terms in another language:

{
"searchTerms": ["Energiewende", "Ada Lovelace"],
"language": "de",
"maxItems": 20
}

🧩 Input

FieldTypeRequiredDefaultDescription
startUrlsarrayno—Wikipedia URLs in any language: articles (en.wikipedia.org/wiki/<Title>, mobile en.m.wikipedia.org links too), categories (/wiki/Category:<Name>, returns its articles) or search results pages (/w/index.php?search=…).
searchTermsarrayno—Search terms, one search per line. Each returns the best-matching articles in language.
languagestringno"en"Wikipedia language edition for the search terms, as its code: en, de, fr, es, ja, zh, … Start URLs keep their own language.
maxItemsintegerno—Maximum number of articles per start URL or search term. The input form starts at 5; leave it empty to get every match (Wikipedia caps one search at 10,000 articles).
includeContentbooleannotrueReturn the whole article as plain text and as sections. Turn it off to keep only the summary and metadata.
includePageviewsbooleannofalseAdd views by people over the last 30 days, in total and per day.
proxyConfigurationobjectno{ "useApifyProxy": false }Proxy settings. Wikipedia needs no proxy.

Add at least one start URL or one search term. A category returns the articles filed directly in it; sub-categories are not followed, so add them as their own start URLs when you want them. Search results come in Wikipedia's relevance order.

📤 Output

Each article is one dataset row.

Fields

FieldTypeDescription
pageIdnumberWikipedia page ID, unique within one language edition.
titlestringArticle title. Redirects are followed, so this is the article's current title.
urlstringLink to the article.
languagestringLanguage edition, such as en or de.
descriptionstringThe short description shown under the title in search and apps, such as "Tower in Paris, France".
summarystringThe lead section: the article's introduction, as plain text.
contentTextstringThe whole article as plain text, each section's heading on its own line; null when includeContent is off.
sectionsarrayThe article's sections in order, each with heading, level (2 for a main section, 3 for a subsection, …) and text.
wordCountnumberWords in the article text.
lastModifiedstringWhen the article was last edited (ISO 8601).
revisionIdnumberID of the latest revision, for citing or diffing an exact version.
categoriesarrayThe article's visible categories, without the Category: prefix. Maintenance categories are left out.
thumbnailUrlstringThe article's lead image, about 640 pixels wide.
imageUrlstringThe lead image at full size.
coordinatesobjectlat and lon of the article's subject, for places and buildings; null otherwise.
wikidataIdstringThe Wikidata item, such as Q243, which links the article to its versions in every language and to structured data.
languagesCountnumberHow many other Wikipedia language editions have an article on the subject.
pageviews30dnumberViews by people (not bots) over the last 30 days; null unless includePageviews is on.
pageviewsDailyarrayThe same views per day, each with date and views; null unless includePageviews is on.
searchQuerystringThe search term that found the article; null for articles from a link or a category.

💡 Use cases

  • RAG and LLM knowledge bases — clean, sectioned article text ready to chunk by heading and embed.
  • Training and evaluation corpora — pull a whole topic or category in any language, with revision IDs for reproducibility.
  • Entity enrichment — add descriptions, categories, coordinates, images and Wikidata IDs to lists of companies, people or places.
  • Content and SEO research — see what Wikipedia covers on a topic, how long the articles are and when they were last edited.
  • Trend and attention tracking — compare 30-day pageviews across articles to see what people are reading.

❓ FAQ

  • Do I need an API key or a Wikipedia account? No. The Actor reads Wikipedia's public articles.
  • Do I need a proxy? No. It runs without one by default.
  • Which languages work? Every Wikipedia language edition. Paste a link from that edition, or set language to its code (the part before .wikipedia.org, such as pt or zh-yue).
  • Does a category include its sub-categories? No, only the articles filed directly in it. Add a sub-category as its own start URL to include it.
  • Why are tables, infoboxes and reference numbers missing from the text? The text is the article's prose, as a reader would quote it. Infoboxes and tables are left out; the structured facts they hold are on the article's Wikidata item, linked by wikidataId.
  • How are formulas returned? As inline LaTeX, for example F_{T}(x)=\sum _{t=1}^{T}f_{t}(x).
  • Why are coordinates, thumbnailUrl or description empty? Not every article has them: only places carry coordinates, some articles have no image, and smaller language editions have fewer short descriptions.
  • Why does pageviewsDaily have 29 days instead of 30? Wikipedia publishes each day's views a few hours after midnight UTC; a run early in the day gets the 29 days published so far.
  • Is wordCount right for Chinese or Japanese? Yes. It uses each language's word boundaries, so text written without spaces is counted by words, not by lines.
  • Can I reuse the article text? Yes, under its licence. Wikipedia's text is licensed under CC BY-SA 4.0: attribute Wikipedia and the article (every row carries the article's url for the link), and share anything you build from the text under the same ShareAlike licence. Images, including thumbnailUrl, have their own licences, shown on each file's page. See Reusing Wikipedia content.

🔗 More scrapers by Anyx

🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

🖼 Image credit

Image credit: wikipedia.org