# Get a compact list of upcoming events (v1)

Returns id, team ids, tournament ids and start time for every event of `sport` on `date`. Only today and later dates have data; past dates return `data: null`.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `sport` | query | no | string | Sport slug, such as football, tennis, basketball, cricket, mma or motorsport. Default: football. |
| `date` | query | no | string | Day in YYYY-MM-DD. Defaults to today (UTC). |

## Example request

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