# GET /v2/fixtures/{id}/h2h

Group: Fixtures

Head-to-head record between the two teams (from this fixture’s home/away perspective), as the source counts it: their recent meetings — usually about the last ten — and the fixture itself once it is finished. Every meeting, listed: /v2/fixtures/{id}/h2h/fixtures.

Note: data is null when the two teams have no recorded duel — never a 0/0/0 record. managerDuel is the two managers’ own record against each other across every team they managed (null when they never met, and in sports without managers).

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |

## Response

- `data`: `H2H | null`
- Objects: H2H (https://sportsapi.app/markdown/en/reference.md#h2h)

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/fixtures/{id}/h2h"
```

TypeScript:

```ts
const { data, meta } = await client.fixtures.h2h(id);
```

Python:

```python
res = client.fixtures.h2h(id)
```

Go:

```go
res, err := client.Fixtures.H2h(ctx, id)
```

CLI:

```bash
$ sportsapi fixtures h2h <id>
```

## Example response

```json
{ "data": { "homeWins": 3, "draws": 4, "awayWins": 3,
    "managerDuel": { "homeManager": { "id": 912044, "name": "Fabian Hurzeler", "slug": "fabian-hurzeler", "shortName": "F. Hurzeler",
                                     "image": "https://cdn.sportsapi.app/v2/managers/912044/photo" },
                     "awayManager": { "id": 912045, "name": "Pierre Sage", "slug": "pierre-sage", "shortName": "P. Sage", "image": null },
                     "homeWins": 1, "draws": 0, "awayWins": 0 } } }
```

---

Base URL: https://api.sportsapi.app. Send your API key as `Authorization: Bearer <key>` on every /v2 request; keys are created in the dashboard (https://sportsapi.app/dashboard).
HTML: https://sportsapi.app/docs/fixtures/h2h · All docs: https://sportsapi.app/markdown/en/docs.md
