SofaScore

SofaScore team player statistics

Returns the statistics of every player in a team's squad for one competition season, each as a snake_case metric map (appearances, minutes, rating, goals, assists, passing and duel metrics for football; points, rebounds and assists for basketball), in SofaScore's order. The type enum accepts overall, home, away, regular_season and playoffs and defaults to overall; only the types listed for that season by team-player-statistics-seasons exist (football overall, home, away; NBA regular_season, playoffs). A metric SofaScore did not record is omitted rather than returned as 0. Returns 404 when SofaScore has no statistics of that type for the combination.

get/sofascore/team-player-statistics

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/sofascore/team-player-statistics
  • 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' | 'home' | 'away' | 'regular_season' | 'playoffs'

Statistics view

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "players": [
      {
        "player": {
          "id": 839956,
          "jersey_number": "9",
          "name": "Erling Haaland",
          "position": "F",
          "short_name": "E. Haaland",
          "slug": "erling-haaland"
        }
      }
    ],
    "season": 96668,
    "team_id": 17,
    "tournament_id": 17,
    "type": "overall"
  },
  "msg": "OK"
}

Changes

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