SofaScore

SofaScore team top players

Returns a team's best players for every statistic category SofaScore ranks within the team and season (rating, goals, assists, expected goals, tackles, saves and more for football; points, rebounds and assists for basketball), each as a ranked list with player, team and value. The category set depends on the sport, 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 playoffs, and a type the competition does not publish answers 404. Optional limit caps the rows per category (up to 50); the payload is large without it.

get/sofascore/team-top-players

Request

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

Query parameters

idstring required

Numeric SofaScore team id

tournament_idstring required

Numeric SofaScore unique-tournament (competition) id from team-player-statistics-seasons

seasonstring required

Numeric SofaScore season id from team-player-statistics-seasons

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

Statistics scope

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": "goals",
        "players": [
          {
            "appearances": 5,
            "player": {
              "country": "Spain",
              "id": 855833,
              "name": "Ferran Torres",
              "position": "F",
              "short_name": "F. Torres",
              "slug": "ferran-torres"
            },
            "rank": 1,
            "team": {
              "country": "Spain",
              "id": 2817,
              "name": "FC Barcelona",
              "short_name": "Barcelona",
              "slug": "barcelona"
            },
            "value": 5
          }
        ]
      }
    ],
    "season_id": 96668,
    "sport": "football",
    "team_id": 17,
    "tournament_id": 17,
    "type": "overall"
  },
  "msg": "OK"
}

Changes

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