/wikidata/sparql

POST /api/wikidata/sparql

Price: 1 credit

Run a raw SPARQL query against the Wikidata Query Service

How to use it

Run any SPARQL 1.1 query against the full Wikidata graph — the most powerful way to query relationships, aggregations and graph traversals. Use the 'wd:'/'wdt:' prefixes for entities and properties and the wikibase:label service for human-readable labels. Returns one row per result, each row a list of variable bindings (variable name, value, value type, language and datatype). Add a LIMIT to keep heavy queries inside the engine time budget.

Parameters

Request body

Response

Errors

Response headers