# SofaScore event shot map API

Get SofaScore Event Shot Map data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as event_id, output, raw, and retrieve structured data including requested SofaScore event identifier, count, is home, type, and situation for plot pitch shot maps, visualize goalkeeper shot-stopping, and build cumulative xg timelines.

Documentation: https://openany.si/sofascore/sofascore-event-shot-map-api/de69de1a-caa3-43c5-89c7-ec902362cbb4/
API ID: de69de1a-caa3-43c5-89c7-ec902362cbb4
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/shotmap
Page update time: 2026-12-03T02:55:26.131Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:55:24.654Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## SofaScore Event Shot Map API

Pass event\_id as a SofaScore event ID or match link to retrieve the full match shot map. The shots\[\] array pairs pitch coordinates and goal\_mouth\_coordinates with player identity, minute, body\_part, situation, type, xg and xgot.

## What You Can Build

- **Plot pitch shot maps**: Use shots\[\].coordinates and shots\[\].type to draw interactive home-and-away shot charts.
- **Visualize goalkeeper shot-stopping**: Map shots\[\].goal\_mouth\_coordinates and xgot to evaluate shot placement and saves.
- **Build cumulative xG timelines**: Sort shots\[\] by minute and added\_time to compute running expected goals for each side.

## Returned Data

| Field | Meaning |
| --- | --- |
| `event_id` | Requested SofaScore event identifier |
| `count` | Total number of shots recorded in the match |
| `shots[].minute` | Match minute of the shot attempt |
| `shots[].is_home` | Whether the shot was taken by the home team |
| `shots[].type` | Shot outcome such as goal, save, miss or block |
| `shots[].body_part` | Body part used for the attempt |
| `shots[].situation` | Attacking phase such as assisted, corner or fast-break |
| `shots[].xg` | Expected goals (xG) value for the shot |
| `shots[].xgot` | Expected goals on target (xGOT) value |
| `shots[].coordinates.x` | Normalized pitch X coordinate for the shot origin |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SofaScore event shot map API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string",
          "description": "SofaScore event id or a match link (sofascore.com/football/match/liverpool-arsenal/HQfh#id:16363907). 16363907 = Liverpool v Arsenal, Premier League 26/27."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "event_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "event_id": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "shots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "added_time": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "body_part": {
            "type": "string"
          },
          "coordinates": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "integer"
              }
            }
          },
          "goal_mouth_coordinates": {
            "type": "object",
            "properties": {
              "x": {
                "type": "integer"
              },
              "y": {
                "type": "number"
              },
              "z": {
                "type": "number"
              }
            }
          },
          "goal_mouth_location": {
            "type": "string"
          },
          "is_home": {
            "type": "boolean"
          },
          "minute": {
            "type": "integer"
          },
          "player": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "situation": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "xg": {
            "type": "number"
          },
          "xgot": {
            "type": "number"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/sofascore/v1/event/shotmap?event_id=16363907&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 27,
  "credits_used": 1,
  "event_id": 16363907,
  "fetched_at": "2026-11-19T12:23:01.948Z",
  "shots": [
    {
      "added_time": 2,
      "body_part": "right-foot",
      "coordinates": {
        "x": 10.1,
        "y": 39.1,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 58,
        "z": 1.4
      },
      "goal_mouth_location": "close-left",
      "is_home": true,
      "minute": 90,
      "player": {
        "id": 996952,
        "name": "Bradley Barcola"
      },
      "situation": "assisted",
      "type": "miss",
      "xg": 0.074457429349422,
      "xgot": 0
    },
    {
      "added_time": 1,
      "body_part": "right-foot",
      "coordinates": {
        "x": 14.1,
        "y": 62.8,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 48.8,
        "z": 19
      },
      "goal_mouth_location": "low-centre",
      "is_home": true,
      "minute": 90,
      "player": {
        "id": 1881902,
        "name": "Rio Ngumoha"
      },
      "situation": "assisted",
      "type": "block",
      "xg": 0.053280189633369,
      "xgot": 0
    },
    {
      "added_time": 1,
      "body_part": "right-foot",
      "coordinates": {
        "x": 10.2,
        "y": 70.1,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 53.1,
        "z": 19
      },
      "goal_mouth_location": "low-left",
      "is_home": true,
      "minute": 90,
      "player": {
        "id": 1145642,
        "name": "Víctor Muñoz"
      },
      "situation": "assisted",
      "type": "block",
      "xg": 0.020194323733449,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "left-foot",
      "coordinates": {
        "x": 13.5,
        "y": 73,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 51.8,
        "z": 19
      },
      "goal_mouth_location": "low-left",
      "is_home": true,
      "minute": 87,
      "player": {
        "id": 1881902,
        "name": "Rio Ngumoha"
      },
      "situation": "assisted",
      "type": "block",
      "xg": 0.02746863476932,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 4.8,
        "y": 43.8,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 51.9,
        "z": 19
      },
      "goal_mouth_location": "low-left",
      "is_home": true,
      "minute": 77,
      "player": {
        "id": 925097,
        "name": "Ronald Araújo"
      },
      "situation": "assisted",
      "type": "block",
      "xg": 0.17625431716442,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 30.2,
        "y": 46,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 50.3,
        "z": 19
      },
      "goal_mouth_location": "low-centre",
      "is_home": true,
      "minute": 75,
      "player": {
        "id": 151545,
        "name": "Virgil van Dijk"
      },
      "situation": "assisted",
      "type": "block",
      "xg": 0.018365511670709,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "left-foot",
      "coordinates": {
        "x": 4,
        "y": 61.5,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 61.7,
        "z": 29.2
      },
      "goal_mouth_location": "left",
      "is_home": false,
      "minute": 74,
      "player": {
        "id": 1423711,
        "name": "Myles Lewis-Skelly"
      },
      "situation": "corner",
      "type": "miss",
      "xg": 0.042960323393345,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 14.8,
        "y": 33.3,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 47,
        "z": 1.3
      },
      "goal_mouth_location": "low-right",
      "is_home": false,
      "minute": 73,
      "player": {
        "id": 1031259,
        "name": "Christos Tzolis"
      },
      "situation": "assisted",
      "type": "save",
      "xg": 0.032865907996893,
      "xgot": 0.35824006795883
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 25.1,
        "y": 69.1,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 51.8,
        "z": 19
      },
      "goal_mouth_location": "low-left",
      "is_home": false,
      "minute": 71,
      "player": {
        "id": 958959,
        "name": "Jurriën Timber"
      },
      "situation": "assisted",
      "type": "block",
      "xg": 0.024195745587349,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 14.5,
        "y": 54.4,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 49.6,
        "z": 19
      },
      "goal_mouth_location": "low-centre",
      "is_home": true,
      "minute": 66,
      "player": {
        "id": 1019322,
        "name": "Florian Wirtz"
      },
      "situation": "fast-break",
      "type": "block",
      "xg": 0.17826491594315,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "left-foot",
      "coordinates": {
        "x": 24.8,
        "y": 66,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 52.3,
        "z": 19
      },
      "goal_mouth_location": "low-left",
      "is_home": false,
      "minute": 65,
      "player": {
        "id": 966547,
        "name": "Noni Madueke"
      },
      "situation": "assisted",
      "type": "block",
      "xg": 0.02624748274684,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "left-foot",
      "coordinates": {
        "x": 7,
        "y": 31.7,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 61.5,
        "z": 61.1
      },
      "goal_mouth_location": "high-left",
      "is_home": true,
      "minute": 56,
      "player": {
        "id": 823941,
        "name": "Alexander Isak"
      },
      "situation": "assisted",
      "type": "miss",
      "xg": 0.031192446127534,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 15.3,
        "y": 72,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 65.2,
        "z": 5.6
      },
      "goal_mouth_location": "left",
      "is_home": false,
      "minute": 55,
      "player": {
        "id": 866469,
        "name": "Bruno Guimarães"
      },
      "situation": "assisted",
      "type": "miss",
      "xg": 0.046916704624891,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "left-foot",
      "coordinates": {
        "x": 14.5,
        "y": 48.7,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 52.6,
        "z": 19
      },
      "goal_mouth_location": "low-left",
      "is_home": true,
      "minute": 54,
      "player": {
        "id": 1019322,
        "name": "Florian Wirtz"
      },
      "situation": "regular",
      "type": "block",
      "xg": 0.064600422978401,
      "xgot": 0
    },
    {
      "added_time": 1,
      "body_part": "right-foot",
      "coordinates": {
        "x": 24.3,
        "y": 53.6,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 49.6,
        "z": 19
      },
      "goal_mouth_location": "low-centre",
      "is_home": false,
      "minute": 45,
      "player": {
        "id": 856714,
        "name": "Declan Rice"
      },
      "situation": "assisted",
      "type": "block",
      "xg": 0.046686161309481,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "head",
      "coordinates": {
        "x": 8.8,
        "y": 49.7,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 50.6,
        "z": 58.3
      },
      "goal_mouth_location": "close-high",
      "is_home": true,
      "minute": 43,
      "player": {
        "id": 895324,
        "name": "Alexis Mac Allister"
      },
      "situation": "assisted",
      "type": "miss",
      "xg": 0.098318032920361,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 13.3,
        "y": 18.2,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 46.8,
        "z": 39.2
      },
      "goal_mouth_location": "high",
      "is_home": true,
      "minute": 39,
      "player": {
        "id": 1019322,
        "name": "Florian Wirtz"
      },
      "situation": "free-kick",
      "type": "post",
      "xg": 0.039593737572432,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "left-foot",
      "coordinates": {
        "x": 13.3,
        "y": 35.4,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 58.2,
        "z": 16.7
      },
      "goal_mouth_location": "close-left",
      "is_home": true,
      "minute": 36,
      "player": {
        "id": 823941,
        "name": "Alexander Isak"
      },
      "situation": "assisted",
      "type": "miss",
      "xg": 0.051800057291985,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 21.8,
        "y": 75,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 40.3,
        "z": 4.2
      },
      "goal_mouth_location": "right",
      "is_home": true,
      "minute": 33,
      "player": {
        "id": 895324,
        "name": "Alexis Mac Allister"
      },
      "situation": "regular",
      "type": "miss",
      "xg": 0.015836240723729,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "left-foot",
      "coordinates": {
        "x": 14.1,
        "y": 49.9,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 61.7,
        "z": 16.7
      },
      "goal_mouth_location": "left",
      "is_home": true,
      "minute": 31,
      "player": {
        "id": 1097425,
        "name": "Miloš Kerkez"
      },
      "situation": "fast-break",
      "type": "miss",
      "xg": 0.11744922399521,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "head",
      "coordinates": {
        "x": 12.5,
        "y": 59.3,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 52.4,
        "z": 19
      },
      "goal_mouth_location": "low-left",
      "is_home": true,
      "minute": 28,
      "player": {
        "id": 925097,
        "name": "Ronald Araújo"
      },
      "situation": "corner",
      "type": "block",
      "xg": 0.0094715440645814,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "head",
      "coordinates": {
        "x": 10.5,
        "y": 52.8,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 57,
        "z": 5.6
      },
      "goal_mouth_location": "close-left",
      "is_home": true,
      "minute": 27,
      "player": {
        "id": 151545,
        "name": "Virgil van Dijk"
      },
      "situation": "corner",
      "type": "miss",
      "xg": 0.028908444568515,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 11.3,
        "y": 61.1,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 52.6,
        "z": 19
      },
      "goal_mouth_location": "low-left",
      "is_home": true,
      "minute": 27,
      "player": {
        "id": 862967,
        "name": "Cody Gakpo"
      },
      "situation": "set-piece",
      "type": "block",
      "xg": 0.042235858738422,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 15.8,
        "y": 64.6,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 48.1,
        "z": 1.9
      },
      "goal_mouth_location": "low-right",
      "is_home": false,
      "minute": 25,
      "player": {
        "id": 856714,
        "name": "Declan Rice"
      },
      "situation": "assisted",
      "type": "save",
      "xg": 0.055167175829411,
      "xgot": 0.095440052449703
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 14.4,
        "y": 69.9,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 60.8,
        "z": 2.8
      },
      "goal_mouth_location": "left",
      "is_home": false,
      "minute": 24,
      "player": {
        "id": 866469,
        "name": "Bruno Guimarães"
      },
      "situation": "assisted",
      "type": "miss",
      "xg": 0.047918986529112,
      "xgot": 0
    },
    {
      "added_time": null,
      "body_part": "left-foot",
      "coordinates": {
        "x": 3.7,
        "y": 44.5,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 52.8,
        "z": 5.1
      },
      "goal_mouth_location": "low-left",
      "is_home": false,
      "minute": 16,
      "player": {
        "id": 836705,
        "name": "Kai Havertz"
      },
      "situation": "assisted",
      "type": "goal",
      "xg": 0.64013540744781,
      "xgot": 0.9895099401474
    },
    {
      "added_time": null,
      "body_part": "right-foot",
      "coordinates": {
        "x": 25.6,
        "y": 31.1,
        "z": 0
      },
      "goal_mouth_coordinates": {
        "x": 0,
        "y": 36,
        "z": 95.8
      },
      "goal_mouth_location": "high-right",
      "is_home": false,
      "minute": 15,
      "player": {
        "id": 856714,
        "name": "Declan Rice"
      },
      "situation": "assisted",
      "type": "miss",
      "xg": 0.021672690287232,
      "xgot": 0
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this endpoint return both xG and xGOT?
Yes. Each shot record includes xg and xgot fields when available from SofaScore.

### Are goal-mouth coordinates included alongside pitch coordinates?
Yes. Each shot provides both coordinates (x, y, z on the pitch) and goal_mouth_coordinates plus goal_mouth_location.

### Can I pass a SofaScore match URL as event_id?
Yes. event_id accepts either a numeric ID or a SofaScore match link.

### How do I separate home shots from away shots?
Check the boolean shots[].is_home field on each shot object.

### How do I bypass cached shot data for a live match?
Pass fresh=1 to skip the 24-hour cache and fetch current upstream data.

### Can I trim payload size or export CSV?
Output is JSON only. Pass raw=0 to omit raw source blocks or use fields to select specific keys.

## Available implementations
- apish: https://openany.si/sofascore/sofascore-event-shot-map-api/de69de1a-caa3-43c5-89c7-ec902362cbb4/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
