Sofascore Scraper

ENDPOINTS
GET/players/near-matches

Player Near Matches

The player's previous and next match with their rating.

QUERY PARAMS

Sofascore player id or any sofascore.com player URL.

Examples:

  • ID: 934235 (Bukayo Saka)
  • URL: https://www.sofascore.com/football/player/bukayo-saka/934235
{
  "player_id": 934235,
  "previous_match": {
    "id": 16363257,
    "custom_id": "NR",
    "slug": "arsenal-chelsea",
    "link": "https://www.sofascore.com/football/match/arsenal-chelsea/NR#id:16363257",
    "start_time": "2026-09-06T15:30:00Z",
    "status": {
      "code": 100,
      "type": "finished",
      "description": "Ended"
    },
    "is_live": false,
    "is_finished": true,
    "winner_code": 1,
    "home_team": {
      "id": 42,
      "name": "Arsenal",
      "short_name": "Arsenal",
      "code": "ARS",
      "slug": "arsenal",
      "link": "https://www.sofascore.com/team/football/arsenal/42",
      "image_link": "https://img.sofascore.com/api/v1/team/42/image",
      "sport": {
        "id": 1,
        "name": "Football",
        "slug": "football"
      },
      "country": null,
      "gender": "M",
      "is_national": false,
      "colors": {
        "primary": "#cc0000",
        "secondary": "#ffffff",
        "text": "#ffffff"
      },
      "followers_count": 4194250
    },
    "away_team": {
      "id": 38,
      "name": "Chelsea",
      "short_name": "Chelsea",
      "code": "CHE",
      "slug": "chelsea",
      "link": "https://www.sofascore.com/team/football/chelsea/38",
      "image_link": "https://img.sofascore.com/api/v1/team/38/image",
      "sport": {
        "id": 1,
        "name": "Football",
        "slug": "football"
      },
      "country": null,
      "gender": "M",
      "is_national": false,
      "colors": {
        "primary": "#0310a7",
        "secondary": "#ffffff",
        "text": "#ffffff"
      },
      "followers_count": 3549341
    },
    "home_score": {
      "current": 2,
      "display": 2,
      "periods": {
        "period1": 1,
        "period2": 1,
        "normaltime": 2
      }
    },
    "away_score": {
      "current": 1,
      "display": 1,
      "periods": {
        "period1": 1,
        "period2": 0,
        "normaltime": 1
      }
    },
    "round": {
      "number": 3,
      "name": null,
      "slug": null,
      "cup_round_type": null
    },
    "tournament": {
      "id": 17,
      "name": "Premier League",
      "slug": "premier-league",
      "link": "https://www.sofascore.com/tournament/football/england/premier-league/17",
      "image_link": "https://img.sofascore.com/api/v1/unique-tournament/17/image",
      "dark_image_link": "https://img.sofascore.com/api/v1/unique-tournament/17/image/dark",
      "colors": {
        "primary": "#3c1c5a",
        "secondary": "#f80158"
      },
      "followers_count": 1356594,
      "category": {
        "id": 1,
        "name": "England",
        "slug": "england",
        "link": "https://www.sofascore.com/football/england",
        "sport": {
          "id": 1,
          "name": "Football",
          "slug": "football"
        },
        "country": null,
        "flag_image_link": "https://img.sofascore.com/api/v1/country/EN/flag"
      },
      "group": null,
      "is_live": false
    },
    "season": null,
    "has_xg": true,
    "is_final_result_only": false
  },
  "next_match": {
    "id": 16938985,
    "custom_id": "Rsoeb",
    "slug": "ssc-napoli-arsenal",
    "link": "https://www.sofascore.com/football/match/ssc-napoli-arsenal/Rsoeb#id:16938985",
    "start_time": "2026-09-09T19:00:00Z",
    "status": {
      "code": 0,
      "type": "notstarted",
      "description": "Not started"
    },
    "is_live": false,
    "is_finished": false,
    "winner_code": null,
    "home_team": {
      "id": 2714,
      "name": "SSC Napoli",
      "short_name": "Napoli",
      "code": "NAP",
      "slug": "napoli",
      "link": "https://www.sofascore.com/team/football/napoli/2714",
      "image_link": "https://img.sofascore.com/api/v1/team/2714/image",
      "sport": {
        "id": 1,
        "name": "Football",
        "slug": "football"
      },
      "country": null,
      "gender": "M",
      "is_national": false,
      "colors": {
        "primary": "#008cea",
        "secondary": "#ffffff",
        "text": "#ffffff"
      },
      "followers_count": 1176792
    },
    "away_team": {
      "id": 42,
      "name": "Arsenal",
      "short_name": "Arsenal",
      "code": "ARS",
      "slug": "arsenal",
      "link": "https://www.sofascore.com/team/football/arsenal/42",
      "image_link": "https://img.sofascore.com/api/v1/team/42/image",
      "sport": {
        "id": 1,
        "name": "Football",
        "slug": "football"
      },
      "country": null,
      "gender": "M",
      "is_national": false,
      "colors": {
        "primary": "#cc0000",
        "secondary": "#ffffff",
        "text": "#ffffff"
      },
      "followers_count": 4194250
    },
    "home_score": null,
    "away_score": null,
    "round": {
      "number": 1,
      "name": null,
      "slug": null,
      "cup_round_type": null
    },
    "tournament": {
      "id": 7,
      "name": "UEFA Champions League",
      "slug": "uefa-champions-league",
      "link": "https://www.sofascore.com/tournament/football/europe/uefa-champions-league/7",
      "image_link": "https://img.sofascore.com/api/v1/unique-tournament/7/image",
      "dark_image_link": "https://img.sofascore.com/api/v1/unique-tournament/7/image/dark",
      "colors": {
        "primary": "#062b5c",
        "secondary": "#086aab"
      },
      "followers_count": 1189944,
      "category": {
        "id": 1465,
        "name": "Europe",
        "slug": "europe",
        "link": "https://www.sofascore.com/football/europe",
        "sport": {
          "id": 1,
          "name": "Football",
          "slug": "football"
        },
        "country": null,
        "flag_image_link": "https://img.sofascore.com/api/v1/country/europe/flag"
      },
      "group": null
    },
    "season": null,
    "is_final_result_only": false
  },
  "statistics_map": {
    "16363257": {
      "rating": 6.7
    }
  }
}