Wikidata
Referencewww.wikidata.org
Structured facts about anything with a Wikidata item: identifiers, dates, relationships and cross-wiki links.
Capabilities (26)
GET /v1/data/wikidata/backlinks1 creditLists 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.
GET /v1/data/wikidata/claims1 creditReturns just the statements of one entity (every property with its value, qualifiers, references and rank) without labels, descriptions or sitelinks.
GET /v1/data/wikidata/constraint-check1 creditRuns Wikidata's own property-constraint checks over an entity and returns, per statement, which constraints pass, which are violated and with what severity.
GET /v1/data/wikidata/content-languages1 creditReturns every language code Wikidata accepts for labels, descriptions and aliases, optionally with each one's autonym and English name.
GET /v1/data/wikidata/entities1 creditReturns 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.
GET /v1/data/wikidata/entity-by-sitelink1 creditResolves a Wikipedia (or sister project) page title to its Wikidata entity and returns that entity's full record.
GET /v1/data/wikidata/entity-revision1 creditReturns the complete stored JSON of one entity exactly as it was at a given revision id, in the same shape as the entities capability.
GET /v1/data/wikidata/external-url-usage1 creditLists 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.
GET /v1/data/wikidata/fulltext-search1 creditRuns 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.
GET /v1/data/wikidata/geosearch1 creditReturns 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.
GET /v1/data/wikidata/item-aliases1 creditReturns every alternative name recorded for the item, as a map of language code to an array of strings: pen names, abbreviations, former names, transliterations.
GET /v1/data/wikidata/item-descriptions1 creditReturns a flat map of language code to the item's one-line disambiguating description, such as 'British science fiction writer and humorist (1952-2001)'.
GET /v1/data/wikidata/item-label1 creditReturns the item's label in a single language as a bare JSON string, nothing else: the whole response for Q937 is 17 bytes.
GET /v1/data/wikidata/item-labels1 creditReturns a flat map of language code to label for one item: 5 KB for Q42 against the 314 KB the full record costs.
GET /v1/data/wikidata/item-sitelink1 creditReturns 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.
GET /v1/data/wikidata/item-sitelinks1 creditReturns every wiki page connected to the item, keyed by site id, each with the page title, its badges and a ready-built URL.
GET /v1/data/wikidata/parse-value1 creditParses 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.
GET /v1/data/wikidata/property1 creditReturns 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.
GET /v1/data/wikidata/property-data-types1 creditReturns 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.
GET /v1/data/wikidata/property-label1 creditReturns a P-number's label in one language as a bare JSON string: 15 bytes to learn that P569 means 'date of birth'.
GET /v1/data/wikidata/recent-changes1 creditReturns the site-wide stream of recent edits, creations and deletions with timestamps, revision ids and the affected Q-numbers, newest first.
GET /v1/data/wikidata/revisions1 creditReturns 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.
GET /v1/data/wikidata/search1 creditSearches entity labels, aliases and descriptions and returns ranked candidates with their Q-number, label, description and concept URI.
GET /v1/data/wikidata/site-matrix1 creditReturns 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.
GET /v1/data/wikidata/sparql1 creditRuns 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.
GET /v1/data/wikidata/statement1 creditReturns 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.
Response example
The shape of data from wikidata/backlinks (Pages linking to an entity). A sample, not live data.
{
"batchcomplete": "",
"continue": {
"blcontinue": "3|6541",
"continue": "-||"
},
"query": {
"backlinks": [
{
"pageid": 1,
"ns": 4,
"title": "Wikidata:Main Page/Content"
},
{
"pageid": 133,
"ns": 0,
"title": "Q5"
},
{
"pageid": 474,
"ns": 2,
"title": "User:Fnielsen"
},
{
"pageid": 512,
"ns": 4,
"title": "Wikidata:Introduction"
},
{
"pageid": 1020,
"ns": 0,
"title": "Q721"
},
{
"pageid": 1750,
"ns": 3,
"title": "User talk:Kondicherry"
},
{
"pageid": 3162,
"ns": 4,
"title": "Wikidata:Introduction/fr"
},
{
"pageid": 3645,
"ns": 4,
"title": "Wikidata:Introduction/ru"
},
{
"pageid": 4192,
"ns": 2,
"title": "User:Jeblad/first 3130 items"
},
{
"pageid": 6048,
"ns": 2,
"title": "User:Koavf"
}
]
}
}Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Pages linking to an entity
Use Wikidata (wikidata) from fastCRW Pergamon, capability "Pages linking to an entity" (backlinks). You want the reverse direction - which items point AT this one - without writing a SPARQL query. Example options: bltitle=Q42, bllimit=100, blnamespace=0. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "wikidata" and capability "backlinks". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Entity statements
Use Wikidata (wikidata) from fastCRW Pergamon, capability "Entity statements" (claims). You want one entity's facts and nothing else, or you want a single property's values rather than the whole record. Example options: entity=Q42, property=P569, rank=normal. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "wikidata" and capability "claims". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Constraint violations for an entity
Use Wikidata (wikidata) from fastCRW Pergamon, capability "Constraint violations for an entity" (constraint-check). You want to judge how trustworthy or well-formed an item's data is before you rely on it. Example options: id=Q42, status=violation. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "wikidata" and capability "constraint-check". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Supported term languages
Use Wikidata (wikidata) from fastCRW Pergamon, capability "Supported term languages" (content-languages). You need to validate or offer a language code before using it as a languages or language_code argument elsewhere. Example options: wbclprop=code|autonym|name, uselang=fr. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "wikidata" and capability "content-languages". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
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:LicensingAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: Wikidata (CC0)
Cache: up to 86400s
