InsightSocial API

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
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.

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

On this page