Skip to content

Livematches in play

Demo: Matchboard, opens in a new tab
Docs v2

Fixtures

Lineups

GET

/v2/fixtures/{id}/lineups

All plans

View as MarkdownTry in Playground →

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

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

id

pathrequired

fixture id issued by DataSportsAPI, a positive integer

Response

Any /v2 call can also come back with one of the common errors.

curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/fixtures/{id}/lineups"
Example
{ "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": { … } } }