SofaScore

SofaScore season top teams

Returns a competition season's top teams for every team statistic category SofaScore ranks (for football about 30 categories such as average rating, goals scored, possession, shots and clean sheets; for basketball points, pace, ratings and more), each with the ranked teams and the value. The category set depends on the sport and competition, so the response lists every category it holds. The type enum accepts overall, regular_season and playoffs: football competitions publish overall, the NBA publishes regular_season, and a type the competition does not publish answers 404. Optional limit caps the rows per category (up to 50). Get id from search and season from tournament-seasons.

get/sofascore/tournament-top-teams

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/sofascore/tournament-top-teams
  • Auth: API key in header x-api-key

Query parameters

idstring required

Numeric SofaScore unique-tournament (competition) id

seasonstring required

Numeric SofaScore season id

type'overall' | 'regular_season' | 'playoffs'

Statistics scope. Defaults to overall

limitinteger

Rows per category, 1 to 50. Omit to return every row

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "categories": [
      {
        "key": "avgRating",
        "teams": [
          {
            "matches": 5,
            "rank": 1,
            "team": {
              "country": "Spain",
              "id": 2817,
              "name": "FC Barcelona",
              "short_name": "Barcelona",
              "slug": "barcelona"
            },
            "value": 7.896
          }
        ]
      }
    ],
    "sport": "football",
    "type": "overall"
  },
  "msg": "OK"
}

Changes

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