# Get the meeting closest to now (v1)

Returns the meeting of two teams whose start is closest to now (live, next or most recent), by the event's `customId`. An unknown id returns `data: null`.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `custom_id` | query | yes | string | The event's customId, such as xdbsZdb. Every meeting of the same two teams shares it. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/event/relevant?custom_id=<custom_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.
