Round-robin fixture schedule (each team plays once per round)

Creates a round-robin schedule where every team plays every other team, round by round (twice with double_round).

Request

POSThttps://sports-tools.p.apihiver.com/v1/fixtures/round-robin

JSON object. Required: teams.

Request Body

Edit the values below to test different scenarios.

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://sports-tools.p.apihiver.com/v1/fixtures/round-robin \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "teams": [
8    "A",
9    "B",
10    "C",
11    "D"
12  ]
13}'

Round-robin fixture schedule (each team plays once per round): Sports & Cricket Tools API reference

Creates a round-robin schedule where every team plays every other team, round by round (twice with `double_round`). This endpoint is part of the Sports & Cricket Tools API: Tournament fixtures, league tables, Elo ratings and cricket net run rate / required run rate calculators.

Example response (200, application/json)

Success.

1{
2  "teams": 4,
3  "rounds": 3,
4  "schedule": [
5    {
6      "round": 1,
7      "matches": [
8        {
9          "away": "D",
10          "home": "A"
11        },
12        {
13          "away": "C",
14          "home": "B"
15        }
16      ]
17    },
18    {
19      "round": 2,
20      "matches": [
21        {
22          "away": "A",
23          "home": "C"
24        },
25        {
26          "away": "B",
27          "home": "D"
28        }
29      ]
30    },
31    {
32      "round": 3,
33      "matches": [
34        {
35          "away": "B",
36          "home": "A"
37        },
38        {
39          "away": "D",
40          "home": "C"
41        }
42      ]
43    }
44  ],
45  "total_matches": 6
46}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "teams: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.