/v1/game
Score a game
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/tennis-api/v1/game" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tennis-api/v1/game", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tennis-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/tennis-api/v1/game",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Standard game: points run 0, 15, 30, 40, then game — but at 40-40 it is Deuce and a player must lead by two (Advantage, then game). Points after the game is won are ignored.",
"score": "40-15",
"inputs": {
"points": [
"a",
"a",
"b",
"a",
"a"
],
"tiebreak": false
},
"winner": "a",
"complete": true,
"points_a": 4,
"points_b": 1
},
"meta": {
"timestamp": "2026-06-06T07:13:58.211Z",
"request_id": "45792aa8-b1c1-4d57-9182-ced4f99b1c64"
},
"status": "ok",
"message": "Game score",
"success": true
}