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
  • Runtime facts: 79c3a316fdeba0e2a5966a14b3bd8b262de8099a119b3fcdb47de874db1aed3e
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based billing; Default request estimate: $0.000384 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.000384
  • Declared unit rate (USD): 1e-06
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 10000000
  • Settlement evidence source: response_body

Authorizations

Authorization
string
header
required

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

Body

application/json
id
integer

League ID to filter by

Example:

39

code
string

Alpha code of the country (2 to 6 chars)

Required string length: 2 - 6
Example:

"GB"

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"

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"

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

country
string

Country name of the competition

Example:

"England"

current
boolean

Return only currently active competitions (true/false)

Response

Tool result data

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