# GET /v2/teams/{id}/trophies

Group: Teams

Everything the team has won: each competition, typed as domestic league, domestic cup, international cup or other, with a flag for major titles, the number of wins and the winning seasons, most recent first.

Plans: Every plan, Free included.

Note: A team that has never won a trophy gets 200 and an empty array.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | DataSportsAPI team id, a positive integer |

## Response

- `data`: `Trophy[]`
- `meta`: count (number of competitions), totalCount (overall trophy tally as the source counts it, or null if the source gives none)
- Objects: Trophy (https://datasportsapi.com/markdown/reference.md#trophy)

## 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/teams/{id}/trophies"
```

TypeScript:

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

Python:

```python
res = client.teams.trophies(id)
```

Go:

```go
res, err := client.Teams.Trophies(ctx, id)
```

CLI:

```bash
$ dsa teams trophies <id>
```

## Example response

```json
{ "data": [ { "league": { "id": 195830, "name": "LaLiga", "slug": "laliga", "sport": "football", … },
    "competitionType": "domesticLeague", "major": true, "count": 36,
    "seasons": [ { "year": "23/24", "startYear": 2023, "endYear": 2024 }, { "year": "21/22", "startYear": 2021, "endYear": 2022 }, … ] },
  { "league": { "name": "UEFA Champions League", … }, "competitionType": "internationalCup", "major": true, "count": 15, … }, … ],
  "meta": { "count": 15, "totalCount": 101 } }
```

---

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