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

Group: Fixtures

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

Plans: Every plan, Free included.

Note: 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

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | fixture id issued by DataSportsAPI, a positive integer |
| `gameId` | path | yes | game id issued by DataSportsAPI — EsportsGame.id as returned by /v2/fixtures/{id}/games |

## Response

- `data`: `EsportsGameBans`
- `meta`: gameId
- Objects: EsportsGameBans (https://datasportsapi.com/markdown/reference.md#esportsgamebans)

## Errors

- 403 history_not_in_plan — the fixture predates the history your plan covers
- 404 not_found — the game id is not one of this fixture’s games, or DataSportsAPI never issued the id

Plus the errors every /v2 call shares (https://datasportsapi.com/markdown/docs/errors.md).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/fixtures/{id}/games/{gameId}/bans"
```

TypeScript:

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

Python:

```python
res = client.fixtures.game_bans(id, game_id)
```

Go:

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

CLI:

```bash
$ dsa fixtures game-bans <id> <gameId>
```

## Example response

```json
{ "data": { "home": [ { "name": "Lucian", "slug": "lucian" }, … ], "away": [ … ] }, "meta": { "gameId": 9021440 } }
```

---

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/game-bans/ · Group: https://datasportsapi.com/markdown/docs/fixtures.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
