Skip to content
GET /v1/set

Set status

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/tennis-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "A set is won at 6 games with a two-game lead; at 6-6 a tiebreak decides it (final score 7-6), or 7-5 if a player pulls ahead first. Some formats use an advantage set with no tiebreak.",
        "score": "6-4",
        "inputs": {
            "games_a": 6,
            "games_b": 4,
            "tiebreak_at": 6
        },
        "status": "set won",
        "winner": "a",
        "needs_tiebreak": false
    },
    "meta": {
        "timestamp": "2026-06-06T07:13:58.414Z",
        "request_id": "ff528ba1-41b6-4916-b5f4-955fbe7f6c3a"
    },
    "status": "ok",
    "message": "Set status",
    "success": true
}