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

Response example

The shape of data from wikidata/backlinks (Pages linking to an entity). A sample, not live data.

JSON
{
  "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: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