InsightSocial
GET /v1/wikipedia/wikidata/entitybeta

Wikipedia Wikidata Entity API

Get a Wikidata item, property, lexeme or media entity, or resolve a wiki title to its entity.

20 credits a call · single call · failed calls free · 10 free calls to start

curl "https://api.insightsocial.app/v1/wikipedia/wikidata/entity?id=<id>" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "wikipedia",
"endpoint": "/v1/wikipedia/wikidata/entity",
"schema_version": "2",
"data": {
"<field>": "<value>"
},
"unavailable": [],
"credits_used": "<integer>"
}

Parameters

Query parameters for GET /v1/wikipedia/wikidata/entity. Send your key in the x-api-key header.

NameRequiredDescription
idYesWikidata entity id (Q937, P31, L1, M925243), or a page title when site is given; props is then required.
siteNoWikimedia site id (enwiki, dewiki, commonswiki). When set, id is a page title on that site and the entity it links to is returned; props is required.
languagesNoLanguages to return labels, descriptions and aliases in, comma-separated, e.g. en,de. Default: every language.
propsNoEntity parts to return, comma- or pipe-separated: info, sitelinks, labels, descriptions, aliases, claims. Required with site. Default: all six; without site or languages, the full entity.

Response

This endpoint is beta: data holds the platform's own fields under our naming rules (snake_case keys, string ids, ISO times where the platform gives a timestamp) rather than a unified post or profile, and those fields may change.

Every field, error and example is in the Wikipedia Wikidata Entity API reference.

How much does the Wikipedia Wikidata Entity API cost?

20 credits per successful call.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Know the price first

    Add dry_run=1 and the response quotes the call without making it. Nothing is charged.

  • One balance

    API calls and Chrome extension exports share the same credits, on the free plan too.

Wikipedia Wikidata Entity API: frequently asked questions

Send GET /v1/wikipedia/wikidata/entity with the id parameter and your key in the x-api-key header. Get a Wikidata item, property, lexeme or media entity, or resolve a wiki title to its entity.