Sofascore Scraper

ENDPOINTS
GET/matches/player-statistics

Match Player Statistics

One player's complete statistics line in a match: rating, minutes, passes, shots, xG, xA, duels, plus heatmap points.

QUERY PARAMS

Sofascore match id or any sofascore.com match URL (the #id: fragment is the id).

Examples:

  • ID: 14023961
  • URL: https://www.sofascore.com/football/match/…#id:14023961

Sofascore player id or any sofascore.com player URL.

Example: 980643

{
  "match_id": 14023961,
  "player": {
    "id": 980643,
    "name": "James Trafford",
    "short_name": "J. Trafford",
    "slug": "james-trafford",
    "first_name": "James",
    "last_name": "Trafford",
    "link": "https://www.sofascore.com/player/james-trafford/980643",
    "image_link": "https://img.sofascore.com/api/v1/player/980643/image",
    "position": "G",
    "jersey_number": 1,
    "height_cm": 197,
    "date_of_birth": "2002-10-10",
    "gender": "M",
    "country": null,
    "market_value": {
      "amount": 27000000,
      "currency": "EUR"
    },
    "followers_count": 26080
  },
  "team": {
    "id": 17,
    "name": "Manchester City",
    "short_name": "Man City",
    "code": "MCI",
    "slug": "manchester-city",
    "link": "https://www.sofascore.com/team/football/manchester-city/17",
    "image_link": "https://img.sofascore.com/api/v1/team/17/image",
    "sport": {
      "id": 1,
      "name": "Football",
      "slug": "football"
    },
    "country": null,
    "gender": "M",
    "is_national": false,
    "colors": {
      "primary": "#66ccff",
      "secondary": "#ffffff",
      "text": "#ffffff"
    },
    "followers_count": 4753278
  },
  "statistics": {
    "total_pass": 11,
    "accurate_pass": 10,
    "total_long_balls": 1,
    "goal_assist": 0,
    "accurate_own_half_passes": 10,
    "total_own_half_passes": 11,
    "ball_recovery": 2,
    "saved_shots_from_inside_the_box": 1,
    "saves": 3,
    "minutes_played": 90,
    "touches": 16,
    "rating": 6.5,
    "possession_lost_ctrl": 1,
    "expected_assists": 2.541e-05,
    "total_ball_carries_distance": 6.4250823639293,
    "ball_carries_count": 2,
    "total_progression": 6.088840016739,
    "progressive_ball_carries_count": 0,
    "keeper_save_value": 0.6269,
    "rating_versions": {
      "original": 6.5,
      "alternative": 6.6
    },
    "total_shots": 0,
    "goals_prevented": 0.6451,
    "pass_value_normalized": -0.03,
    "dribble_value_normalized": 0.01,
    "defensive_value_normalized": -0.19,
    "goalkeeper_value_normalized": 0.49
  },
  "position": "G",
  "extra": null,
  "heatmap": [
    {
      "x": 10,
      "y": 51
    },
    {
      "x": 2,
      "y": 49
    },
    {
      "x": 4,
      "y": 50
    },
    {
      "x": 15,
      "y": 53
    },
    {
      "x": 30,
      "y": 49
    },
    {
      "x": 4,
      "y": 48
    },
    {
      "x": 1,
      "y": 46
    },
    {
      "x": 2,
      "y": 47
    },
    {
      "x": 13,
      "y": 31
    },
    {
      "x": 3,
      "y": 49
    },
    {
      "x": 1,
      "y": 51
    },
    {
      "x": 7,
      "y": 50
    },
    {
      "x": 4,
      "y": 52
    },
    {
      "x": 1,
      "y": 46
    },
    {
      "x": 0,
      "y": 45
    },
    {
      "x": 1,
      "y": 49
    },
    {
      "x": 3,
      "y": 50
    },
    {
      "x": 8,
      "y": 45
    },
    {
      "x": 26,
      "y": 5
    }
  ]
}