Overview

This endpoint returns the ranking of teams in a season based on a specific statistical category. The response includes the tournament and season information, the requested stat type, and a sorted list of teams with their corresponding statistic values.

Typical use cases

  • Retrieve top performing teams in a specific statistical category
  • Build statistical leaderboards for competitions
  • Generate analytical dashboards
  • Compare team performance across a season
Each record represents a team statistical data point containing:
  • team name
  • team ID
  • statistic type
  • statistic value
GET /api.php

Parameters

module
string
Always use api
api
string
The API name, use SeasonTeamTopStats
version
string
The API version (use V2)
lang
string
en for English, ar for Arabic
response
string
Output format (json or xml)
key
string
Your API key
season_id
string
The season ID (example: 385)
stat_type_id
string
The statistic type ID (example: 17)
sort
string
Sort order for the ranking (asc or desc)

Example Request

curl --request GET --url "https://korastats.pro/pro/api.php?module=api&api=SeasonTeamTopStats&version=V2&lang=en&response=json&key=YOUR_API_KEY&season_id=385&stat_type_id=17&sort=asc"
{
  "api": {
    "results": 2,
    "season_id": "385",
    "stat_type_id": "17",
    "sort": "asc",
    "teams": [
      {
        "team_id": "1",
        "team_name": "Team A",
        "stat_value": 10
      },
      {
        "team_id": "2",
        "team_name": "Team B",
        "stat_value": 15
      }
    ]
  }
}