跳转到主要内容
POST
Get Leagues

请求规范

  • 方法与路径: POST /apis/v1/api-sports/get-leagues
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/api-sports/get-leagues
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.000384 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

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

请求体

application/json
code
string

Alpha code of the country (2 to 6 chars)

Required string length: 2 - 6
示例:

"GB"

country
string

Country name of the competition

示例:

"England"

current
boolean

Return only currently active competitions (true/false)

id
integer

League ID to filter by

示例:

39

last
integer

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

必填范围: 1 <= x <= 99
示例:

5

name
string

Name of the league or cup

示例:

"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
示例:

"premier"

season
integer

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

必填范围: 1000 <= x <= 9999
示例:

2021

team
integer

Team ID to filter leagues in which the team has played

示例:

33

type
enum<string>

Competition type: 'league' or 'cup'

可用选项:
league,
cup
示例:

"league"

响应

Tool result data

errors
必填
get
string
必填
paging
object
必填
parameters
必填
response
object[]
必填
results
integer
必填