Skip to content

最后更新

更新日志

Kiwi.com API

正常只读

搜索并比较 Kiwi.com 上的航班:返回带实时价格、航空公司、航线和起降时间的行程,还可查询地点和航线。 来源: www.kiwi.com.

基础 URL
https://api.maviapi.com/v1/sites/kiwi
11
端点
1 h ago
最近验证
100%
可用率 / 7 天
960ms
p50 延迟
GET/search5 credits per call

搜索

查询某一出发日(及可选返程日)的航班行程:价格、航空公司、航段、当地时间和 UTC 时间以及预订链接,按 kiwi.com 的排序返回(每次搜索最多 25 个)。

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
stringOptionalin query

origin: place name, IATA code or Kiwi id (london, LHR, City:london_gb).

stringOptionalin query

destination: place name, IATA code or Kiwi id.

stringOptionalin query

outbound departure date, YYYY-MM-DD; defaults to 30 days from today. A past date gives an empty list.

stringOptionalin query

inbound departure date, YYYY-MM-DD; set it for a round trip, omit for one-way.

integerOptionalin query

adult passengers (1-9).

integerOptionalin query

child passengers (0-9).

integerOptionalin query

infant passengers (0-9, at most one per adult).

stringOptionalin query

cabin class.

stringOptionalin query

result ordering: QUALITY, PRICE or DURATION.

stringOptionalin query

price currency (ISO code).

searchobject9 fields
fromobject4 fields
inputstringe.g."london"
idstringe.g."City:london_gb"
namestringe.g."London"
codestringe.g."LON"
toobject4 fields
inputstringe.g."istanbul"
idstringe.g."City:istanbul_tr"
namestringe.g."Istanbul"
codestringe.g."IST"
datestringe.g."2026-12-27"
return_datenull
trip_typestringe.g."oneway"
passengersobject3 fields
adultsintegere.g.1
childrenintegere.g.0
infantsintegere.g.0
cabinstringe.g."ECONOMY"
sortstringe.g."QUALITY"
currencystringe.g."EUR"
totalintegere.g.25
countintegere.g.25
itinerariesobject[]9 fields
idstringe.g."ItineraryOneWay:eyJwcm92aWRlcnMiOiJLSVdJLUJBU0lDOktJV0kiLCJyb3V0ZV9kYXRhIjoiVkY6MTk5MDpTVE46MTc5ODM4NjAwMDpTQVc6MTc5ODQwMDEwMDplY29ub215OkZhbHNlOjo6VkYiLCJwcmljZSI6IjExOCJ9"
typestringe.g."oneway"
priceobject2 fields
amountintegere.g.118
currencystringe.g."EUR"
price_eurintegere.g.118
duration_secondsintegere.g.14100
providerstringe.g."Kiwi.com"
booking_urlstringe.g."https://www.kiwi.com/en/booking/?direct=true&locale=en&currency=eur&passengers=1-0-0&token=HA4-FnJWszIzt3_rKlYLhY1BKbwyV2_TY5aMM7Bgxq7OtWpca5XaUs5hxSGvlg8EEJNDcrOpPHfD23K-oqZ8NnLPx3nd7QuvrncJTyEp2WEluP7zfQ-7sutHlAcPjcL6Qbrc2O_Ih6LlFqB31lw9RZbpUjyYlubn0-T2a2bznfLaNJW_5bWtjveFSSisO-30dPEdA3CeGYRPLOd0O6PNFPZUEzWeoH3wM4e_lr2ec6A2pBlEzUOxUcL_6J8-hs32D1UxPitumY2RHHvGjyjmMCMfnmkN3ZOSaLh-j92D2yooM3vJW_uXR0VBpWDby4iZEmBHP7yKXq7fgrV1jjK3Gz7EXKz8cxflYQDMVLSh7ugvtsRqv2v3IkqeudiTzvsdOn0jXO3-n9oznjadBXL9PEseVBPpWJjYdqBxHZjlg_pzSj9_gOqX5bfX5v9D72S2ffMm5aXsyCsgGnhhZt3I9UlqDCUz9EabkWx153JyHwUWoZMYw3T6JK2OA2NNiPkhTenzNIXbgOyfwG7DLkZxGkm_D3Jzix05WSGB74ydT_y2M7ineIclpqshi11DHroqXx2hiu1wkzHm6W_CB6gChetehhK7b5OzP_zC5W_y4TNCpfUUp3hqvQa6JUa0o5UfbD43ExlMBMcXc-DMqZq28xIUeTRvZkHxZs-uE2BwdqMgPPgPM3Ky9Zt6q9jDulQoCCHmhiHgdIG9LGMYaH9aB9FUZuULdgPgep6bLBx2F5Qx0YLTUb5en5xx4QCpSc7qM2TYDwTYHQ9MwibSt658lUHxRKoISGWz6qXzrPltbKgvZWGEJJrMmsg5CdCMG-BVd_6RiISJbYOWNciEpM0fCCxn9-KW79zS1eKNl96JBV1YGyg_mGtfxA34Ea0QEy14XvGznZjPUOQyZ5dkwRt7U7GgVPs17MKV5V3_d7FErFAQHcrZQ_R_4OtJrGe0KCoX7watxE0jfhLKRIZHgNOHfXVBzxlymG-ntblANaPJQWUBKBcon-d5fvM6SFTBY4o4MR9vzQdq39v41B-RtzOCqvcXVmhz_h1K8URMhWgUyijVhu7prreIuTGhNx1UmNxJO2Fa4cpU9t9Az0Za0zfn29sL5RnOkicqh3Q2SaaBTeh0%3D&searchType=oneWay&searchBags=0.0"
outboundobject6 fields
duration_secondsintegere.g.14100
stopsintegere.g.0
segmentsobject[]8 fields
flight_numberstringe.g."1990"
carrierobject2 fields
namestringe.g."AJet"
codestringe.g."VF"
operating_carrierobject2 fields
namestringe.g."AJet"
codestringe.g."VF"
cabinstringe.g."ECONOMY"
duration_secondsintegere.g.14100
fromobject6 fields
airportstringe.g."London Stansted"
codestringe.g."STN"
citystringe.g."London"
countrystringe.g."United Kingdom"
local_timestringe.g."2026-12-27T15:40:00+00:00"
utc_timestringe.g."2026-12-27T15:40:00Z"
toobject6 fields
airportstringe.g."Sabiha Gökçen International"
codestringe.g."SAW"
citystringe.g."Istanbul"
countrystringe.g."Turkey"
local_timestringe.g."2026-12-27T22:35:00+03:00"
utc_timestringe.g."2026-12-27T19:35:00Z"
layover_secondsnull
fromobject6 fields
airportstringe.g."London Stansted"
codestringe.g."STN"
citystringe.g."London"
countrystringe.g."United Kingdom"
local_timestringe.g."2026-12-27T15:40:00+00:00"
utc_timestringe.g."2026-12-27T15:40:00Z"
toobject6 fields
airportstringe.g."Sabiha Gökçen International"
codestringe.g."SAW"
citystringe.g."Istanbul"
countrystringe.g."Turkey"
local_timestringe.g."2026-12-27T22:35:00+03:00"
utc_timestringe.g."2026-12-27T19:35:00Z"
airlinesstring[]
inboundnull
paginationobject3 fields
countintegere.g.25
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-27T17:57:24.922Z"
ageintegere.g.0
Try itLive
GET
https://api.maviapi.com/v1/sites/kiwi/search?from=london&to=istanbul&adults=1&children=0&infants=0&cabin=ECONOMY&sort=QUALITY&currency=eur
Request
curl "https://api.maviapi.com/v1/sites/kiwi/search?from=london&to=istanbul&adults=1&children=0&infants=0&cabin=ECONOMY&sort=QUALITY&currency=eur" \
-H "Authorization: Bearer $MAVI_KEY"
Example3.8 KB
{
  "search": {
    "from": {
      "input": "london",
      "id": "City:london_gb",
      "name": "London",
      "code": "LON"
    },
    "to": {
      "input": "istanbul",
      "id": "City:istanbul_tr",
      "name": "Istanbul",
      "code": "IST"
    },
    "date": "2026-12-27",
    "return_date": null,
    "trip_type": "oneway",
    "passengers": {
      "adults": 1,
      "children": 0,
      "infants": 0
    },
    "cabin": "ECONOMY",
    "sort": "QUALITY",
    "currency": "EUR"
  },
  "total": 25,
  "count": 25,
  "itineraries": [
    {
      "id": "ItineraryOneWay:eyJwcm92aWRlcnMiOiJLSVdJLUJBU0lDOktJV0kiLCJyb3V0ZV9kYXRhIjoiVkY6MTk5MDpTVE46MTc5ODM4NjAwMDpTQVc6MTc5ODQwMDEwMDplY29ub215OkZhbHNlOjo6VkYiLCJwcmljZSI6IjExOCJ9",
      "type": "oneway",
      "price": {
        "amount": 118,
        "currency": "EUR"
      },
      "price_eur": 118,
      "duration_seconds": 14100,
      "provider": "Kiwi.com",
      "booking_url": "https://www.kiwi.com/en/booking/?direct=true&locale=en&currency=eur&passengers=1-0-0&token=HA4-FnJWszIzt3_rKlYLhY1BKbwyV2_TY5aMM7Bgxq7OtWpca5XaUs5hxSGvlg8EEJNDcrOpPHfD23K-oqZ8NnLPx3nd7QuvrncJTyEp2WEluP7zfQ-7sutHlAcPjcL6Qbrc2O_Ih6LlFqB31lw9RZbpUjyYlubn0-T2a2bznfLaNJW_5bWtjveFSSisO-30dPEdA3CeGYRPLOd0O6PNFPZUEzWeoH3wM4e_lr2ec6A2pBlEzUOxUcL_6J8-hs32D1UxPitumY2RHHvGjyjmMCMfnmkN3ZOSaLh-j92D2yooM3vJW_uXR0VBpWDby4iZEmBHP7yKXq7fgrV1jjK3Gz7EXKz8cxflYQDMVLSh7ugvtsRqv2v3IkqeudiTzvsdOn0jXO3-n9oznjadBXL9PEseVBPpWJjYdqBxHZjlg_pzSj9_gOqX5bfX5v9D72S2ffMm5aXsyCsgGnhhZt3I9UlqDCUz9EabkWx153JyHwUWoZMYw3T6JK2OA2NNiPkhTenzNIXbgOyfwG7DLkZxGkm_D3Jzix05WSGB74ydT_y2M7ineIclpqshi11DHroqXx2hiu1wkzHm6W_CB6gChetehhK7b5OzP_zC5W_y4TNCpfUUp3hqvQa6JUa0o5UfbD43ExlMBMcXc-DMqZq28xIUeTRvZkHxZs-uE2BwdqMgPPgPM3Ky9Zt6q9jDulQoCCHmhiHgdIG9LGMYaH9aB9FUZuULdgPgep6bLBx2F5Qx0YLTUb5en5xx4QCpSc7qM2TYDwTYHQ9MwibSt658lUHxRKoISGWz6qXzrPltbKgvZWGEJJrMmsg5CdCMG-BVd_6RiISJbYOWNciEpM0fCCxn9-KW79zS1eKNl96JBV1YGyg_mGtfxA34Ea0QEy14XvGznZjPUOQyZ5dkwRt7U7GgVPs17MKV5V3_d7FErFAQHcrZQ_R_4OtJrGe0KCoX7watxE0jfhLKRIZHgNOHfXVBzxlymG-ntblANaPJQWUBKBcon-d5fvM6SFTBY4o4MR9vzQdq39v41B-RtzOCqvcXVmhz_h1K8URMhWgUyijVhu7prreIuTGhNx1UmNxJO2Fa4cpU9t9Az0Za0zfn29sL5RnOkicqh3Q2SaaBTeh0%3D&searchType=oneWay&searchBags=0.0",
      "outbound": {
        "duration_seconds": 14100,
        "stops": 0,
        "segments": [
          {
            "flight_number": "1990",
            "carrier": {
              "name": null,
              "code": null
            },
            "operating_carrier": {
              "name": null,
              "code": null
            },
            "cabin": "ECONOMY",
            "duration_seconds": 14100,
            "from": {
              "airport": null,
              "code": null,
              "city": null,
              "country": null,
              "local_time": null,
              "utc_time": null
            },
            "to": {
              "airport": null,
              "code": null,
              "city": null,
              "country": null,
              "local_time": null,
              "utc_time": null
            },
            "layover_seconds": null
          }
        ],
        "from": {
          "airport": "London Stansted",
          "code": "STN",
          "city": "London",
          "country": "United Kingdom",
          "local_time": "2026-12-27T15:40:00+00:00",
          "utc_time": "2026-12-27T15:40:00Z"
        },
        "to": {
          "airport": "Sabiha Gökçen International",
          "code": "SAW",
          "city": "Istanbul",
          "country": "Turkey",
          "local_time": "2026-12-27T22:35:00+03:00",
          "utc_time": "2026-12-27T19:35:00Z"
        },
        "airlines": [
          "VF"
        ]
      },
      "inbound": null
    }
  ],
  "pagination": {
    "count": 25,
    "has_more": false,
    "next_cursor": null
  },
  "fetched_at": "2026-11-27T17:57:24.922Z",
  "age": 0
}

Get all the data, no code

Collect every page of GET /search into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.

Use Kiwi.com API from Claude, ChatGPT and your coding tools

Add this URL as a custom connector and sign in to maviapi. Nothing to install.

How to connect
https://mcp.maviapi.com/mcp

Or run it locally, with each endpoint of Kiwi.com API as its own tool:

claude mcp add maviapi -e MAVIAPI_TOOLS=kiwi -- npx -y '@maviapi/mcp'

Import Kiwi.com API into Postman and other tools

How to import

Paste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.

  • OpenAPI 3.1
    https://api.maviapi.com/v1/apis/kiwi/openapi.json
  • Postman
    https://api.maviapi.com/v1/apis/kiwi/postman.json

The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.

使用 Kiwi.com API 进行开发

选择一个端点开始

  • 搜索 GET /search

    查询某一出发日(及可选返程日)的航班行程:价格、航空公司、航段、当地时间和 UTC 时间以及预订链接,按 kiwi.com 的排序返回(每次搜索最多 25 个)。

    GET /search 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    fromstring / query否origin: place name, IATA code or Kiwi id (london, LHR, City:london_gb).
    tostring / query否destination: place name, IATA code or Kiwi id.
    datestring / query否outbound departure date, YYYY-MM-DD; defaults to 30 days from today. A past date gives an empty list.
    return_datestring / query否inbound departure date, YYYY-MM-DD; set it for a round trip, omit for one-way.
    adultsinteger / query否adult passengers (1-9).
    childreninteger / query否child passengers (0-9).
    infantsinteger / query否infant passengers (0-9, at most one per adult).
    cabinstring / query否cabin class. 可选值: ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST.
    sortstring / query否result ordering: QUALITY, PRICE or DURATION. 可选值: QUALITY, PRICE, DURATION.
    currencystring / query否price currency (ISO code).
    响应字段
    字段类型说明
    searchobject
    search.fromobject
    search.from.inputstring
    search.from.idstring
    search.from.namestring
    search.from.codestring
    search.toobject
    search.to.inputstring
    search.to.idstring
    search.to.namestring
    search.to.codestring
    search.datestring
    search.return_datenull
    search.trip_typestring
    search.passengersobject
    search.passengers.adultsinteger
    search.passengers.childreninteger
    search.passengers.infantsinteger
    search.cabinstring
    search.sortstring
    search.currencystring
    totalinteger
    countinteger
    itinerariesobject[]
    itineraries[].idstring
    itineraries[].typestring
    itineraries[].priceobject
    itineraries[].price.amountinteger
    itineraries[].price.currencystring
    itineraries[].price_eurinteger
    itineraries[].duration_secondsinteger
    itineraries[].providerstring
    itineraries[].booking_urlstring
    itineraries[].outboundobject
    itineraries[].outbound.duration_secondsinteger
    itineraries[].outbound.stopsinteger
    itineraries[].outbound.segmentsobject[]
    itineraries[].outbound.segments[].flight_numberstring
    itineraries[].outbound.segments[].carrierobject
    itineraries[].outbound.segments[].carrier.namestring
    itineraries[].outbound.segments[].carrier.codestring
    itineraries[].outbound.segments[].operating_carrierobject
    itineraries[].outbound.segments[].operating_carrier.namestring
    itineraries[].outbound.segments[].operating_carrier.codestring
    itineraries[].outbound.segments[].cabinstring
    itineraries[].outbound.segments[].duration_secondsinteger
    itineraries[].outbound.segments[].fromobject
    itineraries[].outbound.segments[].from.airportstring
    itineraries[].outbound.segments[].from.codestring
    itineraries[].outbound.segments[].from.citystring
    itineraries[].outbound.segments[].from.countrystring
    itineraries[].outbound.segments[].from.local_timestring
    itineraries[].outbound.segments[].from.utc_timestring
    itineraries[].outbound.segments[].toobject
    itineraries[].outbound.segments[].to.airportstring
    itineraries[].outbound.segments[].to.codestring
    itineraries[].outbound.segments[].to.citystring
    itineraries[].outbound.segments[].to.countrystring
    itineraries[].outbound.segments[].to.local_timestring
    itineraries[].outbound.segments[].to.utc_timestring
    itineraries[].outbound.segments[].layover_secondsnull
    itineraries[].outbound.fromobject
    itineraries[].outbound.from.airportstring
    itineraries[].outbound.from.codestring
    itineraries[].outbound.from.citystring
    itineraries[].outbound.from.countrystring
    itineraries[].outbound.from.local_timestring
    itineraries[].outbound.from.utc_timestring
    itineraries[].outbound.toobject
    itineraries[].outbound.to.airportstring
    itineraries[].outbound.to.codestring
    itineraries[].outbound.to.citystring
    itineraries[].outbound.to.countrystring
    itineraries[].outbound.to.local_timestring
    itineraries[].outbound.to.utc_timestring
    itineraries[].outbound.airlinesstring[]
    itineraries[].inboundnull
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 地点搜索 V2 GET /places-v2

    按名称或代码匹配所有类型的 Kiwi 地点,最佳匹配在前;每行包含所属国家和用于航班搜索的 search_id。

    GET /places-v2 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    qstring / query否place name or code (case and accent insensitive).
    typestring / query否optional filter, one type or a comma list of city, airport, country, subdivision, region, continent, autonomous_territory, special, tourist_region. Omit for every type.
    响应字段
    字段类型说明
    querystring
    typesstring
    totalinteger
    capinteger
    cappedboolean
    countinteger
    placesobject[]
    places[].idstring
    places[].search_idstring
    places[].namestring
    places[].codestring
    places[].typestring
    places[].slugstring
    places[].cityobject
    places[].city.idstring
    places[].city.namestring
    places[].subdivisionnull
    places[].countryobject
    places[].country.codestring
    places[].country.namestring
    places[].regionstring
    places[].continentstring
    places[].timezonestring
    places[].populationnull
    places[].airportsnull
    places[].coordinatesobject
    places[].coordinates.latnumber
    places[].coordinates.lonnumber
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 搜索 V2 GET /search-v2

    按出发(及可选的返程)日期窗口查询航班行程,包含价格、航段、航空公司、当地时间和 UTC 时间以及预订链接。列表最多包含 cap(50)个行程,按 sort 排序;若 kiwi.com 上该搜索的结果多于返回数量,capped 为 true,此时可缩小搜索范围(日期、地点、价格、经停次数)查看其余结果。

    GET /search-v2 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    fromstring / query否origin. A 3-letter upper-case code is an airport, searched together with the other airports of its metro area as kiwi.com does (IST also finds SAW), else a metro city code such as LON; an upper-case 2-letter code a country (else a continent such as EU); otherwise a name of any place type (city, airport, subdivision, country, region, continent), case and accent insensitive, or a search id from /places-v2 (Airport:CRL, Country:TR). Unclear or unknown values answer 400 with candidates.
    tostring / query否destination, same rules as from, plus 'anywhere'.
    date_fromstring / query否start of the departure window, YYYY-MM-DD; defaults to 30 days from today.
    date_tostring / query否end of the departure window, YYYY-MM-DD, inclusive; defaults to date_from.
    return_fromstring / query否start of the return window, YYYY-MM-DD; set it for a round trip, omit for one-way.
    return_tostring / query否end of the return window, YYYY-MM-DD, inclusive; defaults to return_from.
    min_pricestring / query否lowest total price, in currency.
    max_pricestring / query否highest total price, in currency.
    max_stopsstring / query否most stops per leg (0 = direct only); omit for any.
    adultsinteger / query否adult passengers (1-9).
    childreninteger / query否child passengers (0-8).
    infantsinteger / query否infant passengers, at most one per adult.
    cabinstring / query否cabin class. 可选值: ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST.
    sortstring / query否order of the list: QUALITY (kiwi.com's best first, then the rest of what it has), PRICE (cheapest first) or DURATION (shortest first). 可选值: QUALITY, PRICE, DURATION.
    currencystring / query否price currency, 3-letter ISO code; min_price and max_price use it too.
    响应字段
    字段类型说明
    searchobject
    search.fromobject
    search.from.inputstring
    search.from.idstring
    search.from.namestring
    search.from.typestring
    search.from.codestring
    search.from.countrystring
    search.from.matched_bystring
    search.from.alternativesstring[]
    search.toobject
    search.to.inputstring
    search.to.idstring
    search.to.namestring
    search.to.typestring
    search.to.codestring
    search.to.countrynull
    search.to.matched_bystring
    search.to.alternativesstring[]
    search.date_fromstring
    search.date_tostring
    search.return_fromnull
    search.return_tonull
    search.trip_typestring
    search.min_pricenull
    search.max_pricenull
    search.max_stopsnull
    search.passengersobject
    search.passengers.adultsinteger
    search.passengers.childreninteger
    search.passengers.infantsinteger
    search.cabinstring
    search.sortstring
    search.currencystring
    totalinteger
    capinteger
    cappedboolean
    countinteger
    itinerariesobject[]
    itineraries[].idstring
    itineraries[].typestring
    itineraries[].priceobject
    itineraries[].price.amountinteger
    itineraries[].price.currencystring
    itineraries[].price_eurinteger
    itineraries[].duration_secondsinteger
    itineraries[].providerstring
    itineraries[].booking_urlstring
    itineraries[].outboundobject
    itineraries[].outbound.duration_secondsinteger
    itineraries[].outbound.stopsinteger
    itineraries[].outbound.segmentsobject[]
    itineraries[].outbound.segments[].flight_numberstring
    itineraries[].outbound.segments[].carrierobject
    itineraries[].outbound.segments[].carrier.namestring
    itineraries[].outbound.segments[].carrier.codestring
    itineraries[].outbound.segments[].operating_carrierobject
    itineraries[].outbound.segments[].operating_carrier.namestring
    itineraries[].outbound.segments[].operating_carrier.codestring
    itineraries[].outbound.segments[].cabinstring
    itineraries[].outbound.segments[].duration_secondsinteger
    itineraries[].outbound.segments[].fromobject
    itineraries[].outbound.segments[].from.airportstring
    itineraries[].outbound.segments[].from.codestring
    itineraries[].outbound.segments[].from.citystring
    itineraries[].outbound.segments[].from.countrystring
    itineraries[].outbound.segments[].from.local_timestring
    itineraries[].outbound.segments[].from.utc_timestring
    itineraries[].outbound.segments[].toobject
    itineraries[].outbound.segments[].to.airportstring
    itineraries[].outbound.segments[].to.codestring
    itineraries[].outbound.segments[].to.citystring
    itineraries[].outbound.segments[].to.countrystring
    itineraries[].outbound.segments[].to.local_timestring
    itineraries[].outbound.segments[].to.utc_timestring
    itineraries[].outbound.segments[].layover_secondsnull
    itineraries[].outbound.fromobject
    itineraries[].outbound.from.airportstring
    itineraries[].outbound.from.codestring
    itineraries[].outbound.from.citystring
    itineraries[].outbound.from.countrystring
    itineraries[].outbound.from.local_timestring
    itineraries[].outbound.from.utc_timestring
    itineraries[].outbound.toobject
    itineraries[].outbound.to.airportstring
    itineraries[].outbound.to.codestring
    itineraries[].outbound.to.citystring
    itineraries[].outbound.to.countrystring
    itineraries[].outbound.to.local_timestring
    itineraries[].outbound.to.utc_timestring
    itineraries[].outbound.airlinesstring[]
    itineraries[].inboundnull
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 地点详情 GET /places/{id}

    按 id 或代码获取单个 Kiwi 地点:名称、类型、代码、城市、国家、地区、大洲、时区、人口和坐标。

    GET /places/{id} 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    idstring / path是a Kiwi location id: an airport code (CRL), a city id (london_gb), a country code (GB), a subdivision (FL_US), a continent (europe), or a search id (Airport:CRL, City:london_gb).
    响应字段
    字段类型说明
    idstring
    search_idstring
    namestring
    codestring
    typestring
    slugstring
    cityobject
    city.idstring
    city.namestring
    subdivisionnull
    countryobject
    country.codestring
    country.namestring
    regionstring
    continentstring
    timezonestring
    populationnull
    airportsnull
    coordinatesobject
    coordinates.latnumber
    coordinates.lonnumber
    fetched_atstring
    ageinteger
  • 探索 GET /explore

    从某地出发飞往每个目的地城市的最便宜航班,类似 kiwi.com 的“任意目的地”搜索:每个城市一行,包含价格、出发和到达机场、当地时间和 UTC 时间,往返行程还包括停留晚数和返程日期。expand 会为前 N 个城市附加排名前 3 的完整行程。

    GET /explore 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    fromstring / query否origin. A 3-letter upper-case code is an airport (else a metro city code such as LON), an upper-case 2-letter code a country (else a continent such as EU); otherwise a name of any place type, case and accent insensitive, or a search id from /places-v2 (Airport:CRL, Country:TR). Unclear or unknown values answer 400 with candidates.
    tostring / query否optional broad scope for the destinations: a country, subdivision, region or continent (code, name or search id); 'anywhere' for every destination.
    date_fromstring / query否start of the departure window, YYYY-MM-DD; defaults to 30 days from today.
    date_tostring / query否end of the departure window, YYYY-MM-DD, inclusive; defaults to date_from.
    return_fromstring / query否start of the return window, YYYY-MM-DD; set it for a round trip, omit for one-way.
    return_tostring / query否end of the return window, YYYY-MM-DD, inclusive; defaults to return_from.
    min_pricestring / query否lowest price per destination, in currency.
    max_pricestring / query否highest price per destination, in currency.
    max_stopsstring / query否most stops per leg (0 = direct only); omit for any.
    adultsinteger / query否adult passengers (1-9).
    childreninteger / query否child passengers (0-8).
    infantsinteger / query否infant passengers, at most one per adult.
    sortstring / query否which flight represents each city and the order of the cities: PRICE (cheapest first), POPULARITY (kiwi.com's popular destinations first), QUALITY, DURATION or DATE. The set of cities differs a little per sort. 可选值: PRICE, POPULARITY, QUALITY, DURATION, DATE.
    currencystring / query否price currency, 3-letter ISO code; min_price and max_price use it too.
    expandinteger / query否attach the top 3 itineraries (segments, airlines, booking link) to the destinations ranked 1 to N; 0 = none.
    响应字段
    字段类型说明
    searchobject
    search.fromobject
    search.from.inputstring
    search.from.idstring
    search.from.namestring
    search.from.typestring
    search.from.codestring
    search.from.countrystring
    search.from.matched_bystring
    search.from.alternativesobject[]
    search.from.alternatives[].idstring
    search.from.alternatives[].namestring
    search.from.alternatives[].typestring
    search.from.alternatives[].codestring
    search.from.alternatives[].parentstring
    search.toobject
    search.to.inputstring
    search.to.idnull
    search.to.namestring
    search.to.typestring
    search.to.codenull
    search.to.countrynull
    search.to.matched_bystring
    search.to.alternativesstring[]
    search.date_fromstring
    search.date_tostring
    search.return_fromnull
    search.return_tonull
    search.trip_typestring
    search.min_pricenull
    search.max_pricenull
    search.max_stopsnull
    search.passengersobject
    search.passengers.adultsinteger
    search.passengers.childreninteger
    search.passengers.infantsinteger
    search.sortstring
    search.currencystring
    search.expandinteger
    totalinteger
    capinteger
    countinteger
    destinationsobject[]
    destinations[].rankinteger
    destinations[].citystring
    destinations[].city_idstring
    destinations[].search_idstring
    destinations[].countryobject
    destinations[].country.codestring
    destinations[].country.namestring
    destinations[].airportstring
    destinations[].airport_codestring
    destinations[].priceobject
    destinations[].price.amountinteger
    destinations[].price.currencystring
    destinations[].price_eurinteger
    destinations[].originobject
    destinations[].origin.airportstring
    destinations[].origin.codestring
    destinations[].origin.citystring
    destinations[].origin.city_idstring
    destinations[].origin.countryobject
    destinations[].origin.country.codestring
    destinations[].origin.country.namestring
    destinations[].departureobject
    destinations[].departure.local_timestring
    destinations[].departure.utc_timestring
    destinations[].arrivalobject
    destinations[].arrival.local_timestring
    destinations[].arrival.utc_timestring
    destinations[].nightsnull
    destinations[].return_departurenull
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 地点搜索 GET /places

    按名称或 IATA 代码匹配某一类型的 Kiwi 地点,最佳匹配在前。

    GET /places 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    qstring / query否search term (place name or IATA code).
    typestring / query否location type to search: city, airport, country, region or subdivision. 可选值: city, airport, country, region, subdivision.
    响应字段
    字段类型说明
    querystring
    typestring
    countinteger
    placesobject[]
    places[].idstring
    places[].namestring
    places[].codestring
    places[].typestring
    places[].slugstring
    places[].citynull
    places[].subdivisionstring
    places[].countryobject
    places[].country.codestring
    places[].country.namestring
    places[].regionstring
    places[].continentstring
    places[].timezonestring
    places[].populationinteger
    places[].airportsinteger
    places[].coordinatesobject
    places[].coordinates.latnumber
    places[].coordinates.lonnumber
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 航线 GET /routes

    从 Kiwi 的某个航线站点地图中获取已发布的城市对航线(特价机票页面),按站点地图中的顺序排列。

    GET /routes 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    pageinteger / query否which route sitemap to read, 0-based; Kiwi splits about 50k routes per file across many files.
    响应字段
    字段类型说明
    pageinteger
    sitemapstring
    countinteger
    routesobject[]
    routes[].urlstring
    routes[].localestring
    routes[].sourceobject
    routes[].source.slugstring
    routes[].source.namestring
    routes[].destinationobject
    routes[].destination.slugstring
    routes[].destination.namestring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • 搜索 V3 GET /search-v3

    返回 kiwi.com 上最多 3 个出发地到 3 个目的地之间、出发(及返程)日期窗口内的全部行程,支持设置当地出发和到达时间窗口。每个行程注明所匹配的出发地和目的地(origin、destination)、抓取时间及报价的过期时间;total_estimate 为行程总数,total_exact 表示底层搜索是否均未被截断。

    GET /search-v3 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    fromstring / query否origin: one place or a comma list of up to 3 (BRU,CRL or LON,STN). Each item: a 3-letter upper-case code is an airport (else a metro city code such as LON), an upper-case 2-letter code a country (else a continent); otherwise a name of any place type, case and accent insensitive, or a search id from /places-v2 (Airport:CRL). Names containing a comma need their search id. Unclear items answer 400 with candidates.
    tostring / query否destination: one place or a comma list of up to 3, same rules, or 'anywhere' alone.
    date_fromstring / query否start of the departure window, YYYY-MM-DD; defaults to 30 days from today.
    date_tostring / query否end of the departure window, YYYY-MM-DD, inclusive, at most 92 days after date_from; defaults to date_from.
    return_fromstring / query否start of the return window, YYYY-MM-DD; set it for a round trip, omit for one-way.
    return_tostring / query否end of the return window, YYYY-MM-DD, inclusive; defaults to return_from.
    departure_fromstring / query否earliest local departure time of the outbound leg, HH:MM, at the first departure airport.
    departure_tostring / query否latest local departure time of the outbound leg, HH:MM inclusive (up to 24:00). A window cannot cross midnight.
    arrival_fromstring / query否earliest local arrival time of the outbound leg, HH:MM, at the final arrival airport.
    arrival_tostring / query否latest local arrival time of the outbound leg, HH:MM inclusive (up to 24:00). A window cannot cross midnight.
    min_pricestring / query否lowest total price, in currency.
    max_pricestring / query否highest total price, in currency.
    max_stopsstring / query否most stops per leg (0 = direct only); omit for any.
    adultsinteger / query否adult passengers (1-9).
    childreninteger / query否child passengers (0-8).
    infantsinteger / query否infant passengers, at most one per adult.
    cabinstring / query否cabin class. 可选值: ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST.
    sortstring / query否PRICE or DURATION sort all itineraries; QUALITY keeps kiwi.com's ranking inside each part of the search (the best of each first), then price. 可选值: QUALITY, PRICE, DURATION.
    currencystring / query否price currency, 3-letter ISO code; min_price and max_price use it too.
    响应字段
    字段类型说明
    searchobject
    search.fromobject[]
    search.from[].inputstring
    search.from[].idstring
    search.from[].namestring
    search.from[].typestring
    search.from[].codestring
    search.from[].countrystring
    search.from[].matched_bystring
    search.from[].alternativesstring[]
    search.toobject[]
    search.to[].inputstring
    search.to[].idstring
    search.to[].namestring
    search.to[].typestring
    search.to[].codestring
    search.to[].countrystring
    search.to[].matched_bystring
    search.to[].alternativesstring[]
    search.date_fromstring
    search.date_tostring
    search.return_fromnull
    search.return_tonull
    search.trip_typestring
    search.departure_windownull
    search.arrival_windownull
    search.min_pricenull
    search.max_pricenull
    search.max_stopsnull
    search.passengersobject
    search.passengers.adultsinteger
    search.passengers.childreninteger
    search.passengers.infantsinteger
    search.cabinstring
    search.sortstring
    search.currencystring
    total_estimateinteger
    total_exactboolean
    upstream_searchesinteger
    max_upstream_searchesinteger
    failed_searchesinteger
    quote_ttl_secondsinteger
    countinteger
    itinerariesobject[]
    itineraries[].idstring
    itineraries[].typestring
    itineraries[].priceobject
    itineraries[].price.amountinteger
    itineraries[].price.currencystring
    itineraries[].price_eurinteger
    itineraries[].duration_secondsinteger
    itineraries[].providerstring
    itineraries[].booking_urlstring
    itineraries[].outboundobject
    itineraries[].outbound.duration_secondsinteger
    itineraries[].outbound.stopsinteger
    itineraries[].outbound.segmentsobject[]
    itineraries[].outbound.segments[].flight_numberstring
    itineraries[].outbound.segments[].carrierobject
    itineraries[].outbound.segments[].carrier.namestring
    itineraries[].outbound.segments[].carrier.codestring
    itineraries[].outbound.segments[].operating_carrierobject
    itineraries[].outbound.segments[].operating_carrier.namestring
    itineraries[].outbound.segments[].operating_carrier.codestring
    itineraries[].outbound.segments[].cabinstring
    itineraries[].outbound.segments[].duration_secondsinteger
    itineraries[].outbound.segments[].fromobject
    itineraries[].outbound.segments[].from.airportstring
    itineraries[].outbound.segments[].from.codestring
    itineraries[].outbound.segments[].from.citystring
    itineraries[].outbound.segments[].from.countrystring
    itineraries[].outbound.segments[].from.local_timestring
    itineraries[].outbound.segments[].from.utc_timestring
    itineraries[].outbound.segments[].from.timestring
    itineraries[].outbound.segments[].toobject
    itineraries[].outbound.segments[].to.airportstring
    itineraries[].outbound.segments[].to.codestring
    itineraries[].outbound.segments[].to.citystring
    itineraries[].outbound.segments[].to.countrystring
    itineraries[].outbound.segments[].to.local_timestring
    itineraries[].outbound.segments[].to.utc_timestring
    itineraries[].outbound.segments[].to.timestring
    itineraries[].outbound.segments[].layover_secondsnull
    itineraries[].outbound.fromobject
    itineraries[].outbound.from.airportstring
    itineraries[].outbound.from.codestring
    itineraries[].outbound.from.citystring
    itineraries[].outbound.from.countrystring
    itineraries[].outbound.from.local_timestring
    itineraries[].outbound.from.utc_timestring
    itineraries[].outbound.from.timestring
    itineraries[].outbound.toobject
    itineraries[].outbound.to.airportstring
    itineraries[].outbound.to.codestring
    itineraries[].outbound.to.citystring
    itineraries[].outbound.to.countrystring
    itineraries[].outbound.to.local_timestring
    itineraries[].outbound.to.utc_timestring
    itineraries[].outbound.to.timestring
    itineraries[].outbound.airlinesstring[]
    itineraries[].inboundnull
    itineraries[].originobject
    itineraries[].origin.inputstring
    itineraries[].origin.idstring
    itineraries[].origin.namestring
    itineraries[].origin.codestring
    itineraries[].origin.typestring
    itineraries[].origin.matchstring
    itineraries[].destinationobject
    itineraries[].destination.inputstring
    itineraries[].destination.idstring
    itineraries[].destination.namestring
    itineraries[].destination.codestring
    itineraries[].destination.typestring
    itineraries[].destination.matchstring
    itineraries[].fetched_atstring
    itineraries[].expires_atstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 探索 V2 GET /explore-v2

    从某地出发飞往每个目的地城市的最便宜航班,类似 kiwi.com 的“任意目的地”搜索,每行附带该航班信息:航空公司、经停次数、飞行时长、当地及 UTC 出发和到达时间、航段和预订链接(往返行程还包括返程)。筛选条件和目的地字段与 /explore 相同;最多返回前 200 个城市。

    GET /explore-v2 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    fromstring / query否origin. A 3-letter upper-case code is an airport (else a metro city code such as LON), an upper-case 2-letter code a country (else a continent such as EU); otherwise a name of any place type, case and accent insensitive, or a search id from /places-v2. Unclear or unknown values answer 400 with candidates.
    tostring / query否optional broad scope for the destinations: a country, subdivision, region or continent (code, name or search id); 'anywhere' for every destination.
    date_fromstring / query否start of the departure window, YYYY-MM-DD; defaults to 30 days from today.
    date_tostring / query否end of the departure window, YYYY-MM-DD, inclusive; defaults to date_from.
    return_fromstring / query否start of the return window, YYYY-MM-DD; set it for a round trip, omit for one-way.
    return_tostring / query否end of the return window, YYYY-MM-DD, inclusive; defaults to return_from.
    min_pricestring / query否lowest price per destination, in currency.
    max_pricestring / query否highest price per destination, in currency.
    max_stopsstring / query否most stops per leg (0 = direct only); omit for any.
    adultsinteger / query否adult passengers (1-9).
    childreninteger / query否child passengers (0-8).
    infantsinteger / query否infant passengers, at most one per adult.
    sortstring / query否order of the cities (and which flight sets the destination price): PRICE (cheapest first), POPULARITY, QUALITY, DURATION or DATE. The flight on each row is that city's cheapest itinerary. 可选值: PRICE, POPULARITY, QUALITY, DURATION, DATE.
    currencystring / query否price currency, 3-letter ISO code; min_price and max_price use it too.
    响应字段
    字段类型说明
    searchobject
    search.fromobject
    search.from.inputstring
    search.from.idstring
    search.from.namestring
    search.from.typestring
    search.from.codestring
    search.from.countrystring
    search.from.matched_bystring
    search.from.alternativesobject[]
    search.from.alternatives[].idstring
    search.from.alternatives[].namestring
    search.from.alternatives[].typestring
    search.from.alternatives[].codestring
    search.from.alternatives[].parentstring
    search.toobject
    search.to.inputstring
    search.to.idnull
    search.to.namestring
    search.to.typestring
    search.to.codenull
    search.to.countrynull
    search.to.matched_bystring
    search.to.alternativesstring[]
    search.date_fromstring
    search.date_tostring
    search.return_fromnull
    search.return_tonull
    search.trip_typestring
    search.min_pricenull
    search.max_pricenull
    search.max_stopsnull
    search.passengersobject
    search.passengers.adultsinteger
    search.passengers.childreninteger
    search.passengers.infantsinteger
    search.sortstring
    search.currencystring
    totalinteger
    capinteger
    countinteger
    with_flightinteger
    lookups_failedinteger
    destinationsobject[]
    destinations[].rankinteger
    destinations[].citystring
    destinations[].city_idstring
    destinations[].search_idstring
    destinations[].countryobject
    destinations[].country.codestring
    destinations[].country.namestring
    destinations[].airportstring
    destinations[].airport_codestring
    destinations[].priceobject
    destinations[].price.amountinteger
    destinations[].price.currencystring
    destinations[].price_eurinteger
    destinations[].originobject
    destinations[].origin.airportstring
    destinations[].origin.codestring
    destinations[].origin.citystring
    destinations[].origin.city_idstring
    destinations[].origin.countryobject
    destinations[].origin.country.codestring
    destinations[].origin.country.namestring
    destinations[].departureobject
    destinations[].departure.local_timestring
    destinations[].departure.utc_timestring
    destinations[].arrivalobject
    destinations[].arrival.local_timestring
    destinations[].arrival.utc_timestring
    destinations[].nightsnull
    destinations[].return_departurenull
    destinations[].flightobject
    destinations[].flight.idstring
    destinations[].flight.priceobject
    destinations[].flight.price.amountinteger
    destinations[].flight.price.currencystring
    destinations[].flight.price_eurinteger
    destinations[].flight.airlinesobject[]
    destinations[].flight.airlines[].codestring
    destinations[].flight.airlines[].namestring
    destinations[].flight.stopsinteger
    destinations[].flight.duration_minutesinteger
    destinations[].flight.departureobject
    destinations[].flight.departure.local_timestring
    destinations[].flight.departure.utc_timestring
    destinations[].flight.departure.airportstring
    destinations[].flight.departure.codestring
    destinations[].flight.arrivalobject
    destinations[].flight.arrival.local_timestring
    destinations[].flight.arrival.utc_timestring
    destinations[].flight.arrival.airportstring
    destinations[].flight.arrival.codestring
    destinations[].flight.segmentsobject[]
    destinations[].flight.segments[].flight_numberstring
    destinations[].flight.segments[].carrierobject
    destinations[].flight.segments[].carrier.namestring
    destinations[].flight.segments[].carrier.codestring
    destinations[].flight.segments[].operating_carriernull
    destinations[].flight.segments[].cabinstring
    destinations[].flight.segments[].duration_secondsinteger
    destinations[].flight.segments[].fromobject
    destinations[].flight.segments[].from.airportstring
    destinations[].flight.segments[].from.codestring
    destinations[].flight.segments[].from.citystring
    destinations[].flight.segments[].from.countrystring
    destinations[].flight.segments[].from.local_timestring
    destinations[].flight.segments[].from.utc_timestring
    destinations[].flight.segments[].toobject
    destinations[].flight.segments[].to.airportstring
    destinations[].flight.segments[].to.codestring
    destinations[].flight.segments[].to.citystring
    destinations[].flight.segments[].to.countrystring
    destinations[].flight.segments[].to.local_timestring
    destinations[].flight.segments[].to.utc_timestring
    destinations[].flight.segments[].layover_secondsnull
    destinations[].flight.departure_timestring
    destinations[].flight.arrival_timestring
    destinations[].flight.from_airportstring
    destinations[].flight.to_airportstring
    destinations[].flight.total_duration_minutesinteger
    destinations[].flight.inboundnull
    destinations[].flight.returnnull
    destinations[].flight.providerstring
    destinations[].flight.booking_urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 附近机场 GET /airports-near

    返回以某点为中心、指定半径内的机场,按距离由近到远排列,包含距离、城市、国家、时区和 Kiwi 热度。

    GET /airports-near 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    latnumber / query否latitude of the point, decimal degrees.
    lonnumber / query否longitude of the point, decimal degrees.
    radius_kmnumber / query否search radius in km (default 150, max 500).
    include_inactivestring / query否"true" also returns airports Kiwi sells no flights from (small airfields, military fields). 可选值: false, true.
    响应字段
    字段类型说明
    pointobject
    point.latnumber
    point.lonnumber
    radius_kminteger
    include_inactiveboolean
    totalinteger
    capinteger
    cappedboolean
    airportsobject[]
    airports[].codestring
    airports[].idstring
    airports[].search_idstring
    airports[].icaostring
    airports[].namestring
    airports[].cityobject
    airports[].city.idstring
    airports[].city.namestring
    airports[].countryobject
    airports[].country.codestring
    airports[].country.namestring
    airports[].timezonestring
    airports[].coordinatesobject
    airports[].coordinates.latnumber
    airports[].coordinates.lonnumber
    airports[].distance_kmnumber
    airports[].popularityinteger
    airports[].global_rankinteger
    airports[].activeboolean
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • 重新核验 GET /revalidate

    预订前重新核验 /search、/search-v2 或 /search-v3 返回的某个行程:相同航班是否仍在售,按这些乘客和货币计算的当前总价,新的预订链接和航段,以及 fetched_at 和 expires_at。从不缓存。

    GET /revalidate 的参数和响应字段
    请求参数
    名称类型 / 位置必填说明
    idstring / query否the itinerary id (`id`) of a search row, one-way or return.
    currencystring / query否price currency, 3-letter ISO code; pass the currency of the original search to compare with quoted_price.
    adultsinteger / query否adult passengers (1-9).
    childreninteger / query否child passengers (0-8).
    infantsinteger / query否infant passengers, at most one per adult.
    响应字段
    字段类型说明
    idstring
    typestring
    quoted_priceinteger
    passengersobject
    passengers.adultsinteger
    passengers.childreninteger
    passengers.infantsinteger
    currencystring
    availableboolean
    statusstring
    current_idstring
    priceobject
    price.amountinteger
    price.currencystring
    price_eurinteger
    price_changedboolean
    price_changeinteger
    booking_urlstring
    providerstring
    duration_secondsinteger
    outboundobject
    outbound.duration_secondsinteger
    outbound.stopsinteger
    outbound.segmentsobject[]
    outbound.segments[].flight_numberstring
    outbound.segments[].carrierobject
    outbound.segments[].carrier.namestring
    outbound.segments[].carrier.codestring
    outbound.segments[].operating_carrierobject
    outbound.segments[].operating_carrier.namestring
    outbound.segments[].operating_carrier.codestring
    outbound.segments[].cabinstring
    outbound.segments[].duration_secondsinteger
    outbound.segments[].fromobject
    outbound.segments[].from.airportstring
    outbound.segments[].from.codestring
    outbound.segments[].from.citystring
    outbound.segments[].from.countrystring
    outbound.segments[].from.local_timestring
    outbound.segments[].from.utc_timestring
    outbound.segments[].from.timestring
    outbound.segments[].toobject
    outbound.segments[].to.airportstring
    outbound.segments[].to.codestring
    outbound.segments[].to.citystring
    outbound.segments[].to.countrystring
    outbound.segments[].to.local_timestring
    outbound.segments[].to.utc_timestring
    outbound.segments[].to.timestring
    outbound.segments[].layover_secondsnull
    outbound.fromobject
    outbound.from.airportstring
    outbound.from.codestring
    outbound.from.citystring
    outbound.from.countrystring
    outbound.from.local_timestring
    outbound.from.utc_timestring
    outbound.from.timestring
    outbound.toobject
    outbound.to.airportstring
    outbound.to.codestring
    outbound.to.citystring
    outbound.to.countrystring
    outbound.to.local_timestring
    outbound.to.utc_timestring
    outbound.to.timestring
    inboundnull
    fetched_atstring
    expires_atstring

将 Kiwi.com 数据导出为 CSV

下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。

列表CSV 列
搜索GET /searchid, type, price, price_eur, duration_seconds, provider, booking_url, outbound, inbound
地点搜索 V2GET /places-v2id, search_id, name, code, type, slug, city, subdivision, country, region, continent, timezone, population, airports, coordinates
搜索 V2GET /search-v2id, type, price, price_eur, duration_seconds, provider, booking_url, outbound, inbound
探索GET /explorerank, city, city_id, search_id, country, airport, airport_code, price, price_eur, origin, departure, arrival, nights, return_departure
地点搜索GET /placesid, name, code, type, slug, city, subdivision, country, region, continent, timezone, population, airports, coordinates
航线GET /routesurl, locale, source, destination
搜索 V3GET /search-v3id, type, price, price_eur, duration_seconds, provider, booking_url, outbound, inbound, origin, destination, fetched_at, expires_at
探索 V2GET /explore-v2rank, city, city_id, search_id, country, airport, airport_code, price, price_eur, origin, departure, arrival, nights, return_departure, flight
附近机场GET /airports-nearcode, id, search_id, icao, name, city, country, timezone, coordinates, distance_km, popularity, global_rank, active

嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作

Kiwi.com API 常见问题

能获取什么数据、费用多少、如何调用。

Kiwi.com 有官方 API 吗?

有,Kiwi.com 提供自己的 API:Tequila(核实日期:2026-11-25)。本页的 Kiwi.com API 与它无关,是非官方 API:它是 maviapi 针对 kiwi.com 上的公开数据提供的独立托管 API,并非由 Kiwi.com 开发、认可或支持。

Kiwi.com API 可以获取哪些数据?

Kiwi.com API 有 11 个端点。每个端点都返回 JSON,参数和字段见上方的文档:

  • GET /search: 查询某一出发日(及可选返程日)的航班行程:价格、航空公司、航段、当地时间和 UTC 时间以及预订链接,按 kiwi.com 的排序返回(每次搜索最多 25 个)。
  • GET /places-v2: 按名称或代码匹配所有类型的 Kiwi 地点,最佳匹配在前;每行包含所属国家和用于航班搜索的 search_id。
  • GET /search-v2: 按出发(及可选的返程)日期窗口查询航班行程,包含价格、航段、航空公司、当地时间和 UTC 时间以及预订链接。
  • GET /places/{id}: 按 id 或代码获取单个 Kiwi 地点:名称、类型、代码、城市、国家、地区、大洲、时区、人口和坐标。
  • GET /explore: 从某地出发飞往每个目的地城市的最便宜航班,类似 kiwi.com 的“任意目的地”搜索:每个城市一行,包含价格、出发和到达机场、当地时间和 UTC 时间,往返行程还包括停留晚数和返程日期。
  • GET /places: 按名称或 IATA 代码匹配某一类型的 Kiwi 地点,最佳匹配在前。
  • GET /routes: 从 Kiwi 的某个航线站点地图中获取已发布的城市对航线(特价机票页面),按站点地图中的顺序排列。
  • GET /search-v3: 返回 kiwi.com 上最多 3 个出发地到 3 个目的地之间、出发(及返程)日期窗口内的全部行程,支持设置当地出发和到达时间窗口。
  • GET /explore-v2: 从某地出发飞往每个目的地城市的最便宜航班,类似 kiwi.com 的“任意目的地”搜索,每行附带该航班信息:航空公司、经停次数、飞行时长、当地及 UTC 出发和到达时间、航段和预订链接(往返行程还包括返程)。
  • GET /airports-near: 返回以某点为中心、指定半径内的机场,按距离由近到远排列,包含距离、城市、国家、时区和 Kiwi 热度。
  • GET /revalidate: 预订前重新核验 /search、/search-v2 或 /search-v3 返回的某个行程:相同航班是否仍在售,按这些乘客和货币计算的当前总价,新的预订链接和航段,以及 fetched_at 和 expires_at。

Kiwi.com API 的价格是多少?

调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 5 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.98。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。

如何调用 Kiwi.com API?

向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /search:

cURL
curl 'https://api.maviapi.com/v1/sites/kiwi/search' \
  -H "Authorization: Bearer $MAVI_KEY"

在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。

以 JSON 获取 Kiwi.com 数据有哪些方式?

以 JSON 获取 Kiwi.com 数据的每种方式适合不同的需求:

  • Tequila: 需要写入权限、账号数据或与 Kiwi.com 签订协议时更合适。
  • 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 kiwi.com 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
  • Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
  • RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
  • maviapi: 本页的 Kiwi.com API:11 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。

kiwi.com 改版后会怎样?

您的代码不需要改动。kiwi.com 修改页面时,maviapi 会让 Kiwi.com API 保持可用,您继续调用同样的端点,并得到本页文档所述结构的 JSON。它当前的运行状况见状态页,变更记录见它的更新日志。

更新会破坏我的 Kiwi.com API 集成吗?

不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。

  • Tripadvisor API

    来自 Tripadvisor 的行程规划数据:支持地点搜索,并可按地点(geo_id)获取景点、餐厅和酒店,包含评分、评论、价格和坐标。先用 /search 解析地名,再通过…

  • GetYourGuide API

    GetYourGuide 的游览和活动列表:价格、评分、可订日期和目的地,另有单个活动的详情,并可通过站点地图批量发现活动。

  • Booking.com API

    按地点和入住日期搜索 Booking.com 的住宿,查看住宿详情、价格和住客评分。

  • Airbnb API

    按地点和日期搜索 Airbnb 短租房源,并获取房源详情:数据取自 Airbnb 服务端渲染的搜索页和房源页,以结构清晰的 JSON 返回。

  • Trainline API

    Trainline(thetrainline.com)上任意两个车站之间的火车票价和发车时间。

  • FlightList API

    在任意日期范围内搜索低价单程航班:票价、航班时刻、航空公司和每个航段的航班号,另有机场和 IATA 代码查询。与 flightlist.io 的搜索功能相对应。