Wikipedia Article Extractor: Markdown, Infobox JSON avatar

Wikipedia Article Extractor: Markdown, Infobox JSON

Pricing

from $0.70 / 1,000 article extracteds

Go to Apify Store
Wikipedia Article Extractor: Markdown, Infobox JSON

Wikipedia Article Extractor: Markdown, Infobox JSON

Wikipedia articles in any of 300+ languages by title, URL or search: clean Markdown or text, sections, infobox as JSON, categories, references, links to other languages and CC BY-SA attribution. Official Wikimedia APIs.

Pricing

from $0.70 / 1,000 article extracteds

Rating

0.0

(0)

Developer

Itay Ozer

Itay Ozer

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

22 days ago

Last modified

Features

Limited permissions

Share

Give it Wikipedia article titles, URLs or a search query, in any of the 300+ language editions, and get each article back as clean Markdown or plain text, split into sections, with the infobox as JSON, categories, footnotes, links to the same article in other languages, and a ready-made CC BY-SA attribution line. Built for AI agents, RAG pipelines, translators and researchers who work beyond English.

Everything comes from the official Wikimedia APIs (the Action API for metadata and search, the REST API for the article HTML), called the way Wikimedia's API rules ask: an identifying User-Agent, gzip, a few requests at a time, and a pause whenever Wikipedia says to slow down. No browser, no proxies, no blocked pages.

What you get

For every article:

  • title, url, language, pageId, revisionId, lastEdited, and redirectedFrom when you used an old or alternate title
  • description (the short description), wikidataId (Q number), isDisambiguation, imageUrl (main image)
  • summary: the lead section as plain text
  • content: the whole article as Markdown (headings, lists, bold, tables) or plain text, without citation marks, navigation boxes, images or edit links
  • wordCount: counted per word even for Chinese, Japanese and Thai
  • sections: one entry per heading with level (0 = lead), title, anchor and content, ready for chunking
  • infobox: the fact box as { "label": "value" }; sub-rows carry their group, for example "Population (2024): Metro"
  • categories: visible categories, in the article's language
  • languageLinks: the same article in every other language edition (language, title, url)
  • references (optional): each footnote's text and its first source URL
  • attribution: license, license URL, link to the contributor history and a one-line credit you can paste under the text

Input

FieldDefaultNotes
articlesTitles in the chosen language, or Wikipedia URLs in any language (desktop, mobile, ?title= and zh-hans style links)
languageenEdition code for plain titles and the search: de, fr, ja, zh, he, ar, pt, ko...
searchQueryOptional full-text search in that edition; its top results are extracted too
searchLimit101 to 500 search results
outputFormatmarkdownmarkdown or text
includeSectionstrueSection list with text
includeInfoboxtrueInfobox as JSON
includeLanguageLinkstrueOther language versions
includeReferencesfalseFootnotes with source URLs
keepLinksfalseKeep [text](url) links in Markdown (off = shorter text for LLMs)
maxArticles1001 to 2000 per run. You pay only for articles returned
{
"articles": ["Ada Lovelace", "https://ja.wikipedia.org/wiki/東京", "https://he.wikipedia.org/wiki/תל_אביב-יפו"],
"language": "en",
"outputFormat": "markdown",
"includeReferences": false
}

Output example

Shortened:

{
"status": "ok",
"input": "Tel Aviv",
"language": "en",
"title": "Tel Aviv",
"pageId": 31453,
"url": "https://en.wikipedia.org/wiki/Tel_Aviv",
"description": "City in Central Israel",
"wikidataId": "Q33935",
"isDisambiguation": false,
"summary": "Tel Aviv, officially Tel Aviv-Yafo, and also known as Tel Aviv-Jaffa, is the most populous city in the Gush Dan metropolitan area of Israel...",
"content": "# Tel Aviv\n\n**Tel Aviv**, officially **Tel Aviv-Yafo**...\n\n## Etymology and origins\n\n...",
"format": "markdown",
"wordCount": 12386,
"sections": [
{ "level": 0, "title": null, "anchor": null, "content": "**Tel Aviv**, officially..." },
{ "level": 2, "title": "Etymology and origins", "anchor": "Etymology_and_origins", "content": "..." }
],
"infobox": {
"Country": "Israel",
"Government: Mayor": "Ron Huldai",
"Area: City": "52 km2 (20 sq mi)",
"Population (2024): City": "494,900",
"Time zone": "UTC+2 (IST)"
},
"categories": ["Tel Aviv", "Cities in Tel Aviv District", "..."],
"languageLinks": [
{ "language": "he", "title": "תל אביב-יפו", "url": "https://he.wikipedia.org/wiki/%D7%AA%D7%9C_%D7%90%D7%91%D7%99%D7%91-%D7%99%D7%A4%D7%95" }
],
"attribution": {
"source": "Wikipedia (en)",
"license": "CC BY-SA 4.0",
"licenseUrl": "https://creativecommons.org/licenses/by-sa/4.0/",
"authorsUrl": "https://en.wikipedia.org/w/index.php?title=Tel_Aviv&action=history",
"text": "Text from the Wikipedia article \"Tel Aviv\" (https://en.wikipedia.org/wiki/Tel_Aviv) by Wikipedia contributors (...), licensed under CC BY-SA 4.0 (...). Converted to Markdown; images, navigation boxes and citation marks removed."
},
"error": null,
"scrapedAt": "2026-10-31T19:00:00.000Z"
}

A title that does not exist, a bad URL or an unknown language code gives a free row with status (not-found, invalid-input, invalid-language, unknown-language, no-results or error) and a plain-English error, so a batch never fails because of one bad title.

Pricing

Pay per article returned:

EventPriceWhen
Actor start$0.00005Once per run
Article$0.0007Every article in your dataset

Example: 1,000 articles cost $0.70. Missing titles, bad input and Wikipedia errors are never charged, and a title that appears twice is returned and billed once.

The actor reads your run's maximum charge before it fetches anything and stops at what that covers, so a run never goes over the limit you set.

Using the text: CC BY-SA attribution

Wikipedia text is free to reuse, also commercially, under the Creative Commons Attribution-ShareAlike 4.0 license. Wikimedia's Terms of Use ask reusers to credit the authors with a link to the article (its history lists every contributor), name the license, say that the text was changed, and share changed text under the same license. Every row carries an attribution object for that: paste attribution.text next to the text wherever you publish it. Images are not included; each image has its own license on Wikimedia Commons.

This actor is not made or endorsed by the Wikimedia Foundation. Wikipedia is a trademark of the Wikimedia Foundation.

Limits

  • Speed: requests are paced to stay inside Wikimedia's limits for unauthenticated tools (about 170 requests a minute, at most 3 at a time). In our tests at the default 1 GB memory, 30 shorter Spanish articles took 13 seconds and 49 long English articles with references took under 2 minutes. Less memory works but runs slower; more is not allowed because it would not help.
  • Up to 2,000 articles per run. For millions of pages, Wikimedia asks for its database dumps or Wikimedia Enterprise instead.
  • Text is the current version of each article at the time of the run.
  • Only the article namespace: talk, user, category and file pages come back as not-found.
  • Infobox parsing works on the standard infobox tables used by most editions (English, French, Spanish, Hebrew, Japanese, Russian and others). Some editions, for example German, use few infoboxes, so infobox is often null there.
  • Tables become Markdown tables; merged cells (rowspan, colspan) are not expanded.
  • Math is kept as LaTeX between $ signs.

FAQ

Which languages work? All Wikipedia editions. Use the code from the edition's address: en for en.wikipedia.org, pt for Portuguese, zh for Chinese, simple for Simple English. Or paste the full URL and the language is taken from it.

Can I get the same article in other languages? Yes. languageLinks lists the title and URL of the article in every edition that has it. Feed those URLs back in as articles to extract them.

Why is my article marked not-found? The title does not exist in that edition. Titles are case sensitive after the first letter, and each edition uses its own titles (the German article about Germany is "Deutschland"). To be sure, paste the article URL, or take the title from languageLinks of the English article.

Do I get disambiguation pages? Yes, they are returned like other articles, with isDisambiguation: true, and they count as an article.

Can I call it from an AI agent or on a schedule? Yes. It runs with limited permissions (no access to your other Apify data) and works from the API, schedules and MCP clients.

Is there personal data in the results? The results are encyclopedia articles as published on Wikipedia. Articles about living people are public encyclopedia entries; no user accounts, editor names or contact details are collected.

Something looks wrong in the output. What do I do? Open an issue on the Issues tab with your run link and the article title. Issues are answered within a few days.