Get season-by-season statistics for an athlete in a specific competition
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
athleteId | number | Yes | - | The unique identifier of the athlete |
competitionId | number | Yes* | - | The competition to retrieve stats for |
7), La Liga (104), Serie A (17), Bundesliga (199), Ligue 1 (176), Champions League (572).| Field | Type | Description |
|---|---|---|
lastUpdateId | number | Internal versioning ID for incremental updates |
requestedUpdateId | number | Requested update ID (-1 = latest) |
ttl | number | Cache TTL in seconds (300 for this endpoint) |
stats | object | Statistics container with columns and rows |
athletes | array | Athlete information |
competitions | array | Competition definitions |
sports | array | Sport definitions |
| Field | Type | Description |
|---|---|---|
columns | array | Column definitions for interpreting row data |
rows | array | Season-by-season statistical data |
| Field | Type | Description |
|---|---|---|
id | string | Column identifier |
name | string | Human-readable column name |
type | string | Data type: βstringβ, βnumberβ |
| Field | Type | Description |
|---|---|---|
season | string | Season display name (e.g., β2024/25β) |
seasonNum | number | Numeric season identifier |
competitionId | number | Competition ID |
competitionName | string | Competition name |
appearances | number | Total appearances |
goals | number | Goals scored |
assists | number | Assists provided |
yellowCards | number | Yellow cards received |
redCards | number | Red cards received |
minutesPlayed | number | Total minutes played |
avgRating | number | Average match rating (1.0-10.0) |
| Status | Description |
|---|---|
| 400 | Missing required athleteId parameter |
| 401 | Invalid or missing API key |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
Your SportsAPI Pro API key
The unique identifier of the athlete
874
Filter stats to a specific competition
104