Wikipedia
Wikipedia API reference: 26 endpoints for pages, pageviews, revisions, search and wikidata. Per-endpoint credit prices and cURL examples.
Wikipedia pages, content, pageviews, revisions, links, categories, search and Wikidata, on any language edition.
Base path: /v1/wikipedia/...
Quickstart
curl "https://api.insightsocial.app/v1/wikipedia/category/members?title=Albert%20Einstein" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"Endpoints
1 of these is metered: the price depends on how much the call reads. See Credits.
Every endpoint here is beta: it returns the platform's own structure under our naming rules (snake_case keys, string ids, ISO times where the platform gives a timestamp), not a schema-2 entity, and its fields may change. See Beta endpoints.
| Endpoint | Credits | What it returns | Key parameters |
|---|---|---|---|
/category/members | 20 | List a Wikipedia category's members with sort keys and timestamps, plus the category counts. Beta. | title |
/feed | 20 | Get a Wikipedia edition's featured article, most-read articles, picture of the day and on-this-day entries for a day. Beta. | — |
/geosearch | 20 | List Wikipedia pages near a coordinate or a named page, within a radius. Beta. | — |
/logs | 20 | List public Wikipedia log events by type, page, user or time. Beta. | — |
/on-this-day | 20 | Get selected Wikipedia anniversaries, births, deaths, events or holidays for a month and day. Beta. | month, day |
/page | 20 | Get a Wikipedia page's identity, lead, images, protection and optional assessments and pageviews. Beta. | title |
/page/backlinks | 20 | List the pages that link to or transclude a Wikipedia page. Beta. | title |
/page/content | 20 | Get a Wikipedia page's plain-text lead, rendered HTML or wikitext, with sections, links, categories, templates and media. Beta. | title |
/page/history-stats | 20 | Get a Wikipedia page's edit and editor counts plus its first revision. Beta. | title |
/page/languages | 20 | List the Wikipedia editions that have a page for the title. Beta. | title |
/page/links | 20 | List a Wikipedia page's internal links, external URLs, templates, categories or interwiki links. Beta. | title |
/page/media | 20 | List the images and other media used on a Wikipedia page. Beta. | title |
/page/pageviews | 20 | Get a Wikipedia page's daily or monthly views by access method and agent. Beta. | title |
/page/revisions | 20 | List a Wikipedia page's revisions with users, sizes and tags; a reversed date window is swapped for the chosen direction. Beta. | title |
/pages | 20–260 | Get up to 20 Wikipedia pages in one call, with the lookup status of each requested title. Beta. | titles |
/pageviews/site | 20 | Get a Wikipedia edition's site-wide pageviews or unique-device totals. Beta. | — |
/pageviews/top | 20 | Get the most-viewed Wikipedia pages of a day or month, including non-article pages. Beta. | — |
/random | 20 | List random pages in a Wikipedia edition and namespace. Beta. | — |
/recent-changes | 20 | List recent changes on a Wikipedia edition by type, namespace, page or time. Beta. | — |
/search | 20 | Search a Wikipedia edition, with snippets, match ranges, totals and suggestions. Beta. | query |
/search/suggest | 20 | Get title suggestions for a fragment on a Wikipedia edition. Beta. | query |
/user | 20 | Get a Wikipedia user's block, groups, edit count, registration date, gender and central ids. Beta. | name |
/user/contributions | 20 | List a Wikipedia user's contributions with sizes, comments, tags and flags. Beta. | name |
/wikidata/entity | 20 | Get a Wikidata item, property, lexeme or media entity, or resolve a wiki title to its entity. Beta. | id |
/wikidata/query | 20 | Get a read-only Wikidata SPARQL query result as bindings or an ASK answer. Beta. | sparql |
/wikidata/search | 20 | Search Wikidata entities by label, alias or description. Beta. | query |