Go to example tasks

Get Google Flights Prices in Python by API

Created byJohn

John

Fetch live Google Flights results in Python by API: prices, airlines, routes, stops, duration and travel class, with no proxies or browser setup.

Try for free
Google Flights API
Google Flights APIjohnvc/google-flights-data-scraper-flight-and-price-search
All Flights (Flat)
Text
Number
Boolean
List
Object

Input

Departure Airport Code(s):JFK
Arrival Airport Code(s):MIA
Outbound Date:2026-10-16

Output fields

All Flights (Flat)

How it works

Sign up on Apify or log in

The Google Flights API Actor is ready to run with the inputs already set for "Get Google Flights Prices in Python by API". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Get Google Flights Prices in Python by API" task

The Google Flights API Actor will start running based on the input automatically. You can also change all the input fields, like departure airport code(s), arrival airport code(s), and more, to match your specific use case.

Receive the "Get Google Flights Prices in Python by API" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as all flights (flat).

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Get Google Flights Prices in Python by API" task via API.

Image

Integrate "Get Google Flights Prices in Python by API" into your workflow

Connect "Get Google Flights Prices in Python by API" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

Each all_flights row carries departure_airport, arrival_airport, price, airlines, stops and duration for one JFK to MIA itinerary; the raw item also keeps the nested best_flights. Iterate it in Python or export JSON, CSV or Excel.

A dict with departure_id JFK, arrival_id MIA and outbound_date 2026-10-16 is enough for a one-way search. Optional keys such as adults, max_stops, currency or airlines narrow the results, and your side needs no proxy or browser setup.

Install apify-client, call the Actor with run_input holding departure_id, arrival_id and outbound_date, then iterate the run's dataset items. Each item is one page of flights as plain JSON with a flat all_flights list.

Schedule the task in the Apify Console under Actions, then Schedule, with a cron such as 0 7 * * * for a daily run, so your script never has to stay awake. A webhook or the Make and Zapier integrations then push each new dataset to Sheets or Slack.

Add https://mcp.apify.com/?tools=actors,docs,johnvc/google-flights-data-scraper-flight-and-price-search as an MCP server in Claude or any other MCP client; the agent runs the same JFK to MIA search a script would and reads the fares back in chat.

Billing is per event with no subscription: a run is charged for each page of flight results it retrieves plus a small setup event, so the default max_pages of one is the cheapest call. Rates and the free plan allowance are on the Actor page.

Get Google Flights Prices in Python by API is written for code: run it with apify-client and work on the JSON items. Export Flight Price Data to CSV by Route is for the Console, where the flat all_flights rows download as a CSV without code.