SofaScore

SofaScore event shot map

Returns every shot in a football or ice hockey match. Football shots carry the shooter, side, outcome (shot_type), situation, body part, expected goals (xG and xGOT), minute, and pitch and goal-mouth coordinates. Ice hockey shots carry the shooter, team, side, shot technique (shot_type, for example wrist), outcome (made, saved, missed or blocked), strength (even, powerplay or shorthanded), period and period clock, rink coordinates and, for most shots, xg. An empty shots list is a valid response (a live match with no shots yet). Returns 404 when SofaScore has no shot map for the match, which includes matches that have not started, basketball and other sports without one, and fixtures without expected-goals coverage.

get/sofascore/event-shotmap

Request

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

Query parameters

idstring required

Numeric SofaScore event (match) id

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "event_id": 16363867,
    "shots": [
      {
        "added_time": 4,
        "body_part": "right-foot",
        "goal_mouth_location": "low-left",
        "goal_type": "regular",
        "goalkeeper": {
          "id": 839956,
          "jersey_number": "9",
          "name": "Erling Haaland",
          "position": "F",
          "short_name": "E. Haaland",
          "slug": "erling-haaland"
        },
        "minute": 90,
        "outcome": "saved",
        "period": "1ST",
        "period_time_seconds": 458,
        "player": {
          "id": 839956,
          "jersey_number": "9",
          "name": "Erling Haaland",
          "position": "F",
          "short_name": "E. Haaland",
          "slug": "erling-haaland"
        },
        "reversed_period_time_seconds": 742,
        "shot_type": "goal",
        "situation": "assisted",
        "strength": "powerplay",
        "team": {
          "country": "Spain",
          "id": 2817,
          "name": "FC Barcelona",
          "short_name": "Barcelona",
          "slug": "barcelona"
        },
        "xg": 0.19,
        "xgot": 0.08
      }
    ]
  },
  "msg": "OK"
}

Changes

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