/soccer/leagues/{id}/top-scorersGet league top scorers
Returns a soccer league's top scorers (kind=goals, with penalty goals), most assists (assists) or most cards (cards, yellow and red), best first, up to 50 players. Read about 3 hours after each matchday, at most daily, and weekly. 404 for leagues without a list.
Parameters
idinteger · pathrequiredLeague ID
kindstring · querygoals (default), assists or cards
One of:goals,assists,cardslimitinteger · queryPlayers (1-50, default 50)
Response
JSON with success, the result in data, and where the endpoint pages its results meta.
dataobjectkindstringleague_idintegerplayersarray of objectassistsintegergoalsintegerpenalty_goalsintegerplayer_idintegerplayer_namestringpositionintegerred_cardsintegerteam_idintegerteam_namestringyellow_cardsintegerseasonstringupdated_atstringwhen the list last changed
errorobjectcodestringmessagestringmetaobjectattributionstringAttribution a data source's licence asks for (Cricsheet's history).
limitintegeroffsetintegertotalintegersuccessboolean
Errors
| Status | Code | When |
|---|---|---|
| 400 | INVALID_PARAM | A parameter is missing or wrong, and the message names it. Fix the request; do not retry it. |
| 401 | UNAUTHORIZED | The key is missing, mistyped or was rotated. |
| 402 | x402 offers | No key and no valid payment: the body lists what to pay. Only a 200 answer is charged. |
| 403 | FORBIDDEN | The sport or feature is not in your plan (FEATURE_NOT_IN_PLAN for Insights and other plan features). |
| 404 | NOT_FOUND | No record with that id. |
All errors have the shape described in Errors and limits.
Generated from the OpenAPI file, version 1.0. See it as JSON