跳转到主要内容
POST
Search Flexible Fares

请求规范

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

费用与请求规则

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

授权

Authorization
string
header
必填

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

请求体

application/json
legs
object[]
必填

One or two ordered trip legs in chronological date order. Use airport or supported metro IATA codes. Itinerary segments identify concrete airports.

Required array length: 1 - 2 elements
market
enum<string>
必填

Provider-supported ISO 3166-1 alpha-2 market controlling availability and currency.

可用选项:
US
adults
integer
默认值:1

Number of adult passengers; total passengers across all categories cannot exceed 9.

必填范围: x >= 1
airlines_exclude
string[]

Non-empty list of 2-character uppercase airline codes to exclude; cannot overlap airlines_include.

Minimum array length: 1
示例:
airlines_include
string[]

Non-empty list of 2-character uppercase airline codes to include exclusively; cannot overlap airlines_exclude.

Minimum array length: 1
示例:
allow_self_transfer
boolean
默认值:true

Allow identifiable self-transfers. False is a best-effort filter, not a guarantee of a protected through-ticket.

cabin_class
enum<string>
默认值:economy

Requested cabin class.

可用选项:
economy,
premium_economy,
business,
first
children
integer
默认值:0

Number of child passengers.

必填范围: x >= 0
infants_in_seat
integer
默认值:0

Number of infants occupying seats.

必填范围: x >= 0
infants_on_lap
integer
默认值:0

Number of lap infants; cannot exceed the adult count.

必填范围: x >= 0
max_price
integer

Strict maximum total price in the selected market's currency.

必填范围: x >= 0
min_carry_on_bags
integer

Minimum number of included carry-on bags.

必填范围: x >= 0
min_checked_bags
integer

Minimum number of included checked bags.

必填范围: x >= 0

响应

Tool result data

itineraries
object[]
必填
legs
object[]
必填
cache_hit
boolean | null
observed_at
string | null