# Track NYC to London flight prices by API

**Use case:** 

Track round-trip New York to London fares over time with one API call per check. Returns best flights, prices, airlines, and price insights as JSON.

## Input

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

## Output

```json
{
  "page_number": {
    "label": "Current Page Number",
    "format": "integer"
  },
  "search_parameters.departure_id": {
    "label": "Departure Airport Code(s)",
    "format": "string"
  },
  "search_parameters.arrival_id": {
    "label": "Arrival Airport Code(s)",
    "format": "string"
  },
  "search_parameters.outbound_date": {
    "label": "Outbound Date",
    "format": "string"
  },
  "search_metadata.total_flights_found": {
    "label": "Total Flights Found",
    "format": "integer"
  },
  "search_metadata.best_flights_count": {
    "label": "Best Flights Count",
    "format": "integer"
  },
  "search_metadata.other_flights_count": {
    "label": "Other Flights Count",
    "format": "integer"
  },
  "search_metadata.booking_options_count": {
    "label": "Booking Options Count",
    "format": "integer"
  },
  "search_timestamp": {
    "label": "Search Timestamp",
    "format": "string"
  }
}
```

## 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.