# Get every shot in an event (v1)

Returns shots with type, situation, body part, xG, player and coordinates in football and ice hockey. `player_id` narrows to one player; `team_id` gives basketball shot areas. Nothing found returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/event/shotmap`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/sofascore/match-detail/get-sports-event-shotmap

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | query | yes | integer | Event id: the id of any event in a list, such as Get Sports Live Events. |
| `player_id` | query | no | integer | Only this player's shots (football). |
| `team_id` | query | no | integer | Basketball: this team's shots grouped by court spot. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/event/shotmap?id=<id>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
