# Get events at a venue (v1)

Returns events at a venue, 30 per page, for `sport` or `all` sports. A page past the end returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/venue/events`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/sofascore/people-and-venues/get-sports-venue-events

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | query | yes | integer | Venue id, from an event's venue.id or a team's venue.id. |
| `sport` | query | no | string | Sport slug such as football, or all. Default: football. |
| `span` | query | no | enum: last, next | last for results, most recent first, or next for fixtures. Default: last. |
| `page` | query | no | integer | Page number, from 1. hasNextPage says whether another page exists. Default: 1. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/venue/events?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.
