Google Travel and Maps
Google Flights API
Search flights using departure_id, arrival_id, and outbound_date. Omit return_date for one-way travel. All itinerary dates, including return and multi-city legs, must be within 330 days of the current UTC date. Supports up to nine travelers; each infant on a lap requires an adult. Use flight autocomplete to resolve airport IDs. Airport/location IDs may be comma-separated. Supports airline, schedule, duration, price, emissions, baggage and fare filters. Use type 3 and multi_city_json for multiple legs.
Make a request
Use your existing PrismCrawl API key and credit balance. A completed request consumes one credit, including recognized empty or unavailable results and source changes found during a valid continuation. Validation and operational errors remain uncharged. Each completed continuation request is billed separately.
curl 'https://api.prismcrawl.com/v1/google/flights/search' \
--request POST \
--header 'content-type: application/json' \
--header 'x-api-key: <PRISMCRAWL_API_KEY>' \
--data '{
"arrival_id": "LAX",
"currency": "USD",
"departure_id": "JFK",
"outbound_date": "2026-12-23"
}'Supported parameters
| Parameter | Usage |
|---|---|
departure_id | One or more comma-separated IATA airport or Google travel city IDs. Use flight autocomplete to resolve identifiers. |
arrival_id | One or more comma-separated IATA airport or Google travel city IDs. Use flight autocomplete to resolve identifiers. |
outbound_date | Departure date in YYYY-MM-DD format. |
return_date | Return date in YYYY-MM-DD format; omit for a one-way trip. |
adults | Number of adult travelers, from 1 to 9. |
children | Number of children aged 2–11. At most nine travelers total. |
infants_in_seat | Number of infants under 2 traveling in their own seats. At most nine travelers total. |
infants_on_lap | Number of infants under 2 traveling on an adult’s lap; cannot exceed adults. At most nine travelers total. |
travel_class | Cabin class supported by the selected flight operation. economy, premium_economy, business, first |
sort_by | Sort by overall quality, price, departure time, arrival time, duration, or emissions. top_flights, price, departure_time, arrival_time, duration, emissions |
stops | 0: any stops; 1: nonstop; 2: at most one stop; 3: at most two stops. |
include_airlines | Comma-separated IATA airline codes or STAR_ALLIANCE, SKYTEAM, ONEWORLD. |
exclude_airlines | Exclude comma-separated IATA airline codes or alliances. |
bags | Carry-on bags; cannot exceed adults, children and seated infants combined. |
max_price | Maximum total fare in the requested currency. |
outbound_times | Two or four hours, 0..23: earliest/latest departure, optionally earliest/latest arrival. Latest hours include their entire hour. |
return_times | Round-trip return departure/arrival hour ranges, in the same format as outbound_times. |
emissions | 1 restricts results to flights with lower emissions. 1 |
exclude_conns | Comma-separated IATA connecting airports to exclude. |
max_duration | Maximum flight duration in minutes. |
show_hidden | Include additional flights normally hidden behind View more flights. |
exclude_basic | Exclude basic economy fares. Requires US localization and economy class; supported for domestic US travel. |
type | 1: round trip; 2: one way; 3: multi-city. If omitted, return_date selects a round trip; otherwise one way. Response metadata uses trip_type; metadata type retains the operation kind. 1, 2, 3 |
multi_city_json | JSON array of two through five legs with departure_id, arrival_id, date (YYYY-MM-DD), and optional times. Requires type 3. |
layover_duration | Minimum and maximum layover duration in minutes, comma-separated and ordered. |
selected_flights_json | JSON object containing ordered outbound flight segments and return segments for round trips. Each segment has flight_number, departure_id, arrival_id, date. Top-level airports and dates are optional; if provided they must match the segments. Returns selected itineraries and booking options. |
departure_token | Select an itinerary and retrieve the next leg. Use the token returned in results and repeat the original search parameters. |
booking_token | Retrieve booking options for the complete selection. Use the token returned in results and repeat the original search parameters. |
deep_search | Compatibility control for full browser-equivalent search. This API already uses the complete streaming search for both true and false. |
currency | Three-letter currency code, such as USD. ALL, DZD, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BYN, BMD, BAM, BRL, GBP, BGN, XPF, CAD, CLP, CNY, COP, CRC, CUP, CZK, DKK, DOP, EGP, EUR, GEL, HKD, HUF, ISK, INR, IDR, IRR, ILS, JMD, JPY, JOD, KZT, KWD, LBP, MKD, MYR, MXN, MDL, MAD, TWD, NZD, NOK, OMR, PKR, PAB, PEN, PHP, PLN, QAR, RON, RUB, SAR, RSD, SGD, ZAR, KRW, SEK, CHF, THB, TRY, USD, UAH, AED, VND |
country | Two-letter country or storefront code, such as us or gb. |
language | Provider-supported language code, such as en. |
limit | Maximum number of items to return. The provider may return fewer. |
device | Device presentation for the source request. desktop, mobile, tablet |
html | Return the encoded original response rather than parsed JSON. |
zero_trace | Do not archive source or parsed response artifacts. |
Structured results
Read items from data.content.results. The response also includes the search metadata, pagination state, and any extracted SERP features. Optional fields appear when supplied by the provider.
addressbooking_tokencarbon_emissions_gramscategorycoordinatescurrencydeparture_tokendescriptionflightsgroupidlatitudelongitudenamephonepositionpriceprice_tokenrankratingrating_maxrating_sourcereview_countsnippetstopsthumbnailtitletotal_duration_minutestypeurlwebsiteSDKs and guides
The official SDKs cover this endpoint with typed parameters, automatic retries, and pagination helpers.
- Python SDK:
pip install prismcrawl - Node.js SDK:
npm install prismcrawl