Google Travel and Maps
Google Flights API
Search flights using departure_id, arrival_id, and outbound_date. Omit return_date for one-way travel. Supports up to nine travelers; each infant on a lap requires an adult. Use flight autocomplete to resolve airport IDs.
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-11-02"
}'Supported parameters
| Parameter | Usage |
|---|---|
departure_idRequired | IATA airport code or airport identifier returned by flight autocomplete. |
arrival_idRequired | IATA airport code or airport identifier returned by flight autocomplete. |
outbound_dateRequired | 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 |
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.
grouppricecurrencystopstotal_duration_minutesbooking_tokencarbon_emissions_gramsflightstyperankidtitlenameurlpositionthumbnailratingsnippetdescriptionaddresscategoryphonewebsitereview_countrating_maxrating_sourcelatitudelongitudecoordinatesSDKs 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