# Get a season's standings (v1)

Returns the league table, or each group's table, with played, won, drawn, lost, goals and points. A season without standings, such as a knockout cup, returns `data: null`.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | query | yes | integer | Tournament id. |
| `season_id` | query | yes | integer | Season id from Get Sports Tournament. |
| `type` | query | no | enum: total, home, away | total, home or away table. Default: total. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/tournament/standings?id=<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.
