# Google Flights Search

Search Google Flights for fares, airlines and times between airports.

by Apify Ready to run $0.0211 per page · $2.11 per 100 pages

## Example

### You ask your agent

“Find flights from JFK to LAX a month from today.”

### You get

**Page number:** 1

**Max pages set:** 1

**Pages processed:** 1

**Best flights count:** 3

**Other flights count:** 32

**Total flights found:** 35

**Booking options count:** 0

**Pagination limit reached:** Yes

**What your agent sends and gets back (JSON)**

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

### Request

```
{
  "tool_id": "apify.johnvc-google-flights",
  "input": {
    "input": {
      "arrival_id": "LAX",
      "departInDays": 30,
      "departure_id": "JFK"
    },
    "maxItems": 1
  }
}
```

### Response

```
{
  "items": [
    {
      "all_flights": [
        {
          "price": 405,
          "route": "JFK-LAX",
          "stops": 1,
          "airlines": "JetBlue",
          "category": "best",
          "currency": "USD",
          "duration": "10h 39m",
          "overnight": false,
          "stops_label": "1 stop",
          "airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
          "arrival_time": "2026-12-23 00:59",
          "travel_class": "Economy",
          "often_delayed": false,
          "outbound_date": "2026-12-22",
          "departure_time": "2026-12-22 17:20",
          "flight_numbers": "B6 2918, B6 1187",
          "arrival_airport": "LAX",
          "duration_minutes": 639,
          "departure_airport": "JFK"
        }
      ],
      "page_number": 1,
      "best_flights": [
        {
          "type": "One way",
          "price": 405,
          "airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
          "total_duration": 639
        }
      ],
      "other_flights": [
        {
          "type": "One way",
          "price": 377,
          "airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AA.png",
          "total_duration": 1084
        }
      ],
      "search_metadata": {
        "source": "google_flights",
        "max_pages_set": 1,
        "pages_processed": 1,
        "best_flights_count": 3,
        "other_flights_count": 32,
        "total_flights_found": 35,
        "booking_options_count": 0,
        "pagination_limit_reached": true
      }
    }
  ],
  "item_count": 1
}
```

## Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use Google Flights Search (tool ID: apify.johnvc-google-flights). Ask me for the details you need, then show me the result.

Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.

No agent yet? [Create your account on the web](https://scrollport.com/sign-up) and connect one from your dashboard later.

## Questions

**Is Google Flights Search by Apify free?**

Scrollport has no free tier: it costs $0.0211 per page ($2.11 per 100 pages), paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

**Do I need an API key from Apify?**

No. Your agent runs it through your Scrollport connection (MCP, the Scrollport CLI or the HTTP API), and Scrollport handles access to Apify, so you don't sign up with Apify or manage an API key.

## Details

**About this tool**

Search Google Flights between up to three departure and three arrival airports (IATA codes) for a one-way or return trip, by date or by days from today (departInDays, returnAfterDays), optionally limited by stops, price or basic economy. Each results page lists the best and other flights with price, airlines, flight numbers, departure and arrival times, stops, layovers and duration. maxItems sets the pages read, 1 to 3. You're charged per results page plus a small fee per run. The worked example shows selected fields: long text is shortened, nested lists keep one item and expiring media links are left out.

**All inputs and outputs**

### Input

`input` object · required

Provider-specific public source, URL or search criteria.

`maxItems` integer · optional

Maximum number of records to return.

minimum: 1 · maximum: 3

### Output

`item_count` number

`items` array

Result records.

**Errors and limits**

- `upstream_error`: The scraper could not return usable results; the wallet was not charged.Check the input and limits, or retry later.

---

Canonical page: https://scrollport.com/tools/providers/apify/johnvc-google-flights
