Wikidata SPARQL Query — Companies, People, Geography & Science avatar

Wikidata SPARQL Query — Companies, People, Geography & Science

Pricing

from $1.00 / 1,000 item processeds

Go to Apify Store
Wikidata SPARQL Query — Companies, People, Geography & Science

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.

Pricing

from $1.00 / 1,000 item processeds

Rating

0.0

(0)

Developer

Hojun Lee

Hojun Lee

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 hours ago

Last modified

Categories

Share

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?

  1. 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.
  2. 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.
  3. Custom knowledge graph queries — Wikidata supports complex SPARQL: federated queries, property paths, aggregations. Write once, run repeatedly with this actor to keep data fresh.
  4. Unicorn startup tracking — The unicorn preset returns all startups with valuation >$1B, with founding year, country, and sector classification.
  5. 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

  1. Open the actor on Apify Store and click Try for free.
  2. Set mode to preset and pick a preset template — or set mode to custom and paste your SPARQL query.
  3. Set limit to control how many records to return.
  4. Optionally change language for entity labels in your preferred language (default: English).
  5. Click Start. Returns structured records from Wikidata matching your query.

Input

FieldTypeDefaultDescription
modestring"preset"preset (built-in template) or custom (your SPARQL query)
presetstring"tech_companies"Template: tech_companies, world_leaders, nobel_laureates, unicorn_startups, top_universities
customQuerystring""SPARQL SELECT query (used when mode: "custom")
limitinteger100Maximum records to return (1–1000)
offsetinteger0Records to skip (for pagination)
languagestring"en"BCP-47 language code for entity labels ("de", "ja", etc.)

Preset queries

PresetWhat it returnsKey fields
tech_companiesTechnology companies on Wikidataname, founded, headquarters, country, employees
world_leadersCurrent heads of state and governmentname, country, position, start date
nobel_laureatesNobel Prize winnersname, prize, year, country
unicorn_startupsStartups with valuation >$1Bname, founded, country, valuation, sector
top_universitiesUniversities ranked by student countname, 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 caseRecordsEstimated cost
100 tech companies100~$0.20/run
All Nobel laureates (1000)1000~$2.00/run
50 unicorn startups50~$0.10/run
Custom query, 500 results500~$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.


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