Sofascore Scraper

ENDPOINTS
GET/matches/pregame-form

Pregame Form

Pre-match form for both teams: last five results, league position, points and average rating.

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
{
  "match_id": 14023961,
  "label": "Pts",
  "home": {
    "average_rating": 7.02,
    "position": 2,
    "value": 78,
    "last_matches": [
      "W",
      "D",
      "W",
      "W",
      "D"
    ]
  },
  "away": {
    "average_rating": 6.81,
    "position": 4,
    "value": 62,
    "last_matches": [
      "W",
      "L",
      "L",
      "D",
      "W"
    ]
  }
}