SofaScore

SofaScore competition season rounds

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).

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

Query parameters

idstring required

Numeric SofaScore unique-tournament (competition) id

seasonstring required

Numeric SofaScore season id from tournament-seasons

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "current_round": {
      "name": "Round of 16",
      "prefix": "Qualification",
      "round": 5,
      "slug": "round-of-16"
    },
    "rounds": [
      {
        "name": "Round of 16",
        "prefix": "Qualification",
        "round": 5,
        "slug": "round-of-16"
      }
    ]
  },
  "msg": "OK"
}

Changes