Get an entity
curl --request GET \
--url https://api.oddpool.com/reference/v2/entities/{ope}import requests
url = "https://api.oddpool.com/reference/v2/entities/{ope}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.oddpool.com/reference/v2/entities/{ope}', 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/{ope}",
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/{ope}"
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/{ope}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oddpool.com/reference/v2/entities/{ope}")
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
Get an entity
Fetch an entity by its Oddpool ID.
GET
/
reference
/
v2
/
entities
/
{ope}
Get an entity
curl --request GET \
--url https://api.oddpool.com/reference/v2/entities/{ope}import requests
url = "https://api.oddpool.com/reference/v2/entities/{ope}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.oddpool.com/reference/v2/entities/{ope}', 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/{ope}",
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/{ope}"
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/{ope}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oddpool.com/reference/v2/entities/{ope}")
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_bodyFetch one entity by its Oddpool ID. Returns the same entity object as Look up an entity.
Path parameters
The entity id, e.g.
OPE:TEAM:LOS-ANGELES-LAKERS. Colons are URL-safe; OPE%3ATEAM%3ALOS-ANGELES-LAKERS works too.Request
curl -H "X-API-Key: your_api_key" \
"https://api.oddpool.com/reference/v2/entities/OPE:TEAM:LOS-ANGELES-LAKERS"
import requests
r = requests.get(
"https://api.oddpool.com/reference/v2/entities/OPE:TEAM:LOS-ANGELES-LAKERS",
headers={"X-API-Key": "your_api_key"},
)
entity = r.json()
Response
A canonical entity. Every field is defined in Response fields.{
"oddpool_id": "OPE:TEAM:LOS-ANGELES-LAKERS",
"kind": "team",
"canonical_name": "Los Angeles Lakers",
"aliases": ["Lakers", "LA Lakers", "LAL"],
"wikidata_qid": "Q121783",
"metadata": { "league": "NBA", "sport": "basketball", "city": "Los Angeles" },
"provenance": "wikidata",
"source_synced_at": "2026-05-27T01:16:04Z"
}
Errors
Returns404 when no entity has this id:
{ "detail": { "error_code": "ENTITY_NOT_FOUND", "oddpool_id": "OPE:PERSON:NOT-A-REAL-PERSON" } }
⌘I