Wikidata SPARQL Query — Export to JSON/CSV [$0.50/1K]
Pricing
from $0.35 / 1,000 result delivereds
Wikidata SPARQL Query — Export to JSON/CSV [$0.50/1K]
Run any read-only Wikidata SPARQL SELECT query and get flat rows you can export to JSON, CSV or Excel, with Q-IDs split out. Official Wikidata Query Service, CC0 data. $0.50 per 1,000 rows, no start fee.
Pricing
from $0.35 / 1,000 result delivereds
Rating
0.0
(0)
Developer
Tim Zinin
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
3
Monthly active users
8 days ago
Last modified
Categories
Features
Share
Wikidata SPARQL Query — Export Results to JSON, CSV & Excel
Run any read-only Wikidata SPARQL SELECT query and get the results as flat rows — one column per variable, with Wikidata Q-IDs split into their own columns — ready to export to JSON, CSV or Excel, schedule, or call from an AI agent. It uses the official Wikidata Query Service (all data CC0), so there is no login or key.
$0.5 per 1,000 rows, no start fee. Tested 2026-11-14: a run with the example input finished in a few seconds and returned real rows (see Output).
What you get
- Any SELECT query you can run on query.wikidata.org, as table rows
- One column per SPARQL variable;
<var>Idcolumns with bare Q-IDs for entity links - Labels in your language via the standard
wikibase:labelservice - A hard row limit (
maxItems) applied on top of your query, so the bill is predictable - Ready example: countries with capital and population
- Runs on Apify: schedule it, monitor it, call it from the API or an AI agent (MCP), export to JSON/CSV/Excel or push straight into your own pipeline.
How to run it
- Click Try for free — no card needed on the free plan.
- Paste a SPARQL SELECT query into SPARQL query (or keep the example).
- Hit Start and pull the results from the dataset (UI, API or webhook).
Pricing
Pay-per-event: $0 per run start + $0.0005 per row ($0.5 per 1,000 rows). No monthly seat. Status rows (source error, nothing found) are returned for free; you pay only for delivered rows. 100 rows = $0.05; 10,000 rows = $5.00. Apify plan discounts apply automatically.
Input
| Field | Required | What it does |
|---|---|---|
query | no | A SPARQL SELECT query (up to 10,000 characters). Default: countries with capital and population. |
maxItems | no | Row cap, 1–1,000 (default 100). Applied as LIMIT even if your query has none. |
{"maxItems": 5}
Output
{"found": true,"country": "http://www.wikidata.org/entity/Q148","countryId": "Q148","countryLabel": "People's Republic of China","capitalLabel": "Beijing","population": "1404890000","source": "Wikidata Query Service (CC0)","retrievedAt": "2026-11-14T15:34:05.612Z"}
| Field | Meaning |
|---|---|
<your variables> | One column per SELECT variable, values as strings |
<var>Id | Q-ID when the value is a Wikidata entity |
found, source, retrievedAt | Row status, source and time of the query |
For AI agents & LLM apps
Call it as a tool through the Apify MCP server (https://mcp.apify.com, Actor zinin/wikidata-sparql-query): small inputs, flat JSON rows, a hard row cap and no start fee make it cheap to call many times.
Other tools we built
Need the rest of the picture?
| Actor | What it does |
|---|---|
| openalex-works-search | Scholarly works, citations and open-access links (OpenAlex) |
| wikipedia-article-table-extractor | Wikipedia article text and tables as rows |
| company-lookup | Company website and GLEIF LEI evidence |
| sec-edgar-watcher | New SEC filings by company |
FAQ / Limitations
My query times out. The Wikidata Query Service stops queries after 60 seconds. Add filters or a LIMIT, or split by year or type.
Can I update Wikidata with this? No. Only read-only SELECT queries are accepted; updates and federated SERVICE calls to other endpoints are refused.
What this is NOT. It does not edit Wikidata, does not run CONSTRUCT/ASK/DESCRIBE queries and does not call other SPARQL endpoints.
Data: Wikidata Query Service, CC0. This Actor is not affiliated with Wikimedia or Wikidata.
Found a bug or need a custom version? Open an issue on the Actor page.