Google search and market data

Google Flights Price Calendar: cheapest fare per day, per route

The cheapest fare per departure day for a route over a date range, from Google Flights: one row per day with the lowest price, airline, stops and duration, so you see when it is cheap. Up to 100 routes, up to 60 days each. Pay per delivered day.

$3.00per 1,000 · Day priced

One departure day delivered with its cheapest fare. Days without any flight and routes that fail are never charged.

Call it from your code

curl
ACTOR=steadydata~google-flights-price-calendar
URL="https://api.apify.com/v2/acts/$ACTOR/run-sync-get-dataset-items"

curl -X POST "$URL?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"routes": ["AMS LHR"], "tripLengthDays": 0, "seatClass": "economy"}'
python
import os, requests

ACTOR = "steadydata~google-flights-price-calendar"
URL = f"https://api.apify.com/v2/acts/{ACTOR}/run-sync-get-dataset-items"

rows = requests.post(
    URL,
    params={"token": os.environ["APIFY_TOKEN"]},
    json={'routes': ['AMS LHR'], 'tripLengthDays': 0, 'seatClass': 'economy'},
    timeout=900,
).json()

# every row carries a status; failures are records, not exceptions
ok = [r for r in rows if r.get("status") == "ok"]
print(len(ok), "rows delivered")
javascript
const ACTOR = "steadydata~google-flights-price-calendar";
const url =
  `https://api.apify.com/v2/acts/${ACTOR}/run-sync-get-dataset-items` +
  `?token=${process.env.APIFY_TOKEN}`;

const rows = await fetch(url, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"routes": ["AMS LHR"], "tripLengthDays": 0, "seatClass": "economy"}),
}).then((r) => r.json());

// one object per delivered row, same shape every time
console.log(rows.filter((r) => r.status === "ok").length, "rows");

Use it in an agent

Point an MCP client at Apify's hosted server with this dataset in the tools list, or run our own server locally. The field explanations in the table below travel with the schema, so your agent reads them straight from the platform instead of from this page.

mcp url
https://mcp.apify.com?tools=steadydata/google-flights-price-calendar

# the tool arrives in your agent as steadydata--google-flights-price-calendar

Input

FieldTypeNameWhat it does
routes
required
array of stringRoutesOne per row, up to 100, as 'FROM TO' with IATA codes: AMS LHR, JFK LAX.
dateFromstringFirst departure dateYYYY-MM-DD. Defaults to tomorrow.
dateTostringLast departure dateYYYY-MM-DD, at most 60 days after the first date. Defaults to 30 days after the first date.
tripLengthDaysintegerTrip length in days (return)0 for one-way. Any other value searches a return flight that many days after each departure day.
seatClassstringSeat classeconomy, premium, business or first.
adultsintegerAdults1 to 9.
currencystringCurrencyISO code such as EUR, USD, GBP.

What you get back

output schema, one object per delivered row
{
  "route": string | null,
  "departureDate": string | null,
  "returnDate": string | null,
  "price": number | null,
  "currency": string | null,
  "airlines": array | null,
  "stops": integer | null,
  "durationMinutes": integer | null,
  "departureTime": string | null,
  "arrivalTime": string | null,
  "flightNumbers": array | null,
  "optionsOnPage": integer | null,
  "bookingUrl": string | null,
  "status": string | null,
  "input": string | null,
  "errorCode": string | null,
  "error": string | null,
  "daysWithoutFlights": integer | null
}
FieldTypeWhen it is filled
routestring, null
departureDatestring, null
returnDatestring, null
pricenumber, null
currencystring, null
airlinesarray, null
stopsinteger, null
durationMinutesinteger, null
departureTimestring, null
arrivalTimestring, null
flightNumbersarray, null
optionsOnPageinteger, null
bookingUrlstring, null
statusstring, nullEither 'ok' or 'error'. An error row carries errorCode and error, and leaves the data fields empty; it is never charged.
inputstring, nullThe input this row was built from, so a row can always be traced back.
errorCodestring, nullFilled on an error row only; a delivered row leaves it empty.
errorstring, nullFilled on an error row only; a delivered row leaves it empty.
daysWithoutFlightsinteger, null

Related datasets

Already using this one? Ratings are the first thing other buyers look at, and this dataset has none yet. If it does a job for you, a rating on its Apify page is the one thing that helps. It takes a minute and it is the only thing we ask for.

Open the Apify page