Sofascore Scraper

ENDPOINTS
GET/players/national-team-statistics

National Team Statistics

Caps, goals, assists and debut per national team.

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,
  "statistics": [
    {
      "team": {
        "id": 4713,
        "name": "England",
        "short_name": "England",
        "code": "ENG",
        "slug": "england",
        "link": "https://www.sofascore.com/team/football/england/4713",
        "image_link": "https://img.sofascore.com/api/v1/team/4713/image",
        "sport": {
          "id": 1,
          "name": "Football",
          "slug": "football"
        },
        "country": null,
        "gender": "M",
        "is_national": true,
        "colors": {
          "primary": "#ffffff",
          "secondary": "#cc0000",
          "text": "#cc0000"
        },
        "followers_count": 1599086,
        "ranking": 4
      },
      "appearances": 56,
      "goals": 17,
      "debut": "2020-10-08T00:00:00Z"
    }
  ]
}