Skip to content
API v2 docs

Fixtures

Esports game bans

GET

/v2/fixtures/{id}/games/{gameId}/bans

All plans

Markdown copyOpen in the playground →

Esports: the characters each side banned in a single game, in the order of the bans (League of Legends and Dota 2).

Counter-Strike has no bans, so both lists are always empty there; for the other titles they stay empty until the source publishes them.

Parameters

id

pathrequired

fixture id issued by DataSportsAPI, a positive integer

gameId

pathrequired

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 covers404 not_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}/bans"
Example
{ "data": { "home": [ { "name": "Lucian", "slug": "lucian" }, … ], "away": [ … ] }, "meta": { "gameId": 9021440 } }