SofaScore

SofaScore team competitions

Lists the competitions a team plays in, each with id, name, slug, category and sport. By default (all=false) it returns the competitions the team currently takes part in; with all=true it returns every competition the team has been recorded in, including friendlies and older tournaments. Competition ids can be used as tournament_id elsewhere in the SofaScore endpoints; use team-player-statistics-seasons for the seasons that have statistics. Returns 404 when SofaScore has no competitions for the team.

get/sofascore/team-tournaments

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/sofascore/team-tournaments
  • Auth: API key in header x-api-key

Query parameters

idstring required

Numeric SofaScore team id

allboolean

false returns current competitions, true returns every recorded competition

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "team_id": 17,
    "tournaments": [
      {
        "category": "England",
        "gender": "M",
        "id": 17,
        "name": "Premier League",
        "slug": "premier-league",
        "sport": "football"
      }
    ]
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.