Skip to main content
POST
Reference example

Request contract

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

Cost and request rules

Usage-based pricing. Default request estimate: $0.000367 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
h2h
string
required

Team IDs in 'ID-ID' format for head-to-head comparison, e.g., '132-134'

Pattern: ^\d+-\d+$
Example:

"132-134"

date
string

Filter games by a specific date in YYYY-MM-DD format

Example:

"2019-12-05"

league
integer

The ID of the league to filter games

season
integer

The four-digit season year of the league (YYYY)

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

2021

timezone
string

Specify IANA timezone for game dates, e.g., 'Europe/London'

Example:

"Europe/London"

Response

Tool result data

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