---
title: "SofaScore competition season rounds"
method: GET
path: "/sofascore/tournament-rounds"
tags: ["SofaScore"]
---

# SofaScore competition season rounds

`GET /sofascore/tournament-rounds`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/sofascore/tournament-rounds`
- Auth: API key in header `x-api-key`

Returns the rounds of a competition season and the current round. Round numbers are not unique in cups: the UEFA Champions League has both a qualifying and a league-phase round 1, and the same playoff round number with and without a `prefix`. To fetch a round's fixtures, pass its `round` to round-events together with its `slug` and, when present, its `prefix`; knockout and named rounds return 404 from round-events without the slug. Plain numbered rounds (a league's round 1 to 38) have no slug. Get `id` from category-tournaments or search and `season` from tournament-seasons. Returns 404 when SofaScore has no rounds for the season (for example a season that has not started).

## Query parameters

- `id` string, required
- `season` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SofascoreTournamentRoundsResponseDoc
  - `code` integer
  - `data` SofascoreTournamentRoundsResponse
    - `count` integer
    - `current_round` SofascoreRoundRef
      - `name` string
      - `prefix` string
      - `round` integer
      - `slug` string
    - `fetched_at` string
    - `rounds` SofascoreRoundRef[]
      - `name` string
      - `prefix` string
      - `round` integer
      - `slug` string
    - `season_id` integer
    - `source_url` string
    - `tournament_id` integer
  - `msg` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
