# Cheapest days to fly: 180-day Google Flights price calendar

**Use case:** 

Gets Google Flights' cheapest price for every departure date over the next 180 days from New York (JFK) to Los Angeles (LAX), one row per date, as in Google's price graph. Change the airports or the number of days, or add a return date to price every trip length.

## Input

```json
{
  "searchMode": "priceCalendar",
  "legs": [
    {
      "origin": "JFK",
      "destination": "LHR",
      "date": "2027-03-10"
    },
    {
      "origin": "LHR",
      "destination": "CDG",
      "date": "2027-03-14"
    },
    {
      "origin": "CDG",
      "destination": "JFK",
      "date": "2027-03-18"
    }
  ],
  "maxFlightsPerLeg": 1,
  "origins": [
    "JFK"
  ],
  "destinations": [
    "LAX"
  ],
  "exploreRegion": "anywhere",
  "departureDate": "",
  "returnDate": "",
  "maxReturnFlightsPerDeparture": 1,
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "cabinClass": "economy",
  "maxStops": "any",
  "maxFlightsPerSearch": 100,
  "includePriceHistory": false,
  "includeBookingOptions": false,
  "calendarDays": 180,
  "sortBy": "best",
  "airlines": [],
  "excludeAirlines": [],
  "connectingAirports": [],
  "lessEmissionsOnly": false,
  "checkedBags": 0,
  "carryOnBags": 0,
  "excludeBasicEconomy": false,
  "currency": "USD",
  "language": "en",
  "country": "us",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "origin": {
    "label": "From",
    "format": "string"
  },
  "destination": {
    "label": "To",
    "format": "string"
  },
  "departureDate": {
    "label": "Departs",
    "format": "string"
  },
  "returnDate": {
    "label": "Returns",
    "format": "string"
  },
  "tripNights": {
    "label": "Nights",
    "format": "integer"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "isCheapestDate": {
    "label": "Cheapest",
    "format": "boolean"
  },
  "googleFlightsUrl": {
    "label": "Google Flights",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Google Flights Scraper: Flight Prices & Price Calendar Actor is ready to run with the inputs already set for "Cheapest days to fly: 180-day Google Flights price calendar". [Sign up or log in](https://console.apify.com/create-task-from-example/cgeSuAMpaoauGdhUJ) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Cheapest days to fly: 180-day Google Flights price calendar" task

The Google Flights Scraper: Flight Prices & Price Calendar Actor will start running based on the input automatically. You can also change all the input fields, like what to get, trip flights (multi-city), and more, to match your specific use case.

### 3. Receive the "Cheapest days to fly: 180-day Google Flights price calendar" 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 from, to, departs, and more.

### 4. 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 "Cheapest days to fly: 180-day Google Flights price calendar" task via API](https://apify.com/famed_bonobo/google-flights-scraper.md).

## About this Actor

This example demonstrates how to use [Google Flights Scraper: Flight Prices & Price Calendar](https://apify.com/famed_bonobo/google-flights-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/famed_bonobo/google-flights-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/famed_bonobo/google-flights-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
