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

Group: Fixtures

The two teams’ head-to-head record as the source tallies it, seen from this fixture’s home / away point of view, over their recent meetings (around the last ten) plus this fixture once it has finished. For the full list of meetings, call /v2/fixtures/{id}/h2h/fixtures.

Plans: Every plan, Free included.

Note: If the teams have no recorded meeting, data is null rather than a 0/0/0 record. managerDuel gives the two managers’ personal record against each other, counting every team they have managed; it is null if they have never faced each other and in sports that have no managers.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | fixture id issued by DataSportsAPI, a positive integer |

## Response

- `data`: `H2H | null`
- Objects: H2H (https://datasportsapi.com/markdown/reference.md#h2h)

## Errors

Plus the common errors (https://datasportsapi.com/markdown/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/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
$ dsa 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.datasportsapi.com/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.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/fixtures/h2h/ · All docs: https://datasportsapi.com/markdown/docs.md · Data reference: https://datasportsapi.com/markdown/reference.md
