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

Group: Fixtures

Team lineups and formations plus unavailable players, with every player carrying a match rating and statistics.

Plans: Every plan, Free included.

Note: How much you get depends on the fixture: top leagues come with lineups plus per-player ratings and statistics, while many youth, amateur and friendly matches never receive any. Player statistics reuse the team-statistics keys wherever the meaning matches (passes, accuratePasses, shotsOnGoal, tackles, …; bigChancesCreated counts big chances the player set up for a teammate). Each …Percentage field is a share from 0 to 100, with one exception: basketball’s trueShootingPercentage can exceed 100 (for example a handful of free throws plus a three). Players who did not take part have rating and statistics set to null; avgRating (football) holds the player’s season average and is filled mainly before and around kick-off. The profile fields heightCm, dateOfBirth, country and marketValue mirror the player’s profile (/v2/players/{id}) and are null when the source has no value — common in predicted lineups — with marketValue largely limited to football. Preferred foot is missing because the lineups we receive lack it; the profile and the squad have it. position is a sport-dependent word (G means goalkeeper in football, goalie in ice hockey and guard in basketball), while positionCode retains the source’s letter. A fixture without lineups (so far) answers 200 with confirmed: false and both sides empty; only an unknown id gets 404. While a match is live, the data is refreshed roughly every 30 seconds.

## Parameters

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

## Response

- `data`: `Lineups`
- Objects: Lineups (https://datasportsapi.com/markdown/reference.md#lineups)

## 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}/lineups"
```

TypeScript:

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

Python:

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

Go:

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

CLI:

```bash
$ dsa fixtures lineups <id>
```

## Example response

```json
{ "data": { "confirmed": true,
    "home": { "formation": "4-2-3-1", "players": [
      { "player": { "id": 3772, "name": "David Raya", "slug": "david-raya", "shortName": "D. Raya", "image": "…" },
        "position": "goalkeeper", "positionCode": "G", "jerseyNumber": "1", "substitute": false, "captain": false,
        "heightCm": 187, "dateOfBirth": "1995-09-15", "country": { "code": "ES", "name": "Spain", "flag": "…" },
        "marketValue": { "amount": 25000000, "currency": "EUR" },
        "rating": 7.1, "avgRating": 6.94, "ratingVersions": { "original": 7.1, "alternative": 7.3 }, "star": null, "battingOrder": null,
        "statistics": { "minutesPlayed": 90, "passes": 34, "accuratePasses": 29, "saves": 2, "touches": 41, … } }, … ],
      "missing": [ { "player": { … }, "availability": "out", "reason": "injury", "description": "Knee Injury",
                     "expectedReturnAt": "2026-11-02T00:00:00.000Z" } ] },
    "away": { … } } }
```

---

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/lineups/ · All docs: https://datasportsapi.com/markdown/docs.md · Data reference: https://datasportsapi.com/markdown/reference.md
