Skip to main content
GET
/
ListStatTypes
List Stat Types
curl --request GET \
  --url 'https://api.example.com/ListStatTypes?key='
{
  "result": "string",
  "message": "string",
  "data": [
    {
      "_type": "STAT_TYPE",
      "intID": "integer",
      "strStatName": "string",
      "strAccumulativeType": "string",

      "boolTeam": "boolean",
      "boolGK": "boolean",
      "boolPlayer": "boolean",
      "boolReferee": "boolean",
      "boolCoach": "boolean"
    }
  ]
}

Overview

This endpoint returns the complete list of statistic types used in the KoraStats analytics system. Each stat type defines:
  • The statistic name
  • The aggregation method (SUM, AVG, etc.)
  • Whether the stat applies to:
    • Teams
    • Players
    • Goalkeepers
    • Referees
    • Coaches

Typical use cases

  • Build dynamic analytics dashboards
  • Map stat IDs to human-readable names
  • Discover available metrics for players, teams, and coaches
  • Integrate stat catalogs into external analytics tools
GET /api.php

Parameters

module
string
Always use api
api
string
The API name, use ListStatTypes
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

Example Request

curl --request GET \
  --url "{{Base URL}}?module=api&api=ListStatTypes&version=V2&lang=en&response=json&key=YOUR_API_KEY"

Response

{
  "result": "string",
  "message": "string",
  "data": [
    {
      "_type": "STAT_TYPE",
      "intID": "integer",
      "strStatName": "string",
      "strAccumulativeType": "string",

      "boolTeam": "boolean",
      "boolGK": "boolean",
      "boolPlayer": "boolean",
      "boolReferee": "boolean",
      "boolCoach": "boolean"
    }
  ]
}

Field Explanation

FieldDescription
intIDUnique identifier of the stat type
strStatNameHuman-readable name of the statistic
strAccumulativeTypeAggregation method used (e.g. SUM, AVG)
boolTeamIndicates if the stat applies to teams
boolGKIndicates if the stat applies to goalkeepers
boolPlayerIndicates if the stat applies to players
boolRefereeIndicates if the stat applies to referees
boolCoachIndicates if the stat applies to coaches

Authorizations

key
string
query
required

API key passed as a query parameter named key.

Query Parameters

module
string
default:api

Module selector. Usually 'api'.

version
string
default:V2

API version (e.g., V2).

response
string
default:json

Response format. Usually 'json'.

lang
string
default:en

Response language. Typically 'en' or 'ar'.

Response

Successful response

The response is of type object.