Skip to content

Wikidata SPARQL query

Run a read-only SPARQL query on the Wikidata Query Service and get SPARQL JSON results (head.vars, results.bindings): lists such as companies by country. Needs query.

Inputs

1 required
Query
SPARQL SELECT or ASK query with a LIMIT, e.g. 'SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q4830453; wdt:P17…Required · query

Pricing

Price
Free, no charge per call
Billing
No charge per call. A workspace is still needed so your agent can call it.
License
CC0 1.0 (Wikidata structured data)
Attribution
Data from Wikidata (CC0)

Call

Your agent reads the schema and the price with inspect_tool before it runs the tool.

MCP call
cURL command
TypeScript
Tool ID

Alternatives

Wikipedia, books & web archives

Connect your agent to 3,250+ tools for free

Sign in with Google or GitHub. No card required.