Google

Google Flights Deals

Find Google Flight Deals from one or more comma-separated airport or city IDs, optionally matching a natural-language trip request. Supports passenger counts, travel class, round or one-way travel, stops, airline, price and flight-duration filters.

post/v1/google/flights/deals

Request

  • Base URL: https://api.prismcrawl.com
  • URL: https://api.prismcrawl.com/v1/google/flights/deals
  • Auth: API key in header x-api-key

Request body

querystring

Text to search for on the selected service. At most 8,192 UTF-8 bytes.

departure_idstring required

One or more comma-separated IATA airport or Google travel city IDs. Use flight autocomplete to resolve identifiers.

adultsinteger

Number of adult travelers, from 1 to 9.

outbound_datestring

One YYYY-MM-DD date or two ordered, comma-separated dates. Exact round trips require exact departure and return dates; flexible return windows require a flexible departure window.

return_datestring

One YYYY-MM-DD date or two ordered, comma-separated dates. Exact round trips require exact departure and return dates; flexible return windows require a flexible departure window.

travel_durationinteger

Flexible round-trip duration: 1 one week (default); 2 weekend; 3 two weeks. Cannot be combined with query or exact dates.

trip_lengthstring

Exact trip length in days, or comma-separated minimum and maximum; positive and ordered. Uses flexible departure dates.

childreninteger

Number of children aged 2–11. At most nine travelers total.

infants_in_seatinteger

Number of infants under 2 traveling in their own seats. At most nine travelers total.

infants_on_lapinteger

Number of infants under 2 traveling on an adult’s lap; cannot exceed adults. At most nine travelers total.

travel_class'economy' | 'premium_economy' | 'business' | 'first'

Cabin class supported by the selected flight operation.

type1 | 2

1: round trip (default); 2: one way. Response metadata uses trip_type.

stopsinteger

0: any stops; 1: nonstop; 2: at most one stop; 3: at most two stops.

include_airlinesstring

Comma-separated IATA airline codes or STAR_ALLIANCE, SKYTEAM, ONEWORLD.

exclude_airlinesstring

Exclude comma-separated IATA airline codes or alliances.

max_priceinteger

Maximum total fare in the requested currency.

max_durationinteger

Maximum flight duration in minutes.

currency'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'

Three-letter currency code, such as USD.

countrystring

Two-letter country or storefront code, such as us or gb.

languagestring

Provider-supported language code, such as en.

limitinteger

Maximum number of items to return. The provider may return fewer.

device'desktop' | 'mobile' | 'tablet'

Device presentation for the source request.

htmlboolean

Return the encoded original response rather than parsed JSON.

zero_traceboolean

Do not archive source or parsed response artifacts.

output'json' | 'html' | 'md' | 'null' nullable

Response content format. md returns Markdown in data.content with data.format=md; the JSON success/request envelope remains. Accept: text/markdown also selects Markdown unless output or html=true is explicit. html is an alias for html=true and retains the existing Brotli/Base64 source format.

json_restrictorstring nullable

Select fields within data.content for JSON or Markdown. Supports comma-separated paths, non-negative array indices, half-open slices [0:3] (either bound may be omitted), [] and .{nested,subqueries}. Up to128 selections and16 levels. Missing fields are omitted; selected declared fields retain their zero defaults. The request envelope and credit headers remain. Include next_page_token when pagination is needed. Incompatible with HTML output. This changes response presentation only; tracing-enabled history retains the complete JSON result.

no_cacheboolean nullable

Accepted for compatibility. Searches are always fetched without a result cache for either value; normal successful-request billing applies.

Example request

{
  "json_restrictor": "results[].{title,url},has_next_page,next_page_token"
}

Response

Request completed. One credit is charged, including recognized empty or unavailable source results and source inventory changes discovered after a valid continuation is fetched. These completed responses may preserve verified partial results; operational failures remain errors.

successtrue required
request_idstring uuid required

Changes

No recorded changes to this operation across all 1 revision of this API.