Vai al contenuto
GET /v1/game

Box score for a game

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/nhl-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/nhl-api/v1/game" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nhl-api/v1/game", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nhl-api/v1/game");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/nhl-api/v1/game",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "id": 2024021291,
        "away": {
            "sog": 26,
            "abbr": "NJD",
            "name": "New Jersey Devils",
            "score": 5
        },
        "home": {
            "sog": 24,
            "abbr": "BOS",
            "name": "Boston Bruins",
            "score": 4
        },
        "type": "regular",
        "state": "OFF",
        "venue": "TD Garden",
        "period": 4,
        "start_utc": "2025-04-15T23:00:00Z",
        "period_type": "OT"
    },
    "meta": {
        "timestamp": "2026-06-01T00:04:10.343Z",
        "request_id": "2baf3a8d-183e-461b-8a6a-01a83d0a5acd"
    },
    "status": "ok",
    "message": "Game retrieved",
    "success": true
}