InsightSocial

Wikipedia scraper API

The InsightSocial Wikipedia API has 26 endpoints, from 20 credits a call. A page call costs 20 credits, about $0.02 on Pro, and your first 10 calls up to 100 credits each are free.

Wikipedia pages, pageviews, edit history, links, categories, search and Wikidata, as JSON, on any language edition, in the same envelope and on the same credit balance as every other platform on your key.

26 endpoints · from 20 credits a call · 10 free calls up to 100 credits each · no credit card

curl "https://api.insightsocial.app/v1/wikipedia/page?title=Albert+Einstein&lang=en" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "wikipedia",
"endpoint": "/v1/wikipedia/page",
"schema_version": "2",
"data": {
"lang": "en",
"page": {
"id": "736",
"title": "Albert Einstein",
"url": "https://en.wikipedia.org/wiki/Albert_Einstein",
"description": "German-born theoretical physicist (1879–1955)",
"last_revision_id": "1383620073",
"touched_at": "2026-11-07T01:02:08.000Z",
"length_bytes": 240568,
"language_count": 235,
"watchers": 4074,
"wikidata_id": "Q937",
"is_disambiguation": false,
"extract": "Albert Einstein (14 March 1879 – 18 April 1955) was a German-born theoretical physicist best known for developing the theory of relativity."
}
},
"unavailable": [],
"credits_used": 0,
"charge_reason": "miss",
"free_call": true
}

What Wikipedia data can you get?

Public Wikipedia data only, in the same JSON envelope as every other platform. Every Wikipedia endpoint is beta: inside data it returns Wikipedia's own structure under our naming rules (snake_case keys, string ids, ISO times where Wikipedia gives a timestamp), not the shared profile and post schema, and fields may change.

Pages and content

A page's lead, images and protection, its text as plain lead, HTML or wikitext with sections, its links and media, or up to 20 pages in one call.

Pageviews

Daily or monthly views of one page by access method and agent, the most-viewed pages of a day or month, and site-wide totals.

Edits and editors

A page's revisions and edit counts, recent changes and logs across an edition, and a user's contributions.

Search, categories and Wikidata

Full-text search, title suggestions, category members, pages near a coordinate, the daily featured feed, and Wikidata entities, search and read-only SPARQL.

What people build with the Wikipedia API

  • Attention tracking

    Follow daily pageviews for a list of companies, people or products as a proxy for public interest, next to their social numbers.

  • Knowledge for agents

    Give an AI agent the lead and sections of a page, or a Wikidata entity, through the same key it uses for everything else.

  • Edit monitoring

    Watch revisions on the pages that matter to you and read the text before and after each change.

Wikipedia API endpoints

All 26 Wikipedia endpoints and their price in credits. 1 are metered: they show a range and charge what the call actually read.

EndpointCreditsWhat it returns
/category/members20List a Wikipedia category's members with sort keys and timestamps, plus the category counts.
/feed20Get a Wikipedia edition's featured article, most-read articles, picture of the day and on-this-day entries for a day.
/geosearch20List Wikipedia pages near a coordinate or a named page, within a radius.
/logs20List public Wikipedia log events by type, page, user or time.
/on-this-day20Get selected Wikipedia anniversaries, births, deaths, events or holidays for a month and day.
/page20Get a Wikipedia page's identity, lead, images, protection and optional assessments and pageviews.
/page/backlinks20List the pages that link to or transclude a Wikipedia page.
/page/content20Get a Wikipedia page's plain-text lead, rendered HTML or wikitext, with sections, links, categories, templates and media.
/page/history-stats20Get a Wikipedia page's edit and editor counts plus its first revision.
/page/languages20List the Wikipedia editions that have a page for the title.
/page/links20List a Wikipedia page's internal links, external URLs, templates, categories or interwiki links.
/page/media20List the images and other media used on a Wikipedia page.
/page/pageviews20Get a Wikipedia page's daily or monthly views by access method and agent.
/page/revisions20List a Wikipedia page's revisions with users, sizes and tags; a reversed date window is swapped for the chosen direction.
/pages20–260Get up to 20 Wikipedia pages in one call, with the lookup status of each requested title.
/pageviews/site20Get a Wikipedia edition's site-wide pageviews or unique-device totals.
/pageviews/top20Get the most-viewed Wikipedia pages of a day or month, including non-article pages.
/random20List random pages in a Wikipedia edition and namespace.
/recent-changes20List recent changes on a Wikipedia edition by type, namespace, page or time.
/search20Search a Wikipedia edition, with snippets, match ranges, totals and suggestions.
/search/suggest20Get title suggestions for a fragment on a Wikipedia edition.
/user20Get a Wikipedia user's block, groups, edit count, registration date, gender and central ids.
/user/contributions20List a Wikipedia user's contributions with sizes, comments, tags and flags.
/wikidata/entity20Get a Wikidata item, property, lexeme or media entity, or resolve a wiki title to its entity.
/wikidata/query20Get a read-only Wikidata SPARQL query result as bindings or an ASK answer.
/wikidata/search20Search Wikidata entities by label, alias or description.

Parameters, response fields and examples for each endpoint are in the Wikipedia API reference.

InsightSocial vs the official Wikipedia API

Wikimedia's own APIs (the MediaWiki Action API, the REST API and the Wikidata Query Service) are free and open, and ask for a descriptive User-Agent. If Wikipedia is all you need, call them directly.

InsightSocial APIOfficial Wikipedia API
AccessOne key for Wikipedia and 60 other platformsFree and open
Response shapeThe same envelope and cursor paging as every other platform on your keyOne shape per API: Action, REST, pageviews, SPARQL
BillingOne credit balance with your other dataNo billing
Cost per call20 creditsFree

The official API is the right tool for posting, messaging or managing accounts you own. This one is read-only public data.

How much does the Wikipedia API cost?

Wikipedia calls start at 20 credits. Every endpoint's price is in the table above and in the free GET /v1/endpoints catalogue, so you know the cost before you call. Pro's 10,000 monthly credits cover about 500 pages at 20 credits each.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Repeats and retries

    A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.

  • One balance

    API calls and Chrome extension exports share the same credits. The free plan includes 500 a month.

Not writing code?

Connect InsightSocial to Claude or ChatGPT and ask for Wikipedia data in plain English. Same account, same credits.

Use it from Claude or ChatGPT

Wikipedia API: frequently asked questions

If you only need Wikipedia, the free Wikimedia APIs are the simplest choice. This one makes sense when Wikipedia is one source among several: the same key, envelope, cursor paging and credit balance as the social and video endpoints you already call.