Look up an entity
curl --request GET \
--url https://api.oddpool.com/reference/v2/entities/lookupimport requests
url = "https://api.oddpool.com/reference/v2/entities/lookup"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.oddpool.com/reference/v2/entities/lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oddpool.com/reference/v2/entities/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oddpool.com/reference/v2/entities/lookup"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.oddpool.com/reference/v2/entities/lookup")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oddpool.com/reference/v2/entities/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyEntities
Look up an entity
Look up a team, person, or party by Wikidata Q-ID, Oddpool ID, or name.
GET
/
reference
/
v2
/
entities
/
lookup
Look up an entity
curl --request GET \
--url https://api.oddpool.com/reference/v2/entities/lookupimport requests
url = "https://api.oddpool.com/reference/v2/entities/lookup"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.oddpool.com/reference/v2/entities/lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oddpool.com/reference/v2/entities/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oddpool.com/reference/v2/entities/lookup"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.oddpool.com/reference/v2/entities/lookup")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oddpool.com/reference/v2/entities/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyLook up a single entity: a team, person, party, company, work, region, or occurrence. Pass exactly one of:
oddpool_id, wikidata_qid, or kind + name.
Query parameters
string
Wikidata Q-ID, e.g.
Q22686.string
Oddpool entity id, e.g.
OPE:PERSON:DONALD-TRUMP.string
One of
person, team, political_party, cultural_work, geographic_region, organization, event_occurrence. Use with name.string
Exact canonical name (case-insensitive). Use with
kind.Request
curl -H "X-API-Key: your_api_key" \
"https://api.oddpool.com/reference/v2/entities/lookup?wikidata_qid=Q22686"
import requests
r = requests.get(
"https://api.oddpool.com/reference/v2/entities/lookup",
headers={"X-API-Key": "your_api_key"},
params={"wikidata_qid": "Q22686"},
)
entity = r.json()
Response
A canonical entity. Every field is defined in Response fields.{
"oddpool_id": "OPE:PERSON:DONALD-TRUMP",
"kind": "person",
"canonical_name": "Donald Trump",
"aliases": ["Trump", "Donald J. Trump", "President Trump", "Donald John Trump"],
"wikidata_qid": "Q22686",
"metadata": { "country": "Q30", "party_qid": "Q29468", "person_kind": "politician" },
"provenance": "wikidata",
"source_synced_at": "2026-05-27T01:16:04Z"
}
Errors
Returns404 when no entity matches:
{ "detail": { "error_code": "ENTITY_NOT_FOUND", "oddpool_id": "OPE:PERSON:NOT-A-REAL-PERSON" } }