Overview

The EntityTeams endpoint returns a paginated list of teams stored in the KoraStats database. The endpoint supports search filters, pagination, and incremental synchronization using the since parameter. Each team record includes:
  • Team identity
  • Club information
  • Stadium
  • Coach
  • Gender category
  • National team indicator
  • Team image

Typical use cases

  • Build searchable team directories
  • Synchronize team data with external systems
  • Retrieve team lists for competition management
  • Load paginated team lists in dashboards
GET /api.php

Parameters

module
string
Always use api
api
string
Always use EntityTeams
version
string
API version. Example: V2
response
string
Response format. Always use json
lang
string
Language of the response. Example: en
season_ids
string
Comma-separated list of season IDs used to filter teams that participated in specific seasons.
country_id
integer
Filter teams by country.
name
string
Search by team name. Partial string matches are supported.
since
datetime
Returns only teams updated after the specified date and time.Format: YYYY-MM-DD HH:MM:SS
page_size
integer
Number of teams returned per page.
page_number
integer
Page number of the results to retrieve.

Since Parameter

The since parameter enables incremental synchronization. Only teams updated after the provided timestamp will be returned. Format: YYYY-MM-DD HH:MM:SS Example: since=2024-04-01 20:39:35

Date Components

ComponentFormatExample
Year4 digits2024
Month2 digits01–12
Day2 digits01–31
Hour2 digits00–23
Minutes2 digits00–59
Seconds2 digits00–59

Pagination

The endpoint supports standard pagination.
ParameterDescription
page_sizeNumber of records returned per request
page_numberPage index of the results
Example: page_size=100 page_number=1

Example Request

curl --request GET \
  --url "https://korastats.pro/pro/api.php?module=api&api=EntityTeams&version=V2&response=json&lang=en&page_size=100&page_number=1"
{
  "type": "object",
  "properties": {
    "root": {
      "type": "object",
      "properties": {
        "result": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "object": {
          "type": "object",
          "properties": {
            "total_records": {
              "type": "integer",
              "description": "Total number of teams matching the query."
            },
            "current_records": {
              "type": "integer",
              "description": "Number of teams returned in this page."
            },
            "pages": {
              "type": "integer",
              "description": "Total number of pages available."
            },
            "current_page": {
              "type": "integer",
              "description": "Current page number."
            },
            "Data": {
              "type": "array",
              "description": "List of teams",
              "items": {
                "type": "object",
                "properties": {
                  "_type": {
                    "type": "string"
                  },
                  "id": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  },
                  "club": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer"
                      },
                      "name": {
                        "type": "string"
                      },
                      "logo": {
                        "type": "string"
                      }
                    }
                  },
                  "stadium": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer"
                      },
                      "name": {
                        "type": "string"
                      }
                    }
                  },
                  "coach": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer"
                      },
                      "name": {
                        "type": "string"
                      }
                    }
                  },
                  "gender": {
                    "type": "string"
                  },
                  "is_national_team": {
                    "type": "boolean"
                  },
                  "image": {
                    "type": "string",
                    "description": "Team image or club logo URL."
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}