Aller au contenu
GET /v1/score

Score a game

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/bowling-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/bowling-api/v1/score" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bowling-api/v1/score", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bowling-api/v1/score");
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/bowling-api/v1/score",
    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": {
        "note": "Standard ten-pin scoring: a strike scores 10 plus your next two rolls, a spare 10 plus the next one, an open frame the pins. The 10th frame allows bonus rolls. A perfect game (twelve strikes) is 300.",
        "score": 300,
        "frames": [
            {
                "mark": "X",
                "frame": 1,
                "cumulative": 30
            },
            {
                "mark": "X",
                "frame": 2,
                "cumulative": 60
            },
            {
                "mark": "X",
                "frame": 3,
                "cumulative": 90
            },
            {
                "mark": "X",
                "frame": 4,
                "cumulative": 120
            },
            {
                "mark": "X",
                "frame": 5,
                "cumulative": 150
            },
            {
                "mark": "X",
                "frame": 6,
                "cumulative": 180
            },
            {
                "mark": "X",
                "frame": 7,
                "cumulative": 210
            },
            {
                "mark": "X",
                "frame": 8,
                "cumulative": 240
            },
            {
                "mark": "X",
                "frame": 9,
                "cumulative": 270
            },
            {
                "mark": "X",
                "frame": 10,
                "cumulative": 300
            }
        ],
        "inputs": {
            "rolls": [
                10,
                10,
                10,
                10,
                10,
                10,
                10,
                10,
                10,
                10,
                10,
                10
            ]
        },
        "is_perfect": true
    },
    "meta": {
        "timestamp": "2026-06-06T07:13:58.805Z",
        "request_id": "11f2efe8-bb79-495b-8a98-d1a1ffe1571d"
    },
    "status": "ok",
    "message": "Game score",
    "success": true
}