/wikidata/sparql
Run a raw SPARQL query against the Wikidata Query Service
Price: 1 credit
💡 AI Hint: 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.
⚠️ Common errors: 422: Malformed SPARQL query
Authorizations
API token from the dashboard
Headers
Body
A SPARQL 1.1 query to run against the Wikidata Query Service
1"SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q146. SERVICE wikibase:label { bd:serviceParam wikibase:language \"en\". } } LIMIT 10"
Max scrapping execution timeout (in seconds)
20 <= x <= 1500