# Get a day's events by tournament (v1)

Returns all events on `date` for one tournament or one category (country or circuit), with scores and status. An unknown id returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/events/by-date`
- 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-events-by-date

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `date` | query | no | string | Day in YYYY-MM-DD, UTC. Defaults to today. |
| `tournament_id` | query | no | integer | Tournament id, from Get Sports Schedule or Search. Pass this or category_id. |
| `category_id` | query | no | integer | Category (country or circuit) id from an event's tournament.category. Pass this or tournament_id. |

## Example request

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