Sofascore Scraper

ENDPOINTS
GET/teams/near-matches

Team Near Matches

The team's previous and next match.

QUERY PARAMS

Sofascore team id or any sofascore.com team URL.

Examples:

  • ID: 42 (Arsenal)
  • URL: https://www.sofascore.com/team/football/arsenal/42
{
  "team_id": 42,
  "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"
      },
      "has_player_statistics": true,
      "group": null,
      "is_live": false
    },
    "season": {
      "id": 96668,
      "name": "Premier League 26/27",
      "year": "26/27"
    },
    "time": {
      "injury_time1": 4,
      "injury_time2": 4,
      "last_period_end_timestamp": 1788711638,
      "current_period_start_time": "2026-09-06T16:37:25Z"
    },
    "has_highlights": true,
    "has_xg": true,
    "has_player_statistics": true,
    "has_player_heatmap": 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"
      },
      "has_player_statistics": true,
      "group": null
    },
    "season": {
      "id": 96518,
      "name": "UEFA Champions League 26/27",
      "year": "26/27",
      "season_coverage_info": {}
    },
    "time": {
      "current_period_start_time": null
    },
    "coverage": -1,
    "has_highlights": false,
    "is_final_result_only": false
  }
}