Naar de inhoud
GET /v1/game

Box score for a game

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/nhl-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}