# SofaScore tournament rounds API

Get SofaScore Tournament Rounds data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as output, raw, tournament_id, and retrieve structured data including requested SofaScore unique-tournament ID and resolved season identifier to build matchweek dropdowns, chain into round fixture lookups, and track season progress.

Documentation: https://openany.si/sofascore/sofascore-tournament-rounds-api/d5453f0d-deac-485c-913f-b505693068b3/
API ID: d5453f0d-deac-485c-913f-b505693068b3
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/tournament/rounds
Page update time: 2026-12-03T02:39:38.166Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:39:26.294Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## SofaScore Tournament Rounds API

Pass tournament\_id and optional season\_id (default current season) to retrieve the competition's round index. The response returns current\_round, count and the rounds\[\] array so clients can request exact matchweeks from Tournament Matches.

## What You Can Build

- **Build matchweek dropdowns**: Populate round selectors from rounds\[\] and pre-select current\_round.round.
- **Chain into round fixture lookups**: Pass rounds\[\].round directly as the round query parameter in the Tournament Matches API.
- **Track season progress**: Compare current\_round.round against count to display how far a league campaign has progressed.

## Returned Data

| Field | Meaning |
| --- | --- |
| `tournament_id` | Requested SofaScore unique-tournament ID |
| `season_id` | Resolved season identifier |
| `count` | Total number of rounds in the season |
| `current_round.round` | Currently active matchweek or round number |
| `rounds[].round` | Round number available in the season |
| `cached` | Whether the response was served from cache |
| `fetched_at` | Timestamp when the payload was fetched |
| `credits_used` | Upstream credits consumed for the call |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore tournament rounds API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "tournament_id": {
          "type": "string",
          "description": "SofaScore unique-tournament id or a tournament link (sofascore.com/football/tournament/england/premier-league/17). 17 = Premier League."
        },
        "season_id": {
          "type": "string",
          "description": "Season id from `/sofascore/v1/tournament` (default: the current season)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "tournament_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "current_round": {
      "type": "object",
      "properties": {
        "round": {
          "type": "integer"
        }
      }
    },
    "fetched_at": {
      "type": "string"
    },
    "rounds": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "round": {
            "type": "integer"
          }
        }
      }
    },
    "season_id": {
      "type": "integer"
    },
    "tournament_id": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/sofascore/v1/tournament/rounds?output=json&raw=0&tournament_id=17' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 38,
  "credits_used": 1,
  "current_round": {
    "round": 11
  },
  "fetched_at": "2026-11-19T12:23:16.075Z",
  "rounds": [
    {
      "round": 1
    },
    {
      "round": 2
    },
    {
      "round": 3
    },
    {
      "round": 4
    },
    {
      "round": 5
    },
    {
      "round": 6
    },
    {
      "round": 7
    },
    {
      "round": 8
    },
    {
      "round": 9
    },
    {
      "round": 10
    },
    {
      "round": 11
    },
    {
      "round": 12
    },
    {
      "round": 13
    },
    {
      "round": 14
    },
    {
      "round": 15
    },
    {
      "round": 16
    },
    {
      "round": 17
    },
    {
      "round": 18
    },
    {
      "round": 19
    },
    {
      "round": 20
    },
    {
      "round": 21
    },
    {
      "round": 22
    },
    {
      "round": 23
    },
    {
      "round": 24
    },
    {
      "round": 25
    },
    {
      "round": 26
    },
    {
      "round": 27
    },
    {
      "round": 28
    },
    {
      "round": 29
    },
    {
      "round": 30
    },
    {
      "round": 31
    },
    {
      "round": 32
    },
    {
      "round": 33
    },
    {
      "round": 34
    },
    {
      "round": 35
    },
    {
      "round": 36
    },
    {
      "round": 37
    },
    {
      "round": 38
    }
  ],
  "season_id": 96668,
  "tournament_id": 17
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do I know which round is currently active?
Read current_round.round from the response to identify the active matchweek.

### How do I query rounds for a past season?
Pass a historical season_id obtained from the SofaScore Tournament API.

### Can tournament_id be a SofaScore tournament URL?
Yes. Pass either a numeric unique-tournament ID such as 17 or a SofaScore tournament link.

### Does this endpoint return the matches inside each round?
No. Pass a round number from rounds[] into the SofaScore Tournament Matches API to list its fixtures.

### How do I refresh current_round right when a new matchweek starts?
Pass fresh=1 to skip the 24-hour cache.

### Can I trim payload size or export CSV?
Output is JSON only. Pass raw=0 to omit raw blocks or use fields to select specific keys.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-tournament-rounds-api/d5453f0d-deac-485c-913f-b505693068b3/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
