SofaScore season top teams
Returns a competition season's top teams for every team statistic category SofaScore ranks (for football about 30 categories such as average rating, goals scored, possession, shots and clean sheets; for basketball points, pace, ratings and more), each with the ranked teams and the value. The category set depends on the sport and competition, so the response lists every category it holds. The type enum accepts overall, regular_season and playoffs: football competitions publish overall, the NBA publishes regular_season, and a type the competition does not publish answers 404. Optional limit caps the rows per category (up to 50). Get id from search and season from tournament-seasons.
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/sofascore/tournament-top-teams
- Auth: API key in header x-api-key
Query parameters
Numeric SofaScore unique-tournament (competition) id
Numeric SofaScore season id
Statistics scope. Defaults to overall
Rows per category, 1 to 50. Omit to return every row
Headers
API key required
Response
OK
Example response
{
"code": 200,
"data": {
"categories": [
{
"key": "avgRating",
"teams": [
{
"matches": 5,
"rank": 1,
"team": {
"country": "Spain",
"id": 2817,
"name": "FC Barcelona",
"short_name": "Barcelona",
"slug": "barcelona"
},
"value": 7.896
}
]
}
],
"sport": "football",
"type": "overall"
},
"msg": "OK"
}Changes
No recorded changes to this operation across all 2 revisions of this API.