Zum Inhalt springen
GET /v1/game

Box score for a game

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/nhl-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}