Wikidata SPARQL Query — Companies, People, Geography & Science
Pricing
from $1.00 / 1,000 item processeds
Wikidata SPARQL Query — Companies, People, Geography & Science
Query Wikidata's SPARQL endpoint to retrieve structured knowledge data. Use preset queries for tech companies, world leaders, Nobel laureates, unicorn startups, or top universities. Supports custom SPARQL. PPE $0.002/record.
Wikidata SPARQL Query lets you query Wikidata's structured knowledge base using either preset templates or custom SPARQL — returning companies, people, places, scientific concepts, and more as clean structured records. Five built-in presets cover tech companies, world leaders, Nobel laureates, unicorn startups, and top universities. For advanced use cases, write any SPARQL SELECT query against Wikidata's public endpoint. No API key required.
Wikidata is the machine-readable backbone behind Wikipedia, containing 100M+ items with structured properties — founding dates, headquarters, founders, revenue, country, and hundreds of other attributes — all queryable via SPARQL.
Why use Wikidata SPARQL Query?
- Tech company data enrichment — Pull founding year, headquarters, CEO, country, and industry for thousands of tech companies. Perfect for enriching CRM data or building a startup intelligence database.
- Academic research datasets — Get structured data on Nobel laureates, Fields Medal winners, or top universities with country, founding year, and student population — ready for analysis.
- Custom knowledge graph queries — Wikidata supports complex SPARQL: federated queries, property paths, aggregations. Write once, run repeatedly with this actor to keep data fresh.
- Unicorn startup tracking — The unicorn preset returns all startups with valuation >$1B, with founding year, country, and sector classification.
- Geographic and political data — World leaders, heads of state, and political entities with position start/end dates — ideal for geopolitical research and risk monitoring.
How to use
- Open the actor on Apify Store and click Try for free.
- Set
modetopresetand pick apresettemplate — or setmodetocustomand paste your SPARQL query. - Set
limitto control how many records to return. - Optionally change
languagefor entity labels in your preferred language (default: English). - Click Start. Returns structured records from Wikidata matching your query.
Input
| Field | Type | Default | Description |
|---|---|---|---|
mode | string | "preset" | preset (built-in template) or custom (your SPARQL query) |
preset | string | "tech_companies" | Template: tech_companies, world_leaders, nobel_laureates, unicorn_startups, top_universities |
customQuery | string | "" | SPARQL SELECT query (used when mode: "custom") |
limit | integer | 100 | Maximum records to return (1–1000) |
offset | integer | 0 | Records to skip (for pagination) |
language | string | "en" | BCP-47 language code for entity labels ("de", "ja", etc.) |
Preset queries
| Preset | What it returns | Key fields |
|---|---|---|
tech_companies | Technology companies on Wikidata | name, founded, headquarters, country, employees |
world_leaders | Current heads of state and government | name, country, position, start date |
nobel_laureates | Nobel Prize winners | name, prize, year, country |
unicorn_startups | Startups with valuation >$1B | name, founded, country, valuation, sector |
top_universities | Universities ranked by student count | name, country, founded, students |
Output
Tech companies preset:
{"company": "Google LLC","wikidata_id": "Q95","founded": "1998-09-04","headquarters": "Mountain View","country": "United States","employees": 190234,"industry": "Internet"}
Nobel laureates preset:
{"laureate": "Katalin Karikó","wikidata_id": "Q76682864","prize": "Nobel Prize in Physiology or Medicine","year": "2023","country": "Hungary"}
Custom query (any SPARQL SELECT):
SELECT ?company ?companyLabel ?revenue WHERE {?company wdt:P31 wd:Q4830453;wdt:P2139 ?revenue.FILTER(?revenue > 1000000000)SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }}ORDER BY DESC(?revenue)LIMIT 50
Cost estimation
Pay-Per-Event: $0.005 per actor start + $0.002 per record returned.
| Use case | Records | Estimated cost |
|---|---|---|
| 100 tech companies | 100 | ~$0.20/run |
| All Nobel laureates (1000) | 1000 | ~$2.00/run |
| 50 unicorn startups | 50 | ~$0.10/run |
| Custom query, 500 results | 500 | ~$1.00/run |
FAQ
What is Wikidata? Wikidata is a free, collaborative knowledge base maintained by the Wikimedia Foundation. It stores structured data that powers Wikipedia's infoboxes and is fully queryable via SPARQL. It contains 100M+ entities with millions of properties.
How do I write a custom SPARQL query?
Wikidata provides a free SPARQL Query Service where you can test queries interactively. Write and test there, then paste into this actor's customQuery field. The endpoint is https://query.wikidata.org/sparql.
How current is the Wikidata data? Wikidata is continuously updated by volunteers. Most major companies, public figures, and scientific entities are current within days to weeks. Obscure entities may lag.
Can I get labels in languages other than English?
Yes — set language: "de" for German, "ja" for Japanese, etc. Labels fall back to English when the entity has no label in the requested language.
Related actors
- GitHub Repository Stats Tracker — Complement Wikidata tech company data with live GitHub repo stats
- Startup Funding Tracker — Recent funding rounds to enrich Wikidata unicorn data
- Wikipedia Pageviews Tracker — Measure public interest in the entities you find in Wikidata
Feedback
If this actor is useful, a quick review helps other researchers find it: Leave a review on Apify Store
Keywords: Wikidata SPARQL query, structured knowledge data extractor, Wikidata API scraper, knowledge graph query, SPARQL endpoint automation, Wikidata entity data, tech company database, world leaders data, Nobel laureate data, unicorn startup list, open knowledge base, linked data scraper, Wikidata bulk export, PPE per record pricing