跳转到主要内容
POST
Search One-Way Fares

请求规范

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

费用与请求规则

按用量计费;默认请求预估费用:$0.0023 USD(不是固定价格)。 声明的单位费率:每 provider_credit $0.000001 USD。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。
  • 默认请求参考估价(USD): 0.0023
  • 声明的单位费率(USD): 1e-06
  • 计费单位: provider_credit
  • 计费依据: response_units
  • 公开参考倍率: 1.0
  • 声明的最大计数或单位数: 10000000
  • 结算证据来源: response_body

授权

Authorization
string
header
必填

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

请求体

application/json
market
enum<string>
必填

Supported country market controlling fare availability and currency.

可用选项:
US
origin
string
必填

Departure airport or supported metro IATA code, such as SFO or LON.

Required string length: 3
Pattern: ^[A-Z]{3}$
示例:

"SFO"

destination
string
必填

Arrival airport or supported metro IATA code, such as JFK or PAR.

Required string length: 3
Pattern: ^[A-Z]{3}$
示例:

"JFK"

departure_date
string<date>
必填

Departure date in YYYY-MM-DD format; cannot be in the past.

示例:

"2026-11-09"

adults
integer
默认值:1

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

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

Number of child passengers.

必填范围: x >= 0
max_price
integer

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

必填范围: x >= 0
max_stops
integer

Maximum stops; omit to allow any number.

必填范围: 0 <= x <= 2
cabin_class
enum<string>
默认值:economy

Requested cabin class.

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

Number of lap infants; cannot exceed the adult count.

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

Number of infants occupying seats.

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

Exclude these 2-character uppercase airline codes; cannot overlap airlines_include.

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

Only include these 2-character uppercase airline codes; cannot overlap airlines_exclude.

Minimum array length: 1
示例:
min_checked_bags
integer

Minimum included checked bags.

必填范围: x >= 0
min_carry_on_bags
integer

Minimum included carry-on bags.

必填范围: x >= 0
allow_self_transfer
boolean
默认值:true

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

departure_time_range
object

Optional local-hour bounds. Departure hours use origin local time and arrival hours use destination local time.

响应

Tool result data

origin
string
必填
destination
string
必填
itineraries
object[]
必填
departure_date
string
必填
cache_hit
boolean | null
observed_at
string | null