SofaScore

SofaScore event team heatmap

Returns one team's touch locations in a football match as player_points (outfield players) and goalkeeper_points, each point an x and y on SofaScore's 0-100 pitch scale. team_id must be the home or away team of the event; get both ids from the event endpoint. Returns 404 when SofaScore has no heatmap for that team in that match, which includes teams that did not play it, unstarted matches and sports other than football.

get/sofascore/event-team-heatmap

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/sofascore/event-team-heatmap
  • Auth: API key in header x-api-key

Query parameters

idstring required

Numeric SofaScore event (match) id

team_idstring required

Numeric SofaScore team id of the home or away side

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "event_id": 16363867,
    "goalkeeper_points": [
      {
        "x": 47.6,
        "y": 55.9
      }
    ],
    "player_points": [
      {
        "x": 47.6,
        "y": 55.9
      }
    ],
    "team_id": 17
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.