# Get every meeting of two teams (v1)

Returns past and upcoming meetings of the two teams, newest first, by the event's `customId`. An unknown `custom_id` returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/event/h2h/events`
- 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-head-to-head-events

| 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/h2h/events?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.
