# Flight Price Tracker: Price Drop Alerts from Google Flights (`wulfcare/flight-price-tracker`) Actor

Track flight prices on any route: schedule it and every run says which fares dropped or rose, which flights are new or gone, the all-time low and if a fare is under your target. Google Flights data. $0.15 per 1,000 flights, no start fee.

- **URL**: https://apify.com/wulfcare/flight-price-tracker.md
- **Developed by:** [Wulfcare Data](https://apify.com/wulfcare) (community)
- **Categories:** Travel, AI, E-commerce
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.15 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Flight Price Tracker: Price Drop Alerts from Google Flights

Track flight prices on any route and **get told when they drop**. Schedule it daily and every run compares against the last one:

- which fares got **cheaper** or **pricier**, and by how much
- which flights are **new** and which are **gone**
- the **all-time low** across all your runs (longer than Google's ~60-day history), and whether today's price is it
- whether the cheapest fare is **under your target price**

Plus Google's own *low / typical / high* price verdict, the typical price range and the daily price history, and every flight's airlines, flight numbers, times, layovers, aircraft, legroom and CO2.

Data comes from Google Flights' own data endpoint, with no browser, so a check takes a few seconds.

### How to set up a price alert

1. Enter **origin** and **destination** airport codes (`JFK`, `LAX`; several with commas: `JFK,LGA,EWR`), or more routes one per line (`SYD-LAX`).
2. Enter a **departure date** (`2026-12-05`, or `+30 days`), and a return date or trip length for a round trip.
3. Optionally set a **target price** and turn on **Only output changes** (you pay only for rows that changed).
4. **Schedule it** (Apify Console → Schedules), e.g. daily, with the same input.
5. Add an Apify **webhook or integration** (Slack, email, Make, Zapier) that fires on `belowTargetPrice` or `isLowestEver`, and you have a price-drop alert.

Give each tracker a **name** to keep several routes apart. Prices are stored in a named key-value store in your own Apify account, `google-flights-tracker-<name>`, so they survive between runs. Delete that store to start over.

### What the tracker fills in

- on each flight: `priceStatus` (`first-seen`, `new`, `cheaper`, `pricier`, `same`, `gone`), `previousPrice`, `priceChange`, `lowestPriceSeen`, `lowestPriceSeenAt`, `firstSeenAt`
- on the summary: `previousLowestPrice`, `lowestPriceChange`, `lowestPriceEver`, `lowestPriceEverAt`, `isLowestEver`, `trackedSince`, `trackedRuns`, `changes` (counts of new / cheaper / pricier / gone)

Turn on **Cheapest dates** to also get the cheapest price for every departure date in a range, to find the best day to fly.

### Output

A **summary** row (one per route and date):

```json
{
  "type": "summary", "route": "JFK-LAX", "departureDate": "2026-12-05", "tripType": "one-way", "currency": "USD",
  "lowestPrice": 169, "priceLevel": "typical", "typicalPrice": 174, "typicalPriceLow": 75, "typicalPriceHigh": 320,
  "previousLowestPrice": 179, "lowestPriceChange": -10, "lowestPriceEver": 169, "isLowestEver": true,
  "targetPrice": 175, "belowTargetPrice": true, "changes": {"new": 0, "cheaper": 92, "pricier": 0, "gone": 1},
  "cheapestFlight": {"price": 169, "airlines": ["Delta"], "flightNumbers": ["DL 1788"], "stops": 0},
  "priceHistory": [{"date": "2026-08-27", "price": 173}, "…"],
  "googleFlightsUrl": "https://www.google.com/travel/flights?q=Flights+to+LAX+from+JFK+on+2026-12-05+one+way…"
}
```

A **flight** row:

```json
{
  "type": "flight", "route": "SYD-LAX", "rank": 1, "isBest": true, "price": 659, "currency": "USD",
  "priceStatus": "cheaper", "previousPrice": 689, "priceChange": -30, "lowestPriceSeen": 659,
  "airlines": ["Virgin Australia", "Delta"], "flightNumbers": ["VA 808", "DL 12"],
  "departureTime": "2026-12-10T07:00", "arrivalTime": "2026-12-10T05:55", "durationMinutes": 1075, "stops": 1,
  "layovers": [{"airport": "MEL", "city": "Melbourne", "durationMinutes": 95, "isLong": false,
                "isOvernight": false, "changesAirport": false}],
  "hasLongLayover": false, "hasOvernightLayover": false, "changesAirport": false,
  "emissionsKg": 756, "typicalEmissionsKg": 740, "emissionsVsTypicalPercent": 2,
  "legs": [{"flightNumber": "VA 808", "operatedBy": "Virgin Aust Intl for Virgin Aust", "aircraft": "Boeing 737MAX 8 Passenger",
            "legroom": "30 in", "departureAirport": "SYD", "arrivalAirport": "MEL", "durationMinutes": 95}, "…"]
}
```

Times are local at each airport. Round-trip prices are for the whole trip, as Google Flights shows them; the flight
rows are the outbound options.

### Pricing

**$0.15 per 1,000 results** ($0.00015 each). A result is a summary, flight or date row. Errors and "gone" rows are free. No start fee. One check with the defaults (summary + 20 flights) costs about $0.003; a route checked daily with **Only output changes** costs a few cents a month.

### Notes and limits

- Prices are what Google Flights shows a logged-out visitor in the US, in the currency you pick. Prices are totals for all passengers.
- Booking-site prices for a single flight and multi-city trips are not included yet.
- Google keeps fares for about 11 months ahead.
- **Data accuracy:** prices are what Google Flights showed at run time and can change at any moment. Check the fare on the airline or booking site before you buy.

### Other Actors by Wulfcare Data

- [Google Flights Scraper](https://apify.com/wulfcare/google-flights-scraper): the same flights data, plus total trip cost with the cheapest good hotel
- [Google Hotels Prices Scraper](https://apify.com/wulfcare/google-hotels-scraper): every booking site's price for any hotel and dates

Found a problem or need a field? Open an issue on the Issues tab.

# Actor input Schema

## `origin` (type: `string`):

IATA code of the departure airport, e.g. JFK. Several, comma-separated, to search them together: JFK,LGA,EWR.

## `destination` (type: `string`):

IATA code of the arrival airport, e.g. LAX (or several: LAX,BUR,LGB).

## `departureDate` (type: `string`):

YYYY-MM-DD, or relative: "+30 days", "in 2 weeks", "tomorrow". Empty = in 30 days.

## `returnDate` (type: `string`):

Empty = one way. YYYY-MM-DD, or "+7 days" counted from the departure date. Round-trip prices are for the whole trip, as on Google Flights.

## `tripDays` (type: `integer`):

Instead of a return date: return this many days after departure. 0 = one way.

## `routes` (type: `array`):

Extra routes, one per line: "SYD-LAX", "JFK,EWR-LHR", "MEL to AKL". Each is searched for the same dates and options.

## `departureDays` (type: `integer`):

Search this many consecutive departure dates from the first (full flight lists for each). For just the cheapest price per date over a long range, use "Cheapest dates" instead.

## `maxFlights` (type: `integer`):

Flight rows per route and date: Google's "best" flights first, then the rest by price. Google lists 50-300. 0 = just the summary row (lowest price, verdict, trip cost).

## `cabinClass` (type: `string`):

Seat class.

## `adults` (type: `integer`):

Prices are the total for all passengers.

## `children` (type: `integer`):

Children aged 2-11 (count toward the total price).

## `maxStops` (type: `string`):

Most stops a flight may have.

## `currency` (type: `string`):

Three-letter code: USD, EUR, GBP, AUD, INR... Google prices directly in it.

## `trackerName` (type: `string`):

Keep separate trackers apart (e.g. "client-a", "summer-trip"). Letters, digits, dashes.

## `onlyChanges` (type: `boolean`):

With tracking: output only flights that are new or changed price (plus one summary row per search). You pay only for those rows, so daily monitoring costs almost nothing.

## `targetPrice` (type: `integer`):

Optional: the summary's belowTargetPrice is true when the lowest price is at or under this (in the chosen currency). Handy for alerts and webhooks.

## `cheapestDates` (type: `boolean`):

Also output the cheapest price for every departure date in a range (Google's date grid), one row per date, the cheapest flagged. Round trips keep the same trip length.

## `cheapestDatesRange` (type: `integer`):

Departure dates from the departure date on.

## `language` (type: `string`):

Language of airport and airline names (hl=).

## `maxConcurrency` (type: `integer`):

Searches sent to Google at the same time.

## `residentialFallback` (type: `boolean`):

With the default Apify Proxy: when Google keeps refusing datacenter IPs, finish the run on US residential IPs (no extra charge to you).

## `proxyConfig` (type: `object`):

Apify Proxy (datacenter) works well; the Actor switches IPs on its own when Google slows one down.

## Actor input object example

```json
{
  "origin": "JFK",
  "destination": "LAX",
  "departureDate": "+30 days",
  "departureDays": 1,
  "maxFlights": 20,
  "cabinClass": "economy",
  "adults": 1,
  "children": 0,
  "maxStops": "any",
  "currency": "USD",
  "trackerName": "default",
  "onlyChanges": false,
  "cheapestDates": false,
  "cheapestDatesRange": 60,
  "language": "en",
  "maxConcurrency": 6,
  "residentialFallback": true,
  "proxyConfig": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `summary` (type: `string`):

No description

## `flights` (type: `string`):

No description

## `dates` (type: `string`):

No description

## `all` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "origin": "JFK",
    "destination": "LAX",
    "departureDate": "+30 days",
    "proxyConfig": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("wulfcare/flight-price-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "origin": "JFK",
    "destination": "LAX",
    "departureDate": "+30 days",
    "proxyConfig": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("wulfcare/flight-price-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "origin": "JFK",
  "destination": "LAX",
  "departureDate": "+30 days",
  "proxyConfig": {
    "useApifyProxy": true
  }
}' |
apify call wulfcare/flight-price-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wulfcare/flight-price-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/0hu8kGSissERnW5rj/builds/qfT706hWddYmiKnl7/openapi.json
