---
title: "SofaScore player statistics table filters"
method: GET
path: "/sofascore/tournament-statistics-info"
tags: ["SofaScore"]
---

# SofaScore player statistics table filters

`GET /sofascore/tournament-statistics-info`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/sofascore/tournament-statistics-info`
- Auth: API key in header `x-api-key`

Returns what the tournament-player-statistics table of a football competition season can be filtered by: the season's teams (ids for the `team` filter), the nationality codes (for the `nationality` filter; SofaScore uses `EN`, `SX`, `WA` and `NX` for the home nations), the position codes `G`, `D`, `M` and `F` (for the `position` filter), and the statistic columns of each `group` value (`summary`, `attack`, `defence`, `passing`, `goalkeeper`). Other sports answer 404. Get `id` from search and `season` from tournament-seasons.

## Query parameters

- `id` string, required
- `season` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SofascoreTournamentStatisticsInfoResponseDoc
  - `code` integer
  - `data` SofascoreTournamentStatisticsInfoResponse
    - `detailed_groups` object: DetailedGroups lists the further per-area statistic names the season tracks (upstream's "detailed" group); the table does not take them as `group` or `order` values.
    - `fetched_at` string
    - `groups` object: Groups lists the statistic columns of each `group` value.
    - `nationalities` SofascoreNamedCode[]: Nationalities are the codes the `nationality` filter accepts. SofaScore uses its own codes for the home nations (EN England, SX Scotland, WA Wales, NX Northern Ireland).
      - `code` string
      - `name` string
    - `positions` SofascoreNamedCode[]: Positions are the codes the `position` filter accepts. The set is fixed by this API (verified: G, D, M and F each filter the table; any other code returns no rows).
      - `code` string
      - `name` string
    - `season_id` integer
    - `source_url` string
    - `teams` SofascoreTeamRef[]: Teams are the teams whose id the `team` filter accepts.
      - `country` string: Country the team belongs to.
      - `id` integer: SofaScore team id. Use it with the team endpoints.
      - `name` string: Full team name.
      - `national` boolean: True for a national team.
      - `short_name` string: Shortened team name.
      - `slug` string: URL slug of the team on SofaScore.
    - `tournament_id` integer
  - `msg` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/028417aa35bb?raw)
