Wikipedia Scraper — Search, Articles & Categories avatar

Wikipedia Scraper — Search, Articles & Categories

Pricing

from $1.00 / 1,000 articles

Go to Apify Store
Wikipedia Scraper — Search, Articles & Categories

Wikipedia Scraper — Search, Articles & Categories

Export Wikipedia article introductions and metadata from keyword searches, title lists or categories. Includes revision details, Wikidata IDs and source attribution in 20 languages.

Pricing

from $1.00 / 1,000 articles

Rating

0.0

(0)

Developer

Felix GoldWin

Felix GoldWin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Categories

Features

Limited permissions

Share

What does Wikipedia Articles Scraper do?

Search Wikipedia and export article introductions, page metadata and source attribution through Apify. Choose keyword search, a list of exact article titles, or the direct article members of a category. The Actor uses Wikimedia's public MediaWiki Action API and supports 20 Wikipedia language editions without an account or API key.

Each saved row represents one unique article. It includes the article title, URL, introduction, page and revision IDs, Wikidata ID when available, disambiguation status and license information. This is an introduction and metadata export: full article bodies, tables, images, references, pageviews and recursive category traversal are outside its scope.

Why use this Wikipedia scraper?

  • Build a source-linked topic or article directory from search results.
  • Collect short introductions for research and content discovery workflows.
  • Enrich known page titles with stable page IDs and Wikidata identifiers.
  • Export the direct articles in a Wikipedia category without visiting each page.
  • Repeat the same collection with Apify schedules, call it through the API, or connect it to downstream tools.

The Actor preserves source links, contributor-history links, provider information and a license notice on every row. It does not download media assets or collect editor profiles, email addresses or account information.

How to scrape Wikipedia articles

  1. Select Keyword search, Exact page titles, or Category article members.
  2. Choose a language edition and fill the matching target field. Clear any nonempty target field belonging to another mode.
  3. Set a result cap, a request cap and the maximum saved introduction length.
  4. Start the Actor and review its coverage summary.
  5. Download the dataset in JSON, HTML, CSV or Excel, or use the API tab for programmatic access.

Keyword-search example:

{
"mode": "search",
"language": "en",
"queries": ["artificial intelligence", "machine learning"],
"includeDisambiguation": false,
"introMaxChars": 12000,
"maxItems": 1000,
"maxRequests": 100
}

Exact-page example:

{
"mode": "pages",
"language": "en",
"titles": ["Software", "Free software"],
"maxItems": 100
}

Category example:

{
"mode": "category",
"language": "en",
"categories": ["Machine learning"],
"maxItems": 500
}

Input options

See the Input tab for the complete form.

InputDefaultBehavior
modesearchsearch, pages or category.
languageenOne of 20 supported Wikipedia editions.
queriesartificial intelligence when omitted in search modeUp to 20 search queries, each at most 300 characters. Wikipedia search operators are preserved.
titlesNonePages mode only: up to 100 exact page titles, each at most 255 characters.
categoriesNoneCategory mode only: up to 20 category names, each at most 255 characters. The canonical Category: prefix is added when absent.
includeDisambiguationfalseWhether to include pages Wikipedia marks as disambiguation pages.
introMaxChars12000Saved introduction length cap, from 500 to 50,000 characters. Longer introductions set introTruncated: true.
maxItems1000Global saved-article cap, from 1 to 10,000.
maxRequests100Global Wikimedia HTTP request cap, from 1 to 200, including retries and redirects.

Supported editions are English, German, French, Spanish, Italian, Portuguese, Russian, Ukrainian, Polish, Dutch, Swedish, Japanese, Chinese, Korean, Arabic, Hindi, Turkish, Indonesian, Czech and Hebrew (en, de, fr, es, it, pt, ru, uk, pl, nl, sv, ja, zh, ko, ar, hi, tr, id, cs, he).

Use names in the selected language edition. The Actor does not translate queries, titles or category names. For categories, supply the category's name with no namespace prefix, or use the canonical English Category: prefix accepted by MediaWiki. URLs are not accepted. Underscores in titles and categories become spaces. Duplicate inputs are removed, while source results are deduplicated by language and page ID.

Explicit empty target lists are rejected. The default query is used only when queries is omitted in Search mode; Pages and Category modes always require their own targets. Nonempty target lists for a different mode are rejected to avoid silently ignoring them.

What data does the Actor return?

FieldDescription
typeAlways article.
pageId, title, language, urlArticle identity and source URL.
introductionPlain-text introduction supplied by the API, or null when unavailable.
introTruncatedWhether this Actor shortened the available introduction to your requested character cap.
wikidataIdLinked Wikidata item identifier, such as Q7397, or null.
revisionId, lastModifiedLatest revision ID and revision timestamp when returned by the API.
isDisambiguationWhether Wikipedia marks the page as a disambiguation page.
source, providerWikipedia and Wikimedia Foundation.
license, licenseUrlText-content license notice and license URL.
attribution, historyUrlSource/contributor attribution and a page-history link.
scrapedAtTime the record was processed.

Simplified metadata examples from Wikipedia are shown below. The actual dataset also includes introductions and the other fields above.

[
{
"type": "article",
"pageId": 5309,
"title": "Software",
"language": "en",
"url": "https://en.wikipedia.org/wiki/Software",
"wikidataId": "Q7397",
"source": "Wikipedia",
"provider": "Wikimedia Foundation",
"license": "CC BY-SA 4.0"
},
{
"type": "article",
"pageId": 10635,
"title": "Free software",
"language": "en",
"url": "https://en.wikipedia.org/wiki/Free_software",
"wikidataId": "Q341",
"source": "Wikipedia",
"provider": "Wikimedia Foundation",
"license": "CC BY-SA 4.0"
}
]

An article may have an empty or unavailable introduction while still containing valid metadata. Such a saved article counts as one result. introTruncated describes this Actor's character limit; it does not mean the introduction is the full article.

Pricing

$1 per 1,000 saved articles, plus $0.005 per run start. Platform usage is included. For example, 1,000 saved articles cost $1.005; 100 saved articles cost $0.105.

Only articles saved to the dataset count as results. Duplicate pages, excluded disambiguation pages, missing titles, errors and run summaries are not billed as results. A run with no saved articles still incurs the start fee. Use maxItems and Apify's maximum charge per run to control spending; allow at least $0.006 for one article plus the start fee.

Coverage, pagination and limits

Search and category collection follow the API's continuation responses. There is no fixed 500-article ceiling, but maxItems is a maximum rather than a guarantee. The available source results, your targets, excluded pages, request cap and spending cap determine the final count.

The Actor fetches small batches of articles, and introduction enrichment may require additional continuation calls. A high result cap with a low request cap can therefore produce a partial export. Search results also remain subject to Wikipedia's own search limits. The Actor does not divide queries to bypass source limits.

Category mode includes only direct article members in the main article namespace. It does not follow subcategories or export category pages, files, talk pages or user pages. A missing or empty category can produce no articles. In Pages mode, Wikipedia redirects are resolved where the API supports them; missing, unavailable or non-article titles are reported or skipped rather than becoming result rows.

Targets are processed in input order, so an early search or category can fill the global result allowance. Results are not globally ranked across targets. New scheduled runs collect fresh snapshots; there is no cross-run “new articles only” database. A resumed run checks its existing dataset to avoid adding the same article again.

Requests identify this Actor to Wikimedia, run serially and use a conservative delay and maxlag. Access denials, rate limits or server-lag errors stop collection without proxy rotation or access bypass. Temporary network and server failures have bounded retries. Public API availability and content can change.

Run summary and troubleshooting

Open Coverage, limits and errors in the run output to inspect the SUMMARY key-value-store record. It includes saved rows, source requests, restored rows, input duplicates, warnings, partial status and per-target coverage. Per-target details include pages fetched, saved articles, duplicates, filtered or malformed records, missing titles, a stop reason and any error.

A run can save useful articles while still being partial. Missing titles, malformed source records, incomplete continuation handling or request limits are surfaced in the summary. Valid searches with no matching articles can succeed with an empty dataset. If every source request fails without a usable target, the run fails. Review the summary before treating an export as complete.

Why are there fewer results than requested?

Your target may have fewer articles, some may be disambiguation pages or duplicates, a category may contain mostly subcategories, or a source/request/spending limit may have stopped collection. Check SUMMARY, increase a suitable budget, or narrow your targets.

Does it return full article text or pageviews?

No. This Actor exports introductions and article metadata. It does not promise full-text coverage, image rights, tables, references or pageview statistics.

Can I use and republish the introductions?

Wikipedia text is generally available under Creative Commons Attribution-ShareAlike 4.0, subject to the applicable page's terms and any additional attribution notices. Preserve the article URL, contributor attribution and license information when reusing it, and follow the applicable share-alike requirements for adaptations. The output records preserve these source references and indicate when an introduction was shortened. See the Wikimedia Terms of Use, licensing section and CC BY-SA 4.0.

Support and sources

Report reproducible problems through the Actor's Issues tab, with the input and run link. The API tab provides integration examples. Do not include credentials in issue reports.

This independent tool is not affiliated with or endorsed by Wikipedia or the Wikimedia Foundation. Source content may contain errors and changes over time. The Actor reads public article content and metadata; it does not access private accounts or editor contact information. Technical references: MediaWiki Action API, search API, and API etiquette.