Wikipedia Articles Scraper avatar

Wikipedia Articles Scraper

Pricing

from $1.19 / 1,000 results

Go to Apify Store
Wikipedia Articles Scraper

Wikipedia Articles Scraper

Wikipedia Articles Scraper extracts Wikipedia articles by search, title, URL or category in any language: summary, full text, sections, infobox, tables, categories, images, links, references, Wikidata id, size, last edit and RAG-ready text chunks.

Pricing

from $1.19 / 1,000 results

Rating

0.0

(0)

Developer

Neuro Scraper

Neuro Scraper

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 hours ago

Last modified

Features

Limited permissions

Share

Wikipedia Articles Scraper

Wikipedia Articles Scraper exports Wikipedia articles by search query, title, URL or category in any language: title, description, summary, full text, sections, infobox, tables, categories, images, links, references, Wikidata id, page id, size, word count, last edit and text chunks ready for RAG.

Also try: Facebook Reels Scraper - export Facebook Reels with views, likes, comments, captions and video links from any page or profile.

The Wikipedia Articles Scraper reads Wikipedia articles completely - not just the summary - and returns one clean row per article with the text split into sections, the infobox as key / value pairs, the data tables, categories, links and references.

Use the Wikipedia Articles Scraper to build knowledge bases and RAG datasets, enrich companies, people and places with their infobox facts, monitor edits or research a topic across languages. No login and no API key are needed.

What can Wikipedia Articles Scraper do?

  • Build RAG / LLM datasets with ready-made text chunks.
  • Extract infobox facts (founded, headquarters, population, birth date...) of many entities.
  • Export Wikipedia tables to CSV / Excel.
  • Collect every article of a category or a search topic.
  • Track the last edit and size of articles.

Why use Wikipedia Articles Scraper?

  • Wikipedia Articles Scraper needs no login, no cookies and no browser extension - you give it the input and it returns clean rows.
  • Wikipedia Articles Scraper follows the list page by page until it reaches your limit or the end of the list.
  • Wikipedia Articles Scraper gives every row the same columns in the same order, so CSV, Excel and JSON exports line up.
  • Wikipedia Articles Scraper runs on the Apify platform: schedule it, call it from the API, connect it to Make, Zapier, n8n or Google Sheets.
  • Wikipedia Articles Scraper charges only for the rows it saves, so a small test run costs a few cents.

How to use Wikipedia Articles Scraper

  1. Open Wikipedia Articles Scraper on Apify and click Try for free (or Start).
  2. Fill in the input: search queries, article titles, article URLs or categories, and the language.
  3. Optional: set the filters and options described below - each one is explained with an example.
  4. Click Start. Wikipedia Articles Scraper logs every page it reads, so you can watch the progress in the log.
  5. When the run finishes, open the Output tab and download the rows as JSON, CSV, Excel, XML or HTML - or read them through the API.

Input options of Wikipedia Articles Scraper

Every option of Wikipedia Articles Scraper is listed here: what it does, how it works, the allowed values and default, an example and a tip.

Search queries (searchQueries)

searchQueries - is a list of keywords searched on Wikipedia in the chosen language. Every query is paged with the search's own next-page offset until maxResultsPerSearch articles; each article row keeps searchQuery and searchRank. Example: web scraping, quantum computing. Default: ["web scraping"]. In Wikipedia Articles Scraper this option has the type array.

Article titles (articleTitles)

articleTitles - is a list of exact article titles, e.g. Albert Einstein or Python (programming language). Redirects are followed, so NYC gives New York City. Uses the language option. Default: []. In Wikipedia Articles Scraper this option has the type array.

Article URLs (articleUrls)

articleUrls - is a list of Wikipedia article links in any language, e.g. https://en.wikipedia.org/wiki/Web_scraping or https://de.wikipedia.org/wiki/Berlin. The language of each link wins over the language option. Default: []. In Wikipedia Articles Scraper this option has the type array.

Categories (categories)

categories - is a list of category names (with or without Category:), e.g. Web scraping. The category's articles are listed with its own next-page cursor and read like search hits. Default: []. In Wikipedia Articles Scraper this option has the type array.

Language (language)

language - is the Wikipedia language code for searches, titles and categories: en (default), de, fr, es, it, pt, ja, zh, ru, ar and every other Wikipedia. Example: de for the German Wikipedia. Default: "en". In Wikipedia Articles Scraper this option has the type string.

Articles per query / category (maxResultsPerSearch)

maxResultsPerSearch - is the number of articles per search query and per category (default 10, up to 10,000). Two queries x 20 = 40 articles. Allowed values: whole numbers from 1 to 10000. Default: 10. In Wikipedia Articles Scraper this option has the type integer.

Max articles in total (maxItems)

maxItems - stops the whole run after this many article rows (default 1000) - a cost cap across all inputs. Allowed values: whole numbers from 1 to 100000. Default: 1000. In Wikipedia Articles Scraper this option has the type integer.

Full article text (includeFullContent)

includeFullContent - adds the complete article text as fullContent / content / extract_full (default on). Switch it off for small rows with only the summary. Allowed values: true or false. Default: true. In Wikipedia Articles Scraper this option has the type boolean.

Main text (extractMainText)

extractMainText - adds mainText, the article body as plain text without markup (default on). Allowed values: true or false. Default: true. In Wikipedia Articles Scraper this option has the type boolean.

Sections (extractSectionHeadings)

extractSectionHeadings - adds sectionHeadings (the headings in order) and sections (title, level, text, word count) - default on. Allowed values: true or false. Default: true. In Wikipedia Articles Scraper this option has the type boolean.

Max section depth (maxSectionDepth)

maxSectionDepth - keeps headings up to this level: 2 = only the top sections, 3 = with sub-sections, 6 = all (default). Allowed values: whole numbers from 1 to 6. Default: 6. In Wikipedia Articles Scraper this option has the type integer.

Max section text length (maxSectionTextLength)

maxSectionTextLength - cuts every section text to this many characters (default 0 = no cut) - handy for previews. Allowed values: whole numbers from 0 to 1000000. Default: 0. In Wikipedia Articles Scraper this option has the type integer.

Infobox (extractInfobox)

extractInfobox - adds the infobox (the fact box on the right) as label -> value pairs: infobox and structured_key_data (default on). Allowed values: true or false. Default: true. In Wikipedia Articles Scraper this option has the type boolean.

Max infobox fields (maxInfoboxFields)

maxInfoboxFields - keeps only the first N infobox fields (default 0 = all). Allowed values: whole numbers from 0 to 1000. Default: 0. In Wikipedia Articles Scraper this option has the type integer.

Tables (extractTables)

extractTables - adds the article's data tables (wikitable): caption, headers and rows as objects keyed by the header (default on). Allowed values: true or false. Default: true. In Wikipedia Articles Scraper this option has the type boolean.

Max tables (maxTables)

maxTables - keeps the first N tables of an article (default 10). Allowed values: whole numbers from 0 to 200. Default: 10. In Wikipedia Articles Scraper this option has the type integer.

Wikitext (extractWikitext)

extractWikitext - adds the raw wikitext (the article's source markup) - default off because it is large. Allowed values: true or false. Default: false. In Wikipedia Articles Scraper this option has the type boolean.

includeLinks - adds links (other Wikipedia articles linked from the text) and references (external source links) with their counts - default on. Allowed values: true or false. Default: true. In Wikipedia Articles Scraper this option has the type boolean.

Images (includeImages)

includeImages - adds the image URLs of the article and imageCount - default on. Allowed values: true or false. Default: true. In Wikipedia Articles Scraper this option has the type boolean.

Text chunk size (RAG) (chunkSize)

chunkSize - splits the text into chunks of about N characters, never across sections, for RAG and embeddings (default 1000; 0 = off). Allowed values: whole numbers from 0 to 20000. Default: 1000. In Wikipedia Articles Scraper this option has the type integer.

Read every article once (enableCaching)

enableCaching - reads an article once even when several queries find it; matchedSearchQueries lists them all (default on). Allowed values: true or false. Default: true. In Wikipedia Articles Scraper this option has the type boolean.

Max concurrency (maxConcurrency)

maxConcurrency - is how many articles are read at the same time (default 8, up to 30). 20 articles take about 2 seconds. Allowed values: whole numbers from 1 to 30. Default: 8. In Wikipedia Articles Scraper this option has the type integer.

Request timeout (s) (requestTimeoutSeconds)

requestTimeoutSeconds - is the timeout of one request in seconds (default 30). Allowed values: whole numbers from 5 to 120. Default: 30. In Wikipedia Articles Scraper this option has the type integer.

Max retries (maxRetries)

maxRetries - is the number of tries per request before an article is saved as an error row (default 3). Allowed values: whole numbers from 1 to 10. Default: 3. In Wikipedia Articles Scraper this option has the type integer.

Contact for the User-Agent (optional) (userAgentContact)

userAgentContact - is an optional e-mail or URL added to the User-Agent, as Wikimedia's User-Agent policy asks of heavy users. Example: me@example.com. Default: empty (not used). In Wikipedia Articles Scraper this option has the type string.

Log level (logLevel)

logLevel - sets the log detail: DEBUG, INFO (default), WARNING or ERROR. Allowed values: DEBUG, INFO, WARNING, ERROR. Default: "INFO". In Wikipedia Articles Scraper this option has the type string.

Proxy configuration (proxyConfiguration)

proxyConfiguration - is off by default because Wikipedia answers without a proxy; switch on the Apify proxy only if your network is refused. Default: {"useApifyProxy": false}. In Wikipedia Articles Scraper this option has the type object.

Ready-to-copy input examples for Wikipedia Articles Scraper

Search 20 articles

{
"searchQueries": [
"web scraping"
],
"maxResultsPerSearch": 20
}

Infobox facts of given articles

{
"articleTitles": [
"Apple Inc.",
"Microsoft",
"Nvidia"
],
"includeFullContent": false,
"extractTables": false
}

German category with RAG chunks

{
"categories": [
"Programmiersprache"
],
"language": "de",
"maxResultsPerSearch": 50,
"chunkSize": 800
}

Article URLs with wikitext

{
"articleUrls": [
"https://en.wikipedia.org/wiki/Web_scraping"
],
"extractWikitext": true
}

Output of Wikipedia Articles Scraper

Wikipedia Articles Scraper saves one row per article. Every row has the columns below, in the same order. A column is empty (null) when the article does not show that value - the table says when that happens.

FieldWhat it contains
titleArticle title.
pageTitleArticle title.
displayTitleTitle as displayed (formatting removed).
urlDesktop link of the article.
mobileUrlMobile link.
pageIdWikipedia page id.
revIdId of the current revision.
languageLanguage code of the wiki.
typestandard or disambiguation.
descriptionShort description of the article.
extractLead section as plain text.
summaryLead section as plain text.
extract_summaryLead section as plain text.
extractHtmlLead section as HTML.
thumbnailPage image (thumbnail).
originalImagePage image in full size.
wikidataIdWikidata id (Q...).
qidWikidata id (Q...).
categoriesVisible categories.
hiddenCategoriesMaintenance (hidden) categories.
infoboxInfobox as {label: value}.
structured_key_dataInfobox as {label: value}.
structured_key_data_extractedtrue when an infobox was found.
tablesTables: caption, headers, rows (objects keyed by header), rowCount.
sectionHeadingsHeadings in order.
sectionsSections: title, level, text, wordCount.
mainTextArticle body as plain text.
fullContentComplete article text.
contentComplete article text.
extract_fullComplete article text.
wikitextRaw wikitext source (extractWikitext).
chunksText chunks of about chunkSize characters: index, section, text, characters (for RAG / embeddings).
wordCountWords of the article text.
sizeArticle size in bytes (wikitext).
textStatswords, characters, paragraphs, sections, readingTimeMinutes.
imagesImage URLs used in the article.
imageCountNumber of images.
linksLinks to other articles.
linkCountNumber of article links.
referencesExternal reference / source links.
referenceCountNumber of external links.
lastEditedTime of the last edit (UTC).
lastModifiedTime of the last edit (UTC).
searchQueryQuery or category that found the article.
searchRankPosition in the search results / category.
requestedTitleTitle as you gave it (or as found).
matchedSearchQueriesEvery query that found the article.
requestedTitlesThe requested title and the title it resolved to (redirects).
metadatapageId, revId, language, wikidataId, lastModified, size, namespace.
extraction_metadataextractedAt, requests, durationMs, parsedHtml, plainText.
errorError text when the article could not be read.
error_typeError code (e.g. missingtitle).
scrapedAtTime of scraping (UTC).
crawledAtTime of scraping (UTC).

Which columns of Wikipedia Articles Scraper can be empty

Wikipedia Articles Scraper fills every column the website publishes. These columns were measured as empty on some rows in our test runs, because the website itself does not publish that value for those article rows:

  • tables - measured 2026-11-22: 16 of 21 test articles have no data table (wikitable) - the list is then empty.
  • infobox - measured: 11 of 21 test articles have no infobox (concept articles such as "Search engine scraping"); filled for people, places, companies, software...
  • structured_key_data - same as infobox.
  • thumbnail - Wikipedia sets no page image for many articles (16 of 21 tech articles in the test).
  • originalImage - same as thumbnail.
  • description - some articles have no short description (3 of 21).
  • images - articles without any image.
  • hiddenCategories - articles without maintenance categories.
  • searchQuery - empty for articles given by title or URL.
  • searchRank - empty for articles given by title or URL.
  • matchedSearchQueries - empty for articles given by title or URL.
  • references - articles without external links.
  • error - empty when the article was read - the good case.
  • error_type - empty when the article was read.
  • wikitext - empty unless extractWikitext is on.

Limits of Wikipedia Articles Scraper

  • Search results stop where Wikipedia's search stops (offset 10,000).
  • Only articles (namespace 0) are read from categories.

How much does Wikipedia Articles Scraper cost?

Wikipedia Articles Scraper uses pay-per-event pricing: you pay a small amount per saved row (the result event) plus the Apify platform usage. The price is $1.49 per 1,000 results on the free plan and goes down to $1.19 per 1,000 results on higher plans.

Worked example: 20 article rows cost about 20 / 1,000 x $1.49 = $0.03 in result events; 1,000 rows cost about $1.49; 10,000 rows cost about $14.90 (less on a higher plan). With the Apify free plan ($5 of monthly credit) you can test Wikipedia Articles Scraper many times before paying anything.

Use Wikipedia Articles Scraper through the API

You can start Wikipedia Articles Scraper from your own code with the Apify API or the Apify client. Python example:

from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('neuro-scraper/wikipedia-articles-scraper').call(run_input={"searchQueries": ["web scraping"], "maxResultsPerSearch": 20})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item)

JavaScript example:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('neuro-scraper/wikipedia-articles-scraper').call({"searchQueries": ["web scraping"], "maxResultsPerSearch": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

The rows of Wikipedia Articles Scraper are also available as a direct download link (JSON, CSV, Excel) from the run's dataset, and Wikipedia Articles Scraper can send a webhook when a run finishes.

Integrations of Wikipedia Articles Scraper

Connect Wikipedia Articles Scraper to Google Sheets, Slack, Airtable, Make, Zapier, n8n, LangChain or your own webhook. Schedule Wikipedia Articles Scraper daily or weekly in the Apify Console to keep a fresh copy of the data, and compare runs to spot new and changed article rows.

FAQ about Wikipedia Articles Scraper

Does the Wikipedia Articles Scraper work for every language?

Yes - set language (searches, titles, categories) or give article links of any Wikipedia.

How fast is the Wikipedia Articles Scraper?

About 0.1-0.3 seconds per article with the default 8 parallel articles; the measured 20-article test finished in about 5 seconds of scraping.

Can I get only the summary?

Switch off includeFullContent, extractMainText, extractSectionHeadings, extractTables and includeLinks.

Wikipedia Articles Scraper collects only data that is shown publicly without logging in. It never collects email addresses or phone numbers. You are responsible for how you use the data - check the website's terms and the data-protection laws (GDPR, CCPA) that apply to you, and ask a lawyer if you are unsure.

What if Wikipedia Articles Scraper returns fewer rows than I asked for?

Wikipedia Articles Scraper stops when the list ends or when the website shows no more article rows for your input. The final status message of the run says which targets stopped early and why. Try a broader input or more inputs to get more rows.

Can I request a feature for Wikipedia Articles Scraper?

Yes - open an issue on the Wikipedia Articles Scraper page in the Apify Store and describe the field or filter you need.

ActorWhat it extracts
facebook-reels-scraperFacebook Reels with views, likes and comments

Wikipedia Articles Scraper is maintained and updated when the website changes. If Wikipedia Articles Scraper helps you, a review in the Apify Store helps others find it.