scraper
Back to API docs

Overview

  • Overview

SERP

  • POSTSERP

Core

  • POSTGeocode
  • POSTTranslate
  • POSTSearch
  • POSTVision
  • POSTPlaces Search
  • POSTPlace Details
  • POSTPlaces Nearby
  • POSTAutocomplete

Maps

  • POSTSearch
  • POSTPlace Details
  • POSTReviews

Hotels

  • POSTSearch
  • POSTDetail
  • POSTReviews
  • POSTPhotos

Play

  • POSTReviews

Flights

  • POSTOne-way Search
  • POSTCalendar
  • POSTExplore

Jobs

  • POSTJobs Search

Finance

  • POSTQuote
  • POSTFundamentals
  • POSTChart
  • POSTNews
  • POSTSearch
  • POSTEstimates
  • POSTEarnings

Price Calendar

1 credit

Compare live route prices across Graph, Grid, or round-trip Picker date windows.

POST/api/v1/tools/google-flights/calendar

Parameters

originstringrequired

Departure airport IATA code (for example, "SFO"). Pass several codes as a comma-separated string or an array (for example, "SFO,OAK") to price them together.

destinationstringrequired

Arrival airport IATA code (for example, "LAX"). Pass several codes as a comma-separated string or an array to price them together. It must not share an airport with origin.

departureDatestringrequired

Future departure date in YYYY-MM-DD format. Grid requires the full centered window to be non-past.

returnDatestring

Required for Picker. With Graph or Grid it prices round trips of the same length. Must be after departureDate.

modestring

"graph", "grid", or "picker". Defaults to "graph".

calendarDaysnumber

Window size. Cut to a whole number and held between 1 and 90. Defaults to 61 for Graph/Picker and 7 for Grid. Grid rounds an even value up to the next odd value, and 90 becomes 89.

cabinClassstring

"economy", "premium-economy", "business", or "first". Defaults to "economy".

currencystring

Currency used for returned prices. Defaults to "USD". Supported values: ALL, DZD, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BYN, BMD, BAM, BRL, GBP, CAD, XPF, 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, NGN, NOK, OMR, PKR, PAB, PEN, PHP, PLN, QAR, RON, RUB, SAR, RSD, SGD, ZAR, KRW, SEK, CHF, THB, TRY, UAH, AED, USD, VND.

adultsnumber

Number of adults (1-9). Defaults to 1; total passengers cannot exceed 9.

childrennumber

Number of children (0-9). Defaults to 0.

infantsOnLapnumber

Number of lap infants (0-9). Defaults to 0; each lap infant requires an adult.

infantsInSeatnumber

Number of infants in seats (0-9). Defaults to 0.

maxStopsnumber

Maximum stops: 0 (nonstop), 1, or 2.

maxPricenumber

Maximum total itinerary price as a positive whole amount in the requested currency.

maxDurationnumber

Maximum duration of each flight leg in minutes.

airlinesstring[]

Up to 20 airline IATA codes or ONEWORLD, STAR_ALLIANCE, and SKYTEAM.

departureTimeEarlieststring

Earliest local departure time (0-23 or HH:MM).

departureTimeLateststring

Latest local departure time (0-23 or HH:MM). A bound earlier than the earliest time selects an overnight range.

arrivalTimeEarlieststring

Earliest local arrival time (0-23 or HH:MM).

arrivalTimeLateststring

Latest local arrival time (0-23 or HH:MM). A bound earlier than the earliest time selects an overnight range.

fieldsstring[]

Top-level response fields to include. Omit or pass ["*"] for all.

Response Schema

dataobject

Calendar result

originstring

Departure airports of the request, separated by commas

destinationstring

Arrival airports of the request, separated by commas

currencystring

Requested price currency

pricesobject[]

Sorted, deduplicated date prices; empty when no dates match

countnumber

Number of priced dates or date pairs

warningsobject[]

Present when the call ignored an optional value that was not valid. Each item has `field` and `reason`. The call ran with the default for that field.

metaobject

Request metadata

toolstring

google-flights-calendar

creditsUsednumber

Credits consumed (1)

requestIdstring

Unique request ID

Request

# Replace <GRID_CENTER_DATE> with a date whose full centered window is not in the past.
curl -X POST https://scraper.run/api/v1/tools/google-flights/calendar \
-H "Authorization: Bearer sc_live_..." \
-H "Content-Type: application/json" \
-d '{
"origin": "SFO",
"destination": "LAX",
"departureDate": "<GRID_CENTER_DATE>",
"mode": "grid",
"calendarDays": 7,
"currency": "USD"
}'

Response Example

{
"data": {
"origin": "SFO",
"destination": "LAX",
"currency": "USD",
"prices": [
{
"date": "2026-09-23",
"price": 33
},
{
"date": "2026-09-24",
"price": 23
},
{
"date": "2026-09-25",
"price": 59
},
{
"date": "2026-09-26",
"price": 46
},
{
"date": "2026-09-27",
"price": 49
},
{
"date": "2026-09-28",
"price": 59
},
{
"date": "2026-09-29",
"price": 33
}
],
"count": 7
},
"meta": {
"tool": "google-flights-calendar",
"creditsUsed": 1,
"requestId": "req_abc123"
}
}