Skip to main content
POST
Get Leagues

Request contract

  • Method and path: POST /apis/v1/api-sports/get-leagues
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-sports/get-leagues
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.000384 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
code
string

Alpha code of the country (2 to 6 chars)

Required string length: 2 - 6
Example:

"GB"

country
string

Country name of the competition

Example:

"England"

current
boolean

Return only currently active competitions (true/false)

id
integer

League ID to filter by

Example:

39

last
integer

Number of most recently added leagues or cups to return (1 to 99)

Required range: 1 <= x <= 99
Example:

5

name
string

Name of the league or cup

Example:

"Premier League"

Search term for league name or country (min 3 chars) Cannot be combined with country in the same request.

Minimum string length: 3
Example:

"premier"

season
integer

4-digit season year (e.g., 2021)

Required range: 1000 <= x <= 9999
Example:

2021

team
integer

Team ID to filter leagues in which the team has played

Example:

33

type
enum<string>

Competition type: 'league' or 'cup'

Available options:
league,
cup
Example:

"league"

Response

Tool result data

errors
required
get
string
required
paging
object
required
parameters
required
response
object[]
required
results
integer
required