# Get a team's touch heatmap (v1)

Returns a football team's touch points (x, y on a 0-100 scale), outfield and goalkeeper separately. `team_id` must be one of the two teams. Nothing found returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/event/heatmap`
- 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-team-heatmap

| 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. |
| `team_id` | query | yes | integer | Team id (homeTeam.id or awayTeam.id on an event). |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/event/heatmap?id=<id>&team_id=<team_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.
