# Get the teams in one group (v1)

Returns the teams that played in one sub-tournament, such as a group, in a season. Nothing found returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/tournament/sub-tournament/teams`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/sofascore/seasons/get-sports-sub-tournament-teams

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | query | yes | integer | Tournament id (uniqueTournament.id), such as 17 for the Premier League. Find one with Search Sports. |
| `sub_tournament_id` | query | yes | integer | Sub-tournament id (tournament.id on an event). |
| `season_id` | query | yes | integer | Season id. List seasons with Get Sports Tournament (seasons). |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/tournament/sub-tournament/teams?id=<id>&sub_tournament_id=<sub_tournament_id>&season_id=<season_id>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
