# Get a sortable player stats table (v1)

Returns a page of player season statistics sorted by `order`, with one column `group`. Teams and filters come from Get Sports Season Statistics Info. Nothing found returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/tournament/season/statistics`
- 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-season-player-table

| 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. |
| `season_id` | query | yes | integer | Season id. List seasons with Get Sports Tournament (seasons). |
| `limit` | query | no | integer | Rows per page, 1 to 100. Default: 20. |
| `page` | query | no | integer | Page number, from 1. pages in the reply is the page count. Default: 1. |
| `order` | query | no | string | Field to sort by; a leading - sorts descending. Default: -rating. |
| `accumulation` | query | no | enum: total, perGame, per90 | total, perGame or per90 values. Default: total. |
| `group` | query | no | enum: summary, attack, defence, passing, goalkeeper | Column group to return. Default: summary. |

## Example request

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