Go to example tasks

Export Flight Price Data to CSV by Route

Created byJohn

John

Build a live flight price dataset for any route: current fares, airlines, stops, duration and travel class, exported to CSV or JSON for analysis.

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):LAX
Arrival Airport Code(s):JFK
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 "Export Flight Price Data to CSV by Route". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Export Flight Price Data to CSV by Route" 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 "Export Flight Price Data to CSV by Route" 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 "Export Flight Price Data to CSV by Route" task via API.

Image

Integrate "Export Flight Price Data to CSV by Route" into your workflow

Connect "Export Flight Price Data to CSV by Route" 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

The Flights view gives one row per itinerary from all_flights: departure_airport, arrival_airport, price, airlines, stops and duration for the LAX to JFK search. Download that view as CSV, JSON or Excel straight from the run.

Three fields for a one-way route: departure_id LAX, arrival_id JFK and outbound_date 2026-10-16. Add return_date for a round trip, raise max_pages to pull more than the first page, or set currency to EUR or GBP to price the export another way.

Run the task from its endpoint on the Apify API or with apify-client, then download the dataset as CSV or JSON; the Flights view flattens all_flights to one row per itinerary. Change departure_id and arrival_id per call for one file per route.

Open the task in the Apify Console, choose Actions, then Schedule, and set 0 6 1 * * for the first of each month at 6 AM. Each run writes a fresh dataset, and the n8n node or a webhook can drop the rows into a Google Sheet or a Postgres table.

Point Claude or any other MCP client at https://mcp.apify.com/?tools=actors,docs,johnvc/google-flights-data-scraper-flight-and-price-search and the agent runs the route export and reads the all_flights rows back, or hands you the dataset link.

Every Apify account comes with a free plan, and the Google Flights API bills pay per event: one charge for each page of results retrieved plus a setup event per run, with no subscription. The rate for each plan is listed on the Actor page.

Export Flight Price Data to CSV by Route is a snapshot: one route, one date, every itinerary as a flat row for a spreadsheet. Track NYC to London flight prices by API repeats a fixed round trip on a schedule to build a fare history over weeks.