Esports game lineups
GET
/
Markdown copyOpen in the playground →
Esports: the players of both sides in a single game, with role, champion / hero, kills, deaths and assists, followed by the figures a title keeps — gold, creep score and level in League of Legends; last hits, denies, net worth, and gold and experience per minute in Dota 2; ADR, headshot kills, KAST, K − D, first-kill difference and flash assists in Counter-Strike.
Any field the source does not track for the title is null. Both lists stay empty until the source publishes the game’s lineups: a map still in progress usually has none, and the figures arrive a few minutes after it ends.
Parameters
idpathrequired
fixture id issued by DataSportsAPI, a positive integer
gameIdpathrequired
game id issued by DataSportsAPI — EsportsGame.id as returned by /v2/fixtures/{id}/games
Response
- meta
- gameId
- errors
- 403
history_not_in_plan— the fixture predates the history your plan covers404not_found— the game id is not one of this fixture’s games, or DataSportsAPI never issued the id
The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/fixtures/{id}/games/{gameId}/lineups"Example
{ "data": {
"home": [ { "player": { "id": 902114, "name": "Caps", "slug": "caps", "shortName": "Caps", "image": "…" }, "role": "mid",
"character": { "name": "Viktor", "slug": "viktor" }, "kills": 1, "deaths": 2, "assists": 4,
"gold": 11177, "creepScore": 287, "level": 16,
"denies": null, "netWorth": null, "goldPerMinute": null, "experiencePerMinute": null,
"averageDamagePerRound": null, "headshotKills": null, "kastPercentage": null,
"killDeathDifference": null, "firstKillDifference": null, "flashAssists": null }, … ],
"away": [ … ] },
"meta": { "gameId": 9021440 } }