curl --request GET \
--url https://api.apinn.io/api/opening \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.apinn.io/api/opening"
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/opening', 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/opening",
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/opening"
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/opening")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apinn.io/api/opening")
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": 123,
"period": 123,
"market": "moneyline",
"line": 123,
"units": "<string>",
"odds1": 123,
"odds0": 123,
"odds2": 123,
"todds1": 123,
"todds0": 123,
"todds2": 123,
"line_id": 123,
"alt_line_id": 123,
"cutoff": "<string>",
"max_win": 123,
"score_home": 123,
"score_away": 123,
"red_cards_home": 123,
"red_cards_away": 123,
"status": 123,
"timestamp": "<string>",
"true_odds_by_model": {}
}
]Cotes d'ouverture
Première observation par ligne, avec true odds.
curl --request GET \
--url https://api.apinn.io/api/opening \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.apinn.io/api/opening"
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/opening', 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/opening",
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/opening"
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/opening")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apinn.io/api/opening")
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": 123,
"period": 123,
"market": "moneyline",
"line": 123,
"units": "<string>",
"odds1": 123,
"odds0": 123,
"odds2": 123,
"todds1": 123,
"todds0": 123,
"todds2": 123,
"line_id": 123,
"alt_line_id": 123,
"cutoff": "<string>",
"max_win": 123,
"score_home": 123,
"score_away": 123,
"red_cards_home": 123,
"red_cards_away": 123,
"status": 123,
"timestamp": "<string>",
"true_odds_by_model": {}
}
]Autorisations
Paramètres de requête
Identifiant Pinnacle de l'événement. Event ID (required)
0 = match complet, 1 = 1re période, etc. Filter by period (0 = full match)
moneyline, spread, totals, home_totals, away_totals. Filter by market (moneyline, spread, totals, home_totals, away_totals)
Réponse
Lignes d'ouverture
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.
Les cotes justes selon CHACUN des 5 modèles TrueLine (LOG, EM, MPTO, SHIN, OR). La cote juste n'est pas une observation : c'est la sortie d'un modèle de dévig, et les 5 divergent — d'où les 5 servies d'office, au prix d'un seul appel. Les champs todds* de tête restent ceux du modèle demandé (?model= > préférence du compte > MPTO). Présent sur l'ouverture (premier tick) et la clôture (dernier tick avant le coup d'envoi) uniquement, jamais sur les ticks intermédiaires.
Show child attributes
Show child attributes