Kayak Flights API
The Kayak Flights API returns Kayak's flight itineraries for a route and dates, one-way or round trip, 50 per page in Kayak's order. Each itinerary carries its price for all passengers, its legs with their flights, and the sites selling it, each with its price, a booking link and its bag allowances. Filter by stops or airlines, sort by price, duration or times, and page through the results.
API Parameters
Search Query
-
- Name
-
departure_id - Required
- Required
- Description
-
Parameter defines the departure airport or city as an IATA code, such as
JFKfor John F. Kennedy orNYCfor every New York airport. A code Kayak does not know returns an error.
-
- Name
-
arrival_id - Required
- Required
- Description
-
Parameter defines the arrival airport or city as an IATA code, such as
LAXfor Los Angeles International orLONfor every London airport. A code Kayak does not know returns an error. It must differ fromdeparture_id.
Filters
-
- Name
-
flight_type - Required
- Optional
- Description
-
Parameter defines the type of trip. It can be set to
one_wayorround_trip, and defaults toround_trip.
-
- Name
-
outbound_date - Required
- Required
- Description
-
Parameter defines the departure date in
YYYY-MM-DDformat, from today up to 365 days ahead.
-
- Name
-
return_date - Required
- Optional
- Description
-
Parameter defines the return date in
YYYY-MM-DDformat, on or afteroutbound_dateand up to 365 days ahead. It is required whenflight_typeisround_tripand cannot be used withone_way.
-
- Name
-
travel_class - Required
- Optional
- Description
-
Parameter defines the cabin. It can be set to
economy,premium_economy,businessorfirst_class, and defaults toeconomy.
-
- Name
-
stops - Required
- Optional
- Description
-
Parameter defines the most stops per leg. It can be set to
any,nonstoporone_stop_or_fewer, and defaults toany.
-
- Name
-
included_airlines - Required
- Optional
- Description
-
Parameter keeps only the itineraries flown by these airlines, as comma-separated two-character codes such as
DL,AA. It cannot be used withexcluded_airlines.
-
- Name
-
excluded_airlines - Required
- Optional
- Description
-
Parameter drops the itineraries flown by these airlines, as comma-separated two-character codes such as
DL,AA. It cannot be used withincluded_airlines.
-
- Name
-
sort_by - Required
- Optional
- Description
-
Parameter defines the order of the itineraries. It can be set to
best,price,duration,departure_timeorarrival_time, and defaults tobest.
Number of Passengers
-
- Name
-
adults - Required
- Optional
- Description
-
Parameter defines the number of adult passengers, from 1 to 9. A search without it is for one adult. Prices are totals for all passengers.
-
- Name
-
children_ages - Required
- Optional
- Description
-
Parameter defines the ages of child passengers as a comma-separated list, such as
7,1, each from 0 to 17. Ages 0 and 1 travel on an adult's lap, so there can be no more of them than adults, and a search has at most 9 passengers in all. Prices are totals for all passengers.
Pagination
-
- Name
-
page - Required
- Optional
- Description
-
Parameter defines the page of results, with 50 itineraries per page, from 1 to 20. It defaults to
1, andpagination.nextis the next page while there is one.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
kayak_flights.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Full Response
https://www.searchapi.io/api/v1/search?arrival_id=LAX&departure_id=JFK&engine=kayak_flights&flight_type=one_way&outbound_date=2026-12-13
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "kayak_flights",
"departure_id": "JFK",
"arrival_id": "LAX",
"outbound_date": "2026-12-13",
"flight_type": "one_way"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_YzO8NlMJg5M9UN4ZgnBvQxXR",
"status": "Success",
"created_at": "2026-11-11T17:49:14Z",
"request_time_taken": 3.33,
"parsing_time_taken": 0.05,
"total_time_taken": 3.38,
"request_url": "https://www.kayak.com/flights/JFK-LAX/2026-12-11?sort=bestflight_a",
"html_url": "https://www.searchapi.io/api/v1/searches/search_YzO8NlMJg5M9UN4ZgnBvQxXR.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_YzO8NlMJg5M9UN4ZgnBvQxXR"
},
"search_parameters": {
"engine": "kayak_flights",
"departure_id": "JFK",
"arrival_id": "LAX",
"outbound_date": "2026-12-11",
"flight_type": "one_way",
"travel_class": "economy",
"sort_by": "best",
"stops": "any"
},
"itineraries": [
{
"id": "996e63ddcec5cdf14e0dff001a336bf0",
"price": 162,
"is_best": true,
"is_cheapest": false,
"legs": [
{
"departure_airport": {
"id": "JFK",
"name": "John F Kennedy Intl",
"city": "New York",
"date": "2026-12-11",
"time": "11:00"
},
"arrival_airport": {
"id": "LAX",
"name": "Los Angeles",
"city": "Los Angeles",
"date": "2026-12-11",
"time": "14:19"
},
"total_duration": 379,
"stops": 0,
"flights": [
{
"departure_airport": {
"id": "JFK",
"name": "John F Kennedy Intl",
"city": "New York",
"date": "2026-12-11",
"time": "11:00"
},
"arrival_airport": {
"id": "LAX",
"name": "Los Angeles",
"city": "Los Angeles",
"date": "2026-12-11",
"time": "14:19"
},
"duration": 379,
"airline": "JetBlue",
"airline_code": "B6",
"airline_logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/v/B6.png?crop=false&width=108&height=92&fallback=default1.png&_v=1d9c582b6d8f9aebe5ff965c9bb916ee",
"flight_number": "B6 323",
"aircraft": "Airbus A318/A319/A320/A321"
}
]
}
],
"booking_options": [
{
"book_with": "Cheapflightsfares",
"price": 162,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZBiQ-xIYA.t6ACe8DEgdsjBqqGy3NRjwR2f09f7zGF.16140.996e63ddcec5cdf14e0dff001a336bf0&h=9a6c4cec64d4&sub=F-2511308600743043814E0b2e62d8c08&viewId=dea0f628-febb-4adf-a0ca-f7795f3c9794&viewRank=1",
"is_free_cancellation": true,
"checked_bag": "Not Included (+$67)",
"carry_on_bag": "Included"
},
{
"book_with": "Super.com",
"price": 162,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZBiQ-xIYA.OuMtL7ohpYEDzQq2dWkU9A.16174.996e63ddcec5cdf14e0dff001a336bf0&h=c10142f894bf&sub=F-963747228871252245E051414b86c9&viewId=dea0f628-febb-4adf-a0ca-f7795f3c9794&viewRank=1",
"is_free_cancellation": true,
"checked_bag": "Unknown",
"carry_on_bag": "Unknown"
}
]
},
{
"id": "5b6016c9ba98bd2385cb54cd69b78983",
"price": 161,
"is_best": false,
"is_cheapest": true,
"legs": [
{
"departure_airport": {
"id": "JFK",
"name": "John F Kennedy Intl",
"city": "New York",
"date": "2026-12-11",
"time": "20:35"
},
"arrival_airport": {
"id": "LAX",
"name": "Los Angeles",
"city": "Los Angeles",
"date": "2026-12-11",
"time": "23:54"
},
"total_duration": 379,
"stops": 0,
"flights": [
{
"departure_airport": {
"id": "JFK",
"name": "John F Kennedy Intl",
"city": "New York",
"date": "2026-12-11",
"time": "20:35"
},
"arrival_airport": {
"id": "LAX",
"name": "Los Angeles",
"city": "Los Angeles",
"date": "2026-12-11",
"time": "23:54"
},
"duration": 379,
"airline": "JetBlue",
"airline_code": "B6",
"airline_logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/v/B6.png?crop=false&width=108&height=92&fallback=default1.png&_v=1d9c582b6d8f9aebe5ff965c9bb916ee",
"flight_number": "B6 1723",
"aircraft": "Airbus A318/A319/A320/A321"
}
]
}
],
"booking_options": [
{
"book_with": "Super.com",
"price": 161,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZBiQ-xIYA.OuMtL7ohpYEDzQq2dWkU9A.16068.5b6016c9ba98bd2385cb54cd69b78983&h=3a12e9d6cad8&sub=F-963747227163532045E051414b86c9&viewId=dea0f628-febb-4adf-a0ca-f7795f3c9794&viewRank=2",
"is_free_cancellation": true,
"checked_bag": "Unknown",
"carry_on_bag": "Unknown"
},
{
"book_with": "Cheapflightsfares",
"price": 162,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZBiQ-xIYA.t6ACe8DEgdsjBqqGy3NRjwR2f09f7zGF.16140.5b6016c9ba98bd2385cb54cd69b78983&h=e6c4bac0e51d&sub=F-2511308598209854359E0b2e62d8c08&viewId=dea0f628-febb-4adf-a0ca-f7795f3c9794&viewRank=2",
"is_free_cancellation": true,
"checked_bag": "Not Included (+$67)",
"carry_on_bag": "Included"
}
]
},
{
"id": "a992833f8ca90c6db00d4a5b420ecf01",
"price": 162,
"is_best": false,
"is_cheapest": false,
"legs": [
{
"departure_airport": {
"id": "JFK",
"name": "John F Kennedy Intl",
"city": "New York",
"date": "2026-12-11",
"time": "13:59"
},
"arrival_airport": {
"id": "LAX",
"name": "Los Angeles",
"city": "Los Angeles",
"date": "2026-12-11",
"time": "17:17"
},
"total_duration": 378,
"stops": 0,
"flights": [
{
"departure_airport": {
"id": "JFK",
"name": "John F Kennedy Intl",
"city": "New York",
"date": "2026-12-11",
"time": "13:59"
},
"arrival_airport": {
"id": "LAX",
"name": "Los Angeles",
"city": "Los Angeles",
"date": "2026-12-11",
"time": "17:17"
},
"duration": 378,
"airline": "JetBlue",
"airline_code": "B6",
"airline_logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/v/B6.png?crop=false&width=108&height=92&fallback=default1.png&_v=1d9c582b6d8f9aebe5ff965c9bb916ee",
"flight_number": "B6 723",
"aircraft": "Airbus A318/A319/A320/A321"
}
]
}
],
"booking_options": [
{
"book_with": "Cheapflightsfares",
"price": 162,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZBiQ-xIYA.t6ACe8DEgdsjBqqGy3NRjwR2f09f7zGF.16140.a992833f8ca90c6db00d4a5b420ecf01&h=5679bd25df06&sub=F-2511308597325050074E0b2e62d8c08&viewId=dea0f628-febb-4adf-a0ca-f7795f3c9794&viewRank=4",
"is_free_cancellation": true,
"checked_bag": "Not Included (+$67)",
"carry_on_bag": "Included"
},
{
"book_with": "Super.com",
"price": 162,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZBiQ-xIYA.OuMtL7ohpYEDzQq2dWkU9A.16174.a992833f8ca90c6db00d4a5b420ecf01&h=eb0dd101f372&sub=F-963747227204414845E051414b86c9&viewId=dea0f628-febb-4adf-a0ca-f7795f3c9794&viewRank=4",
"is_free_cancellation": true,
"checked_bag": "Unknown",
"carry_on_bag": "Unknown"
}
]
}
],
"pagination": {
"current": 1,
"total_pages": 4,
"next": 2
}
}
Nonstop Round Trip
https://www.searchapi.io/api/v1/search?arrival_id=MIA&departure_id=BOS&engine=kayak_flights&outbound_date=2026-12-13&return_date=2026-12-20&stops=nonstop
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "kayak_flights",
"departure_id": "BOS",
"arrival_id": "MIA",
"outbound_date": "2026-12-13",
"return_date": "2026-12-20",
"stops": "nonstop"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_6EB5K71e3vjbf75R3vXNW82V",
"status": "Success",
"created_at": "2026-11-11T17:49:18Z",
"request_time_taken": 3.38,
"parsing_time_taken": 0.01,
"total_time_taken": 3.4,
"request_url": "https://www.kayak.com/flights/BOS-MIA/2026-12-11/2026-12-18?sort=bestflight_a&fs=stops%3D0",
"html_url": "https://www.searchapi.io/api/v1/searches/search_6EB5K71e3vjbf75R3vXNW82V.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_6EB5K71e3vjbf75R3vXNW82V"
},
"search_parameters": {
"engine": "kayak_flights",
"departure_id": "BOS",
"arrival_id": "MIA",
"outbound_date": "2026-12-11",
"return_date": "2026-12-18",
"flight_type": "round_trip",
"travel_class": "economy",
"sort_by": "best",
"stops": "nonstop"
},
"itineraries": [
{
"id": "9cd68be7640e43a623fed5279a9e4d7c",
"price": 350,
"is_best": true,
"is_cheapest": false,
"legs": [
{
"departure_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-11",
"time": "16:46"
},
"arrival_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-11",
"time": "20:37"
},
"total_duration": 231,
"stops": 0,
"flights": [
{
"departure_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-11",
"time": "16:46"
},
"arrival_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-11",
"time": "20:37"
},
"duration": 231,
"airline": "American Airlines",
"airline_code": "AA",
"airline_logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/v/AA.png?crop=false&width=108&height=92&fallback=default2.png&_v=8c6d0e40bdbaad9c51e737b05c12347f",
"flight_number": "AA 1245",
"aircraft": "Boeing 737-800"
}
]
},
{
"departure_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-18",
"time": "12:25"
},
"arrival_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-18",
"time": "16:02"
},
"total_duration": 217,
"stops": 0,
"flights": [
{
"departure_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-18",
"time": "12:25"
},
"arrival_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-18",
"time": "16:02"
},
"duration": 217,
"airline": "American Airlines",
"airline_code": "AA",
"airline_logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/v/AA.png?crop=false&width=108&height=92&fallback=default2.png&_v=8c6d0e40bdbaad9c51e737b05c12347f",
"flight_number": "AA 2211",
"aircraft": "Airbus A320"
}
]
}
],
"booking_options": [
{
"book_with": "American Airlines",
"price": 350,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZCCG3aeiS.sIt2B02c_IY.34981.9cd68be7640e43a623fed5279a9e4d7c&h=b26ff7767300&sub=F3517996806623765454E0e72f72a4c7&viewId=e608fd33-d815-4562-8594-8bd7b5aeed43&viewRank=1",
"is_free_cancellation": true,
"checked_bag": "Not Included (+$110)",
"carry_on_bag": "Included"
},
{
"book_with": "American Airlines",
"price": 460,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZCCG3aeiS.sIt2B02c_IY.45980.9cd68be7640e43a623fed5279a9e4d7c&h=722548b6cf9d&sub=F3517996803392532452E0ee52707a78&viewId=e608fd33-d815-4562-8594-8bd7b5aeed43&viewRank=1",
"is_free_cancellation": true,
"checked_bag": "Not Included (+$100)",
"carry_on_bag": "Included"
}
]
},
{
"id": "ea389209e181cbfbec58d5573699dd59",
"price": 350,
"is_best": false,
"is_cheapest": false,
"legs": [
{
"departure_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-11",
"time": "18:05"
},
"arrival_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-11",
"time": "21:50"
},
"total_duration": 225,
"stops": 0,
"flights": [
{
"departure_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-11",
"time": "18:05"
},
"arrival_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-11",
"time": "21:50"
},
"duration": 225,
"airline": "American Airlines",
"airline_code": "AA",
"airline_logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/v/AA.png?crop=false&width=108&height=92&fallback=default2.png&_v=8c6d0e40bdbaad9c51e737b05c12347f",
"flight_number": "AA 1284",
"aircraft": "Airbus A320"
}
]
},
{
"departure_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-18",
"time": "12:25"
},
"arrival_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-18",
"time": "16:02"
},
"total_duration": 217,
"stops": 0,
"flights": [
{
"departure_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-18",
"time": "12:25"
},
"arrival_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-18",
"time": "16:02"
},
"duration": 217,
"airline": "American Airlines",
"airline_code": "AA",
"airline_logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/v/AA.png?crop=false&width=108&height=92&fallback=default2.png&_v=8c6d0e40bdbaad9c51e737b05c12347f",
"flight_number": "AA 2211",
"aircraft": "Airbus A320"
}
]
}
],
"booking_options": [
{
"book_with": "American Airlines",
"price": 350,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZCCG3aeiS.sIt2B02c_IY.34981.ea389209e181cbfbec58d5573699dd59&h=6093935322ce&sub=F3517996803733948606E0e72f72a4c7&viewId=e608fd33-d815-4562-8594-8bd7b5aeed43&viewRank=3",
"is_free_cancellation": true,
"checked_bag": "Not Included (+$110)",
"carry_on_bag": "Included"
},
{
"book_with": "American Airlines",
"price": 460,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZCCG3aeiS.sIt2B02c_IY.45980.ea389209e181cbfbec58d5573699dd59&h=e2fc2f031709&sub=F3517996805417179578E0ee52707a78&viewId=e608fd33-d815-4562-8594-8bd7b5aeed43&viewRank=3",
"is_free_cancellation": true,
"checked_bag": "Not Included (+$100)",
"carry_on_bag": "Included"
}
]
},
{
"id": "48723ce9c3e8895fceb2ef813fdce687",
"price": 360,
"is_best": false,
"is_cheapest": false,
"legs": [
{
"departure_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-11",
"time": "19:25"
},
"arrival_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-11",
"time": "23:12"
},
"total_duration": 227,
"stops": 0,
"flights": [
{
"departure_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-11",
"time": "19:25"
},
"arrival_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-11",
"time": "23:12"
},
"duration": 227,
"airline": "Delta",
"airline_code": "DL",
"airline_logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/v/DL.png?crop=false&width=108&height=92&fallback=default1.png&_v=02a9af26513d796d51e54147426d15b5",
"flight_number": "DL 2246",
"aircraft": "Boeing 737-800"
}
]
},
{
"departure_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-18",
"time": "11:48"
},
"arrival_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-18",
"time": "15:13"
},
"total_duration": 205,
"stops": 0,
"flights": [
{
"departure_airport": {
"id": "MIA",
"name": "Miami",
"city": "Miami",
"date": "2026-12-18",
"time": "11:48"
},
"arrival_airport": {
"id": "BOS",
"name": "Logan Intl",
"city": "Boston",
"date": "2026-12-18",
"time": "15:13"
},
"duration": 205,
"airline": "Delta",
"airline_code": "DL",
"airline_logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/v/DL.png?crop=false&width=108&height=92&fallback=default1.png&_v=02a9af26513d796d51e54147426d15b5",
"flight_number": "DL 1399",
"aircraft": "Boeing 737-800"
}
]
}
],
"booking_options": [
{
"book_with": "Delta",
"price": 360,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZCCG3aeiS.ToX9mfccdpY.35980.48723ce9c3e8895fceb2ef813fdce687&h=f1e3284a756c&sub=F-7653935506761431346E04eaf454637&viewId=e608fd33-d815-4562-8594-8bd7b5aeed43&viewRank=5",
"is_free_cancellation": true,
"checked_bag": "Not Included (+$90)",
"carry_on_bag": "Included"
},
{
"book_with": "Delta",
"price": 470,
"currency": "USD",
"tracking_link": "https://www.kayak.com/book/flight?code=2ZCCG3aeiS.ToX9mfccdpY.46981.48723ce9c3e8895fceb2ef813fdce687&h=ab2e8b607ab4&sub=F-7653935508012426692E024be84af64&viewId=e608fd33-d815-4562-8594-8bd7b5aeed43&viewRank=5",
"is_free_cancellation": true,
"checked_bag": "Not Included (+$90)",
"carry_on_bag": "Included"
}
]
}
],
"pagination": {
"current": 1,
"total_pages": 2,
"next": 2
}
}