# Google Flights Price Tracker: Daily Fares as JSON

Searches Google Flights for round trips from New York JFK to London Heathrow and returns every itinerary with its price, airlines, stops, departure and arrival times and total duration. Schedule it daily on Apify and each run adds a dated price snapshot you can compare.

- Actor: openclawai/google-flights-scraper (Google Flights Scraper), https://datapika.com/actors/google-flights-scraper
- Run on Apify: https://apify.com/openclawai/google-flights-scraper
- Tested: 2026-11-26, 10 rows in 2 seconds, $0.02 at free-plan prices

## Input

```json
{
  "from_airport": "JFK",
  "to_airport": "LHR",
  "date": "2027-02-10",
  "return_date": "2027-02-17",
  "trip": "round-trip",
  "max_results": 25
}
```

## Output fields

- `airline_names`: Airline
- `price`: Price
- `currency`: Currency
- `departure`: Departure
- `arrival`: Arrival
- `stops`: Stops
- `duration_min_total`: Duration (min)
- `from_airport`: from_airport
- `to_airport`: to_airport

## Sample rows (personal data masked)

```json
[
  {
    "airline_names": [
      "Tap Air Portugal"
    ],
    "price": 612,
    "currency": "USD",
    "departure": "2027-02-10T22:00:00",
    "arrival": "2027-02-11T15:30:00",
    "stops": 1,
    "duration_min_total": 590,
    "from_airport": "JFK",
    "to_airport": "LHR"
  },
  {
    "airline_names": [
      "American"
    ],
    "price": 621,
    "currency": "USD",
    "departure": "2027-02-10T18:25:00",
    "arrival": "2027-02-11T06:20:00",
    "stops": 0,
    "duration_min_total": 415,
    "from_airport": "JFK",
    "to_airport": "LHR"
  },
  {
    "airline_names": [
      "British Airways"
    ],
    "price": 621,
    "currency": "USD",
    "departure": "2027-02-10T23:20:00",
    "arrival": "2027-02-11T11:10:00",
    "stops": 0,
    "duration_min_total": 410,
    "from_airport": "JFK",
    "to_airport": "LHR"
  }
]
```

Full sample: https://datapika.com/data/tasks/google-flights-price-tracker.json

## How to run it

1. **Open the actor on Apify.** Click Copy input, then Run on Apify to open the Google Flights Scraper. Sign in or create a free account, open the JSON tab of the input form and paste the input.
2. **Start the "Google Flights Price Tracker: Daily Fares as JSON" task.** Press Start. Change any input field first if you need a different topic, account or size; the fields are listed above.
3. **Get the results.** Rows arrive in a dataset while the run works. Our test returned 10 rows in 2 seconds.
4. **Use the data.** Download JSON, CSV or Excel, call the run from the API, schedule it, or let an AI agent run it through MCP.

API (replace the token):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/openclawai~google-flights-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"from_airport":"JFK","to_airport":"LHR","date":"2027-02-10","return_date":"2027-02-17","trip":"round-trip","max_results":25}'
```

## Change it

- from_airport and to_airport take three-letter airport codes such as JFK, LHR or NRT.
- date and return_date take YYYY-MM-DD; set trip to round-trip when you add a return date.
- trip takes one-way, round-trip or multi-city (one leg per search).
- max_results caps the itineraries returned (1 to 200); you pay only for those returned.

## FAQ

### How do I track a fare over time?

Save the task and add an Apify schedule, for example every morning. Each run is a new dataset with scraped_at on every row, so you can chart the lowest price per day or trigger a webhook when it drops below your target.

### Are these the final ticket prices?

They are the prices Google Flights showed for the searched dates, passengers and cabin at run time. Fares change often and this is not a booking API, so confirm the fare with the airline before you buy.

### Do I need a Google account or API key?

No. It reads public Google Flights results with no login, cookie or API key. Run it from the Apify Console, the API, or an AI agent through MCP.

### How much does it cost?

You pay per itinerary delivered to your dataset. There is no start fee. The current prices are on the Pricing tab.
