Aller au contenu
GET /v1/game

A single game's detail

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/nfl-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/nfl-api/v1/game" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nfl-api/v1/game", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nfl-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/nfl-api/v1/game",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "game": {
            "id": "401872656",
            "name": "New England Patriots at Seattle Seahawks",
            "teams": [
                {
                    "id": "26",
                    "team": "Seattle Seahawks",
                    "winner": false,
                    "home_away": "home",
                    "linescores": [],
                    "abbreviation": "SEA"
                },
                {
                    "id": "17",
                    "team": "New England Patriots",
                    "winner": false,
                    "home_away": "away",
                    "linescores": [],
                    "abbreviation": "NE"
                }
            ],
            "venue": "Lumen Field",
            "status": "Scheduled",
            "leaders": [
                [],
                []
            ],
            "completed": false
        }
    },
    "meta": {
        "timestamp": "2026-06-07T16:46:36.008Z",
        "request_id": "e9477365-f46d-4c35-80c3-254da857470e"
    },
    "status": "ok",
    "message": "Game retrieved successfully",
    "success": true
}