Wikidata SPARQL — structured open knowledge
Wikidata is Wikimedia's open knowledge graph with 100+ million entities. The Query Service provides programmatic access to companies, politicians, municipalities and events connected to the Nordics. Acts as an enrichment/glue layer across connectors via LEI (P1278), ISIN (P946), DK CVR (P1059), SE org numbers (P6460) and Norwegian org numbers (org.no, P2333). CC0, no auth. Read-only queries only.
110.0M rows
Data volume
Real time
Updates
6
MCP tools
{
"data": "..."
}MCP integration
API endpoints
/searchFritekst-sok pa Wikidata-entiteter (wbsearchentities)
- q required
- Søketerm — entitetsnavn eller -alias.
q=Equinor - lang optional
- Språkkode for label/beskrivelse (Wikidata `uselang`). Kappes til 10 tegn og sendes urørt videre — vi validerer den ikke.
lang=no - language optional
- Alias for `lang`. `lang` vinner hvis begge er gitt.
language=en - limit optional
- Maks antall treff (1–50). Verdier utenfor intervallet KLEMMES; en ikke-numerisk verdi faller til 10.
limit=10
Show curl example
# GET https://data.ketl.no/api/connectors/wikidata/search?q=Equinor
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/wikidata/search?q=Equinor"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/sparqlFri SPARQL-spørring (read-only)
- query required
- SPARQL-spørring
query=SELECT ?item WHERE { ?item wdt:P31 wd:Q5 } LIMIT 1
Show curl example
# GET https://data.ketl.no/api/connectors/wikidata/sparql?query=SELECT%20%3Fitem%20WHERE%20%7B%20%3Fitem%20wdt%3AP31%20wd%3AQ5%20%7D%20LIMIT%201
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/wikidata/sparql?query=SELECT%20%3Fitem%20WHERE%20%7B%20%3Fitem%20wdt%3AP31%20wd%3AQ5%20%7D%20LIMIT%201"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/sparqlFri SPARQL-spørring (read-only)
- query required
- SPARQL-spørring
query=SELECT ?item WHERE { ?item wdt:P31 wd:Q5 } LIMIT 1
Show curl example
# POST https://data.ketl.no/api/connectors/wikidata/sparql?query=SELECT%20%3Fitem%20WHERE%20%7B%20%3Fitem%20wdt%3AP31%20wd%3AQ5%20%7D%20LIMIT%201
curl -X POST \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/wikidata/sparql?query=SELECT%20%3Fitem%20WHERE%20%7B%20%3Fitem%20wdt%3AP31%20wd%3AQ5%20%7D%20LIMIT%201"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/entity/{qid}Hent entitet på QID
- lang optional
- Foretrukket språk for label/beskrivelse. Legges først i fallback-kjeden; svaret ekkoer faktisk brukt språk i `lang`.
lang=en
Show curl example
# GET https://data.ketl.no/api/connectors/wikidata/entity/{qid}
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/wikidata/entity/{qid}"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/company-by-orgnrSelskap på SE/DK/NO org.nr
- orgnr required
- Organisasjonsnummer (norsk 9-siffer eller annet register-ID)
orgnr=923609016 - country optional
- Hvilket lands org.nr-property som slås opp (SE P6460, DK P1059, NO P2333). Store bokstaver godtas.
country=no
Show curl example
# GET https://data.ketl.no/api/connectors/wikidata/company-by-orgnr?orgnr=923609016
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/wikidata/company-by-orgnr?orgnr=923609016"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/municipalitiesKommuner m/ NUTS-kode per land
- country optional
- Land. Kun se/dk/no — Wikidata-klassen per land er MÅLT, ikke utledet av landkoden. Store bokstaver godtas.
country=no - limit optional
- Maks antall kommuner (1–500). En verdi utenfor intervallet AVVISES med 400 — den klemmes ikke.
limit=50
Show curl example
# GET https://data.ketl.no/api/connectors/wikidata/municipalities
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/wikidata/municipalities"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/politiciansNasjonalforsamling-medlemmer per land
- country optional
- Land. Kun se/dk/no — forsamlings-QID per land er MÅLT, ikke utledet av landkoden. Store bokstaver godtas.
country=no - limit optional
- Maks antall medlemmer (1–500). En verdi utenfor intervallet AVVISES med 400 — den klemmes ikke.
limit=50
Show curl example
# GET https://data.ketl.no/api/connectors/wikidata/politicians
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/wikidata/politicians"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.