# Get the pitches of one at-bat (v1)

Returns each pitch of an at-bat with type, speed, zone, outcome and count. An unknown `at_bat_id` returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/event/at-bat/pitches`
- 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-baseball-at-bat-pitches

| 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. |
| `at_bat_id` | query | yes | integer | At-bat id, from Get Baseball At-Bats. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/event/at-bat/pitches?id=<id>&at_bat_id=<at_bat_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.
