curl --request GET \
--url https://api.apinn.io/api/odds \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.apinn.io/api/odds"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.apinn.io/api/odds', 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.apinn.io/api/odds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.apinn.io/api/odds"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.apinn.io/api/odds")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apinn.io/api/odds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"event_id": 1632003656,
"period": 0,
"market": "moneyline",
"line": null,
"odds1": 4.74,
"odds0": 3.16,
"odds2": 1.862,
"todds1": 5.245,
"todds0": 3.406,
"todds2": 1.939,
"line_id": 3654454547,
"alt_line_id": null,
"cutoff": "2026-08-22T18:45:00",
"max_win": 500,
"score_home": null,
"score_away": null,
"red_cards_home": null,
"red_cards_away": null,
"status": 1,
"timestamp": "2026-07-16T02:15:57"
}
]Cotes d'un événement
Cotes courantes, ou timeline complète avec full_history=1. Inclut les true odds (todds*), les scores live et les cartons.
curl --request GET \
--url https://api.apinn.io/api/odds \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.apinn.io/api/odds"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.apinn.io/api/odds', 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.apinn.io/api/odds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.apinn.io/api/odds"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.apinn.io/api/odds")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apinn.io/api/odds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"event_id": 1632003656,
"period": 0,
"market": "moneyline",
"line": null,
"odds1": 4.74,
"odds0": 3.16,
"odds2": 1.862,
"todds1": 5.245,
"todds0": 3.406,
"todds2": 1.939,
"line_id": 3654454547,
"alt_line_id": null,
"cutoff": "2026-08-22T18:45:00",
"max_win": 500,
"score_home": null,
"score_away": null,
"red_cards_home": null,
"red_cards_away": null,
"status": 1,
"timestamp": "2026-07-16T02:15:57"
}
]Autorisations
Paramètres de requête
Identifiant Pinnacle de l'événement. Event ID (required)
0 = match complet, 1 = 1re période, etc.
moneyline, spread, totals, home_totals, away_totals.
Ligne du pari, du point de vue du parieur (« +3.5 » côté away se donne line=3.5 selection=away).
Ne renvoie que ce qui a changé après cet horodatage UTC. Only odds after this timestamp (ISO 8601)
1 = timeline complète au lieu du dernier état. true/false acceptés. Toute autre valeur → 422.
0 = latest odds only (default), 1 = full history
1 = lignes principales seulement. true/false acceptés. Toute autre valeur → 422.
1 = main lines only (alt_line_id IS NULL); default 0 includes every alternate spread/total Pinnacle offers
Réponse
Lignes de cotes
moneyline, spread, totals, home_totals, away_totals Unité de résolution du marché quand elle diffère de celle par défaut du sport. Tennis : "Games" = handicap/total exprimé en JEUX (ex. spread -4.5, total 21.5, totaux par joueur), "Sets" = exprimé en SETS (ex. spread -1.5, total 2.5). null = unité par défaut (football, etc.).
Home / Over.
Draw (null sur les marchés 2‑way).
Away / Under.
True odds (devig) home/over.
Identifiant entier stable de la ligne.
Non‑null si ligne alternative.
Mise maximale acceptée par Pinnacle sur cette ligne (limite de mise / liquidité). Historisée : tout changement de max_win crée un point dans /api/history — Pinnacle relève ou abaisse ses limites sans forcément toucher au prix, et ce mouvement est un signal à part entière.
Score live domicile.
1 = ouvert, 2 = fermé/suspendu. Historisé au même titre que les cotes : chaque bascule ouvert↔suspendu crée un point dans /api/history.