比价搜索
Atlas API 比价搜索端点参考,用于检索和比较可用航班报价,支持后续报价或预订决策。
此 API 的功能
请求兼容性
如何读取响应
当存在结果时
当不存在结果时
noResultReason
noResultReason原因代码
recentFlightDates 如何工作
recentFlightDates 如何工作API 级别错误
集成指导
Expected response media type. Use application/json.
application/jsonRequest body media type. Use application/json.
application/jsonEnable gzip response compression when supported.
gzipAtlas client ID. The server uses this value as the request customer identifier.
JWC21872_api_1Atlas client secret for authentication. Use the secret assigned to the client ID.
w(s5VY8[qAT!vwcXa}DC%4O2$f5mY7sLTrip type. 1 = one-way, 2 = round trip. retDate is required when tripType = 2.
2Possible values: Client-side request identifier for tracing and troubleshooting. Optional but recommended.
pc-20260222-0001Adult passenger count. Must be at least 1. adultNum + childNum cannot exceed 9.
0Example: 1Child passenger count. adultNum + childNum cannot exceed 9.
0Example: 0Infant passenger count. Cannot exceed the adult passenger count.
0Example: 0Departure city or airport IATA code in uppercase. If an airport code is supplied here, results are filtered by that airport.
KULOptional departure airport IATA code. Leave empty when fromCity already represents the desired city/airport filter.
Arrival city or airport IATA code in uppercase. If an airport code is supplied here, results are filtered by that airport.
BKIOptional arrival airport IATA code. Leave empty when toCity already represents the desired city/airport filter.
Departure date in YYYYMMDD format.
20260222Pattern: ^\d{8}$Return date in YYYYMMDD format. Required for round-trip searches; use null or omit for one-way searches.
20260222Pattern: ^\d{8}$Airline IATA code filter in uppercase. The response only contains flights operated/marketed by the specified airlines when supplied.
["OD"]Optional outbound flight-number filter. Use one string per candidate itinerary. For connecting flights, join segment flight numbers with a comma, e.g. OD1001,OD1002.
["OD1001"]Optional return flight-number filter. For connecting flights, join segment flight numbers with a comma.
["OD1002"]Whether to return multiple fare families for the same flight. false returns the lowest fare per flight by default.
falseExample: falseOptional settlement currency in ISO 4217 format. Use only when the client has multiple settlement currencies configured with Atlas.
USDOptional display currency in ISO 4217 format. Display-currency amounts are for presentation only and should not be used for settlement or accounting.
USDOptional client-side expected maximum response time in milliseconds. Actual timeout is also controlled by Atlas configuration.
30000Optional requested checked baggage pieces used for filtering or pricing when supported.
1Optional requested checked baggage weight in kilograms used for filtering or pricing when supported.
20Traffic source label, e.g. Google Flights, Organic Search, or SkyScanner. Used for analytics and traffic governance.
SkyScannerOptional client channel label used for reporting and traffic segmentation.
APIOptional primary channel label used for reporting and traffic segmentation.
METAOptional secondary channel identifier used for reporting and traffic segmentation.
skyscanner-usOptional resident discount code when an airline or market supports resident fares.
MYSuccessful HTTP response. Business success or failure is indicated by the status field in the response body.
Business status code. 0 means success. Common non-zero values:
100: Missing required request data.101: Illegal request data or invalid format.102: Illegal request parameter.105: OD is not in the client's round-trip whitelist.106: Search is not allowed for this client.107: Insufficient balance.108: Route is restricted or blocked by system limitations.109: Search limit exceeded. For price compare, this may also mean daily quota exceeded.110: Too many concurrent requests.111: Real-time search is not allowed.112: Search timed out.113: Airline is under maintenance in Atlas.114: No flights present.116: Search data was not captured.123: Too many requests but too few paid orders.124: Unsupported settlement currency.126:requestIddoes not exist or request is already ended.900: Unauthorized access.9999: Internal system error.
Business message. Usually success or null for successful responses; contains the error message when status is non-zero.
Atlas request identifier returned for tracing. May be absent when the request fails before request initialization.
ATLAS-20260222-000001Echo of the client request identifier when provided.
pc-20260222-0001Whether the smart-search process has completed for this synchronous response.
trueSuccessful HTTP response. Business success or failure is indicated by the status field in the response body.
Last updated
Was this helpful?

