# Export Flight Price Data to CSV by Route

**Use case:** 

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

## Input

```json
{
  "departure_id": "LAX",
  "arrival_id": "JFK",
  "outbound_date": "2026-08-13",
  "return_date": "2026-08-19",
  "adults": 1,
  "children": 0,
  "infants": 0,
  "currency": "USD",
  "hl": "en",
  "gl": "us",
  "exclude_basic": false,
  "fetch_booking_options": false,
  "max_pages": 1
}
```

## Output

```json
{
  "all_flights": {
    "label": "All Flights (Flat)",
    "format": "array"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Flights API](https://apify.com/johnvc/google-flights-data-scraper-flight-and-price-search) with a specific input configuration. Visit the [Actor detail page](https://apify.com/johnvc/google-flights-data-scraper-flight-and-price-search) to learn more, explore other use cases, and run it yourself.