Skip to main content
All providers

Wikidata

Reference

www.wikidata.org

Structured facts about anything with a Wikidata item: identifiers, dates, relationships and cross-wiki links.

Capabilities (26)

GET /v1/data/wikidata/backlinks1 credit

Lists the Wikidata pages that link to a given entity page, which in practice is the set of items that use it as a statement value, plus project pages that mention it.

bltitlebllimit?blnamespace?blfilterredir?blredirect?blcontinue?
GET /v1/data/wikidata/claims1 credit

Returns just the statements of one entity - every property with its value, qualifiers, references and rank - without labels, descriptions or sitelinks.

entityproperty?rank?
GET /v1/data/wikidata/constraint-check1 credit

Runs Wikidata's own property-constraint checks over an entity and returns, per statement, which constraints pass, which are violated and with what severity.

idconstraintid?status?
GET /v1/data/wikidata/content-languages1 credit

Returns every language code Wikidata accepts for labels, descriptions and aliases, optionally with each one's autonym and English name.

wbclprop?uselang?
GET /v1/data/wikidata/entities1 credit

Returns the full Wikidata record for one or more entities: labels, descriptions and aliases in every language, all statements with qualifiers and references, and sitelinks to Wikipedia and sister projects.

idsprops?languages?sitefilter?languagefallback?normalize?redirects?
GET /v1/data/wikidata/entity-by-sitelink1 credit

Resolves a Wikipedia (or sister project) page title to its Wikidata entity and returns that entity's full record.

sitestitlesprops?languages?sitefilter?normalize?redirects?
GET /v1/data/wikidata/entity-revision1 credit

Returns the complete stored JSON of one entity exactly as it was at a given revision id, in the same shape as the entities capability.

idrevision
GET /v1/data/wikidata/external-url-usage1 credit

Lists Wikidata pages that contain an external link matching a URL pattern, with the exact URL found on each - in practice the items whose statements or references cite that site.

euqueryeulimit?eunamespace?euprotocol?euprop?eucontinue?
GET /v1/data/wikidata/fulltext-search1 credit

Runs the Elasticsearch-backed wiki search over Wikidata pages and returns matching Q-numbers with a total hit count and snippets; supports the haswbstatement: operator to find items by statement value.

srsearchsrlimit?sroffset?srnamespace?srsort?srprop?srqiprofile?
GET /v1/data/wikidata/geosearch1 credit

Returns Wikidata items whose coordinate location (P625) falls within a radius of a point, each with its Q-number, latitude, longitude and distance in metres, nearest first.

gscoordgsradius?gslimit?gsprimary?gsglobe?gsnamespace?gsprop?
GET /v1/data/wikidata/item-aliases1 credit

Returns every alternative name recorded for the item, as a map of language code to an array of strings - pen names, abbreviations, former names, transliterations.

item_id
GET /v1/data/wikidata/item-descriptions1 credit

Returns a flat map of language code to the item's one-line disambiguating description, such as 'British science fiction writer and humorist (1952-2001)'.

item_id
GET /v1/data/wikidata/item-label1 credit

Returns the item's label in a single language as a bare JSON string, nothing else - the whole response for Q937 is 17 bytes.

item_idlanguage_code
GET /v1/data/wikidata/item-labels1 credit

Returns a flat map of language code to label for one item - 5 KB for Q42 against the 314 KB the full record costs.

item_id
GET /v1/data/wikidata/item-sitelink1 credit

Returns the title, badges and URL of the item's page on a single named wiki - a 100-byte answer instead of the 18 KB full sitelink set.

item_idsite_id
GET /v1/data/wikidata/item-sitelinks1 credit

Returns every wiki page connected to the item, keyed by site id, each with the page title, its badges and a ready-built URL.

item_id
GET /v1/data/wikidata/parse-value1 credit

Parses human-written strings into the canonical Wikidata value objects - a date into a time value with precision and calendar model, a coordinate into a globecoordinate, a number into a quantity.

datatypevaluesoptions?validate?
GET /v1/data/wikidata/property1 credit

Returns a P-number's definition: its value data type, its labels, descriptions and aliases in every language, and its own statements including formatter URLs and constraint declarations.

property_id_fields?
GET /v1/data/wikidata/property-data-types1 credit

Returns the complete map of Wikibase property data types to the value types they serialise as, e.g. wikibase-item to wikibase-entityid and globe-coordinate to globecoordinate.

No parameters
GET /v1/data/wikidata/property-label1 credit

Returns a P-number's label in one language as a bare JSON string - 15 bytes to learn that P569 means 'date of birth'.

property_idlanguage_code
GET /v1/data/wikidata/recent-changes1 credit

Returns the site-wide stream of recent edits, creations and deletions with timestamps, revision ids and the affected Q-numbers, newest first.

rclimit?rcnamespace?rcstart?rcend?rcdir?rctype?rcprop?rcuser?rcshow?rctag?rccontinue?rctitle?
GET /v1/data/wikidata/revisions1 credit

Returns the revision list for an entity page - revision id, parent id, timestamp, editor and edit comment - newest first, and optionally the stored entity JSON of each revision.

titlesrvprop?rvlimit?rvstart?rvend?rvdir?rvuser?rvexcludeuser?rvslots?rvcontinue?
GET /v1/data/wikidata/search1 credit

Searches entity labels, aliases and descriptions and returns ranked candidates with their Q-number, label, description and concept URI.

searchlanguagetype?limit?continue?uselang?strictlanguage?
GET /v1/data/wikidata/site-matrix1 credit

Returns every Wikimedia wiki grouped by language, each with its database name, URL, project and closed flag - the authoritative list of the site ids sitelinks use.

smtype?smstate?smlangprop?smsiteprop?smlimit?smcontinue?
GET /v1/data/wikidata/sparql1 credit

Runs a SPARQL 1.1 SELECT or ASK against the Wikidata Query Service and returns the standard SPARQL JSON results object with a head.vars list and a results.bindings array.

query
GET /v1/data/wikidata/statement1 credit

Returns one statement on its own - property, value, data type, rank, qualifiers and references - addressed by the statement GUID that appears in every claims or statements response.

statement_id

Licence

Wikidata statement data is released into the public domain under CC0 1.0, as stated in the project's copyright policy.

https://www.wikidata.org/wiki/Wikidata:Licensing

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: Wikidata (CC0)

Cache: up to 86400s