# Watch several routes with fare history

**Use case:** 

Four routes in one run. Each search also returns the recent fare history and typical price band for that route, so today's price can be judged on the first run. Schedule it daily to build a series.

## Input

```json
{
  "origin": "LAX",
  "destination": "JFK",
  "departureDate": "2026-11-22",
  "returnDate": "2026-11-29",
  "maxResults": 0,
  "searches": [
    {
      "origin": "LAX",
      "destination": "JFK",
      "departureDate": "2026-11-22"
    },
    {
      "origin": "SFO",
      "destination": "NRT",
      "departureDate": "2026-11-22"
    },
    {
      "origin": "LHR",
      "destination": "JFK",
      "departureDate": "2026-11-22"
    },
    {
      "origin": "FRA",
      "destination": "SIN",
      "departureDate": "2026-11-22"
    }
  ],
  "cabinClass": "economy",
  "adults": 1,
  "maxStops": "any",
  "sortBy": "top",
  "currency": "USD",
  "market": "us",
  "language": "en"
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type",
    "format": "text"
  },
  "origin": {
    "label": "Origin",
    "format": "text"
  },
  "destination": {
    "label": "Destination",
    "format": "text"
  },
  "departureDate": {
    "label": "Departure date",
    "format": "text"
  },
  "returnDate": {
    "label": "Return date",
    "format": "text"
  },
  "tripType": {
    "label": "Trip type",
    "format": "text"
  },
  "cabinClass": {
    "label": "Cabin class",
    "format": "text"
  },
  "currency": {
    "label": "Currency",
    "format": "text"
  },
  "market": {
    "label": "Market",
    "format": "text"
  },
  "travellerCount": {
    "label": "Traveller count",
    "format": "number"
  },
  "googleFlightsUrl": {
    "label": "Google flights url",
    "format": "link"
  },
  "flightsAvailable": {
    "label": "Flights available",
    "format": "number"
  },
  "flightsDelivered": {
    "label": "Flights delivered",
    "format": "number"
  },
  "priceLow": {
    "label": "Price low",
    "format": "number"
  },
  "priceHigh": {
    "label": "Price high",
    "format": "number"
  },
  "typicalPriceLow": {
    "label": "Typical price low",
    "format": "number"
  },
  "typicalPriceHigh": {
    "label": "Typical price high",
    "format": "number"
  },
  "priceHistory": {
    "label": "Price history",
    "format": "array"
  },
  "durationMinutesLow": {
    "label": "Duration minutes low",
    "format": "number"
  },
  "durationMinutesHigh": {
    "label": "Duration minutes high",
    "format": "number"
  },
  "airlines": {
    "label": "Airlines",
    "format": "array"
  },
  "alliances": {
    "label": "Alliances",
    "format": "array"
  },
  "connectionAirports": {
    "label": "Connection airports",
    "format": "array"
  },
  "baggagePolicyUrls": {
    "label": "Baggage policy urls",
    "format": "array"
  },
  "accessibilityUrls": {
    "label": "Accessibility urls",
    "format": "array"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "pricePerPassenger": {
    "label": "Price per passenger",
    "format": "number"
  },
  "airlineCode": {
    "label": "Airline code",
    "format": "text"
  },
  "airlineName": {
    "label": "Airline name",
    "format": "text"
  },
  "operatingAirlines": {
    "label": "Operating airlines",
    "format": "array"
  },
  "departureAirport": {
    "label": "Departure airport",
    "format": "text"
  },
  "departureAirportName": {
    "label": "Departure airport name",
    "format": "text"
  },
  "departureTime": {
    "label": "Departure time",
    "format": "text"
  },
  "arrivalAirport": {
    "label": "Arrival airport",
    "format": "text"
  },
  "arrivalAirportName": {
    "label": "Arrival airport name",
    "format": "text"
  },
  "arrivalTime": {
    "label": "Arrival time",
    "format": "text"
  },
  "durationMinutes": {
    "label": "Duration minutes",
    "format": "number"
  },
  "stops": {
    "label": "Stops",
    "format": "number"
  },
  "legs": {
    "label": "Legs",
    "format": "array"
  },
  "layovers": {
    "label": "Layovers",
    "format": "array"
  },
  "returnFlights": {
    "label": "Return flights",
    "format": "array"
  },
  "checkedBagsIncluded": {
    "label": "Checked bags included",
    "format": "number"
  },
  "carryOnBagsIncluded": {
    "label": "Carry on bags included",
    "format": "number"
  },
  "emissionsGrams": {
    "label": "Emissions grams",
    "format": "number"
  },
  "emissionsLowestGrams": {
    "label": "Emissions lowest grams",
    "format": "number"
  },
  "emissionsTypicalGrams": {
    "label": "Emissions typical grams",
    "format": "number"
  },
  "emissionsVsTypicalPercent": {
    "label": "Emissions vs typical percent",
    "format": "number"
  },
  "isBestFlight": {
    "label": "Is best flight",
    "format": "boolean"
  },
  "bookingToken": {
    "label": "Booking token",
    "format": "text"
  },
  "itineraryId": {
    "label": "Itinerary id",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Flights Scraper - Every Flight, Fares & History](https://apify.com/clearpath/google-flights-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/clearpath/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/clearpath/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`).
