+Wikipedia API
Wikipedia articles with summary, infobox fields and links, plus revisions, page views, categories and search, in any language edition.
The API.SH Wikipedia API returns articles from any language edition as clean JSON. /wikipedia/v1/page gives the title, short description, plain-text lead summary, Wikidata id, main image, coordinates, the infobox as key/value pairs, the section outline, categories, linked articles, language versions, last edit time and daily page views for the last 60 days; include=text adds the whole article as plain text. Other routes list every link of one kind (outgoing links, categories, external links, backlinks, templates or images), an article's edit history filtered by date range or editor, the members of a category sorted by name or by date added, daily or monthly page views with access and agent filters or the most viewed articles of a day, full-text search with snippets and word counts, and title autocomplete with short descriptions.
- 7 endpoints
- from $1 / 1,000 calls
- 1,000 free credits / month
- failed calls free
GET https://api.api.sh/wikipedia/v1/ page
{"title": "Eiffel Tower","page_id": 9232,"lang": "en","url": "https://en.wikipedia.org/wiki/Eiffel_Tower","description": "Tower in Paris, France","summary": "The Eiffel Tower ( EYE-fəl; French: Tour Eiffel [tuʁ ɛfɛl] ) is a lattice tower on the Champ de Mars in Paris, France. It is named after th…","wikidata_id": "Q243","short_description": "Tower in Paris, France","disambiguation": false,"redirected_from": null,"thumbnail": "https://thumb.wikimedia.org/wikipedia/commons/thumb/8/85/Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg/960px-Tour_Eiffel_Wikimedia_Commons…","image": "https://upload.wikimedia.org/wikipedia/commons/8/85/Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg?utm_source=en.wikipedia.org&utm_campaign…","coordinates": {"lat": 48.85822222,"lon": 2.2945,"type": null,"name": null,"country": "FR","region": "75","dim": "1000","globe": "earth"},"last_modified": "2026-11-03T05:05:02Z","length": 97417,"last_revision_id": 1383208616,"last_edited": "2026-11-01T15:22:00Z","page_views": {"days": 59,"total": 254680,"daily_average": 4317,"daily": [{"date": "2026-09-05","views": 2925},{"date": "2026-09-06","views": 3290},"… 58 more"]},"infobox_type": "building","infobox": {"name": "Eiffel Tower","native_name": "Tour Eiffel","logo": "Eiffel Tower logo.svg","logo_size": "120","image": "Tour Eiffel Wikimedia Commons (cropped).jpg","caption": "Seen from the Champ de Mars, 2009","highest_start": "1889","highest_end": "1930","highest_prev": "Washington Monument","highest_next": "Chrysler Building","location": "7th arrondissement of Paris, France","coordinates": "48|51|29.6|N|2|17|40.2|E|region:FR-75","mapframe-zoom": "16","construction_start_date": "1887-01-28","completion_date": "1889-03-31","opening_date": "1889-05-15","building_type": "Observation tower; Broadcasting tower","architectural": "300 m","tip": "330 m","top_floor": "276 m","floor_count": "4 (3 accessible, 1 residual)","elevator_count": "8","architect": "Stephen Sauvestre","structural_engineer": "Maurice Koechlin; Émile Nouguier","main_contractor": "Compagnie des Etablissements Eiffel","owner": "City of Paris, France","operator": "Société d'Exploitation de la Tour Eiffel (SETE)","website": "https://www.toureiffel.paris/en","references": "I. talleststatus"},"sections": [{"number": "1","level": 2,"title": "History","anchor": "History","index": 1},{"number": "1.1","level": 3,"title": "Origin","anchor": "Origin","index": 2},"… 35 more"],"categories": ["1889 establishments in France","Architectural controversies","… 17 more"],"links": ["1900 Summer Olympics","1915 Çanakkale Bridge","… 498 more"],"links_truncated": true,"images": ["File:1000 Eiffel tower night illumination by Pierre Bideau in Paris Photo by Giles Laurent.jpg","File:2013 Fireworks on Eiffel Tower 11.jpg","… 51 more"],"languages": [{"lang": "af","title": "Eiffeltoring","url": "https://af.wikipedia.org/wiki/Eiffeltoring"},{"lang": "gsw","title": "Eiffelturm","url": "https://als.wikipedia.org/wiki/Eiffelturm"},"… 173 more"],"cached": false,"credits_used": 1} What you can build with the Wikipedia API
Entity enrichment
Look up a company, person or place with /wikipedia/v1/page by title or URL and store its infobox fields, Wikidata id, coordinates and short description; /wikipedia/v1/autocomplete resolves half-typed names to the right article.
Attention and trend tracking
Pull daily views for a brand, film or politician with /wikipedia/v1/pageviews and agent=user to leave out crawlers, or use top=1 to get the most read articles of a day in a language edition.
Watching edits to an article
Check /wikipedia/v1/page/revisions for your company's article with a start date to see each edit's author, summary and size change, with links to the diff, and exclude_user to hide your own team.
Building lists from categories
Read a category such as Nobel laureates in Physics with /wikipedia/v1/category, sorted by date added, and open each member page for its infobox to build a structured table.
Text for RAG and training
Find candidate articles with /wikipedia/v1/search, then fetch each with include=text to get the full article as plain text with == Section == headings, in English or any lang you choose.
Link and citation research
List the articles that link to a page with type=backlinks, or the external links it cites with type=external, using /wikipedia/v1/page/links and next_cursor to page through.
Wikipedia data you get
Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.
Wikipedia API endpoints and prices
Every Wikipedia endpoint costs 1 credit per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing
| Wikipedia title suggestions /wikipedia/ | $1 · $2 PAYG 1 credit |
| Wikipedia full-text search /wikipedia/ | $1 · $2 PAYG 1 credit |
| Wikipedia category members /wikipedia/ | $1 · $2 PAYG 1 credit |
| Wikipedia article (summary, infobox, sections, links) /wikipedia/ | $1 · $2 PAYG 1 credit |
| Wikipedia article links /wikipedia/ | $1 · $2 PAYG 1 credit |
| Wikipedia page views /wikipedia/ | $1 · $2 PAYG 1 credit |
| Wikipedia revision history /wikipedia/ | $1 · $2 PAYG 1 credit |
Call the Wikipedia API
Wikipedia article (summary, infobox, sections, links): GET https://api.api.sh/wikipedia/
curl "https://api.api.sh/wikipedia/v1/page?title=Albert+Einstein&lang=en" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/wikipedia/v1/page",
params={"title": "Albert Einstein", "lang": "en"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/wikipedia/v1/page");
url.searchParams.set("title", "Albert Einstein");
url.searchParams.set("lang", "en");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); # Google Sheets (API.SH add-on)
=APISH("/wikipedia/v1/page", "title", "Albert Einstein", "lang", "en")
# Zapier, Make, n8n (verified node): pick the API.SH app,
# choose "Wikipedia" and "Wikipedia article (summary, infobox, sections, links)".
# AI agents (Claude, ChatGPT, Cursor): add the
# API.SH MCP server https://api.sh/mcp - Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
- Create an API keyOne key works for all 918 platforms.
- Send the requestJSON back in one call. Add
output=csvoroutput=ndjsonfor files.
Why API.SH for Wikipedia data
- Public data only: no Wikipedia login, cookies or account needed
- One key and one response shape for Wikipedia and 917 other platforms
- Built and maintained by API.SH, not third-party publishers
- Pay per call; errors on our side cost nothing
- No rate limits: run as many calls in parallel as you need
- Live status for every endpoint
API.SH vs the official Wikipedia API
Wikipedia has free official APIs: the MediaWiki Action API and the Wikimedia REST API need no key, and Wikimedia Enterprise offers paid high-volume and commercial access. API.SH is a convenience layer: one call returns the summary, a parsed infobox, links, language versions and recent page views, which would otherwise take several Action API queries plus your own infobox parsing.
Python wrappers such as Wikipedia-API and pandas table scrapers are fine for one-off pulls, but infobox parsing and page-view joins are left to you. API.SH returns them in one response with the key you already use for Google, Bing and other sources.
Wikipedia API questions
What Wikipedia data can I get?+
Articles (/wikipedia/v1/page) with summary, infobox, sections, links, language versions and recent views; one kind of link at a time (/wikipedia/v1/page/links); revision history (/wikipedia/v1/page/revisions); page views and top articles (/wikipedia/v1/pageviews); category members (/wikipedia/v1/category); full-text search (/wikipedia/v1/search) and title autocomplete (/wikipedia/v1/autocomplete).
How much does the Wikipedia API cost?+
Every Wikipedia endpoint costs 1 credit per call. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.
Is there a free trial?+
Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /wikipedia/v1/autocomplete at 1 credit each.
Is there an official Wikipedia API?+
Yes. The MediaWiki Action API and the Wikimedia REST API are free and public, and Wikimedia Enterprise sells bulk and commercial access. API.SH packages the common lookups into single calls, with the infobox already parsed.
Do I need a Wikipedia account or API key?+
No Wikipedia account or key is needed, only your API.SH key. Every route is read-only; nothing is edited.
How do I get a Wikipedia infobox as JSON?+
Call /wikipedia/v1/page with title (or url) and lang. The response includes the infobox type and its fields as key/value pairs in cleaned text, next to the summary, coordinates and Wikidata id.
How do I get page views for a Wikipedia article?+
Use /wikipedia/v1/pageviews with title, start and end, and granularity=daily or monthly. access splits desktop and mobile, and agent=user leaves out crawlers. Data is ready about a day after the fact. /wikipedia/v1/page already includes the last 60 days.
Can I download all of Wikipedia this way?+
For the whole encyclopedia, Wikimedia's database dumps are the right tool. API.SH suits targeted work: specific articles, categories, searches, revision checks and page-view tracking.
How do I get started?+
Make an account at api.sh, copy your key and fetch /wikipedia/v1/page?title=Albert+Einstein&lang=en. Every option is in the docs at https://api.sh/docs. Use it from the JS and Python SDKs, Google Sheets, Zapier, Make or n8n, or connect an AI assistant via https://api.sh/mcp.
Does the Wikipedia API have a rate limit?+
No. API.SH puts no rate limit on your key: send as many Wikipedia calls in parallel as you need and pay only for the calls that run. If Wikipedia itself slows down, the call returns 503 with a retry-after header and is not charged.