{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper — Flight Prices & Cheapest Dates",
    "description": "Google Flights scraper, no API key or login: flight prices for any route and date — the long list, 73–255 flights a search. Each flight: fare, airlines, flight numbers, times with time zones, stops, layovers, aircraft, CO2 — 36 fields. Round trips, cheapest dates. Pay per flight. CSV, Excel, JSON.",
    "version": "1.0",
    "x-build-id": "emHroqNrknzAHGgW9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/instagram-data-api~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-instagram-data-api-google-flights-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/instagram-data-api~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-instagram-data-api-google-flights-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/instagram-data-api~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-instagram-data-api-google-flights-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "origin": {
            "title": "From",
            "type": "string",
            "description": "Airport code (JFK), city code (NYC, LON) or city name (New York). Several airport codes separated by commas are searched one by one: JFK, EWR. An airport code is read at once; a city costs one extra request per run."
          },
          "destination": {
            "title": "To",
            "type": "string",
            "description": "Airport code (LHR), city code or city name (London). Several airport codes separated by commas are searched one by one."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "YYYY-MM-DD, or +30 for “30 days from today” (handy for scheduled runs). Empty = 30 days from today."
          },
          "returnDate": {
            "title": "Return date (round trip)",
            "type": "string",
            "description": "YYYY-MM-DD, or +37 for “37 days from today” — relative dates always count from today, so departure +30 with return +37 is a 7-day trip. Empty = one-way. For a round trip each flight row is an outbound flight with the round-trip price."
          },
          "mode": {
            "title": "What to get",
            "enum": [
              "flights",
              "calendar"
            ],
            "type": "string",
            "description": "Flights: the flights Google lists for the date. Cheapest dates: one row per date of a date range with that day's lowest fare.",
            "default": "flights"
          },
          "departureDateEnd": {
            "title": "Date range — last departure date",
            "type": "string",
            "description": "YYYY-MM-DD, or +36 for “36 days from today” (counted from today, like the departure date: +30 to +36 is 7 dates). Every date from the departure date to this one is searched, up to 92 dates per route. With a return date the length of the stay is kept. Empty = one date."
          },
          "dateRangeDays": {
            "title": "Date range — number of dates",
            "minimum": 1,
            "maximum": 92,
            "type": "integer",
            "description": "Another way to set the range: this many dates starting with the departure date (7 = a week). Used when no last departure date is given."
          },
          "routes": {
            "title": "More routes in the same run",
            "type": "array",
            "description": "One route per line: JFK-LHR, or with dates: JFK-LHR 2026-12-17 2026-12-24. Through the API also objects: {\"origin\": \"JFK\", \"destination\": \"LHR\", \"departureDate\": \"+30\", \"returnDate\": \"+37\"}. Routes without dates use the dates above. Duplicates are searched once.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Flights links",
            "type": "array",
            "description": "Paste search links copied from Google Flights (they contain tfs=). The route, dates, passengers, cabin and stops are read from the link.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Up to 9 travellers in total. The price is the total for the whole party.",
            "default": 1
          },
          "children": {
            "title": "Children (2–11)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "The price is the total for the whole party. If Google shows no flights for a party with children, the search comes back as a free “no flights” row.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in seat",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 with their own seat.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 on an adult's lap (one per adult).",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "The cabin Google prices.",
            "default": "economy"
          },
          "maxStops": {
            "title": "Stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Google filters the list itself: only flights with this many stops or fewer.",
            "default": "any"
          },
          "airlines": {
            "title": "Only these airlines",
            "type": "array",
            "description": "Two-letter airline codes (BA, UA, NH) or an alliance: ONEWORLD, SKYTEAM, STAR_ALLIANCE. Google filters the list itself.",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Without these airlines",
            "type": "array",
            "description": "Two-letter airline codes or an alliance to leave out. A flight is left out when any of its legs is sold under one of these codes.",
            "items": {
              "type": "string"
            }
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 1,
            "type": "integer",
            "description": "In the currency below. Flights above it are left out and not charged."
          },
          "maxDurationMinutes": {
            "title": "Max total duration (minutes)",
            "minimum": 1,
            "type": "integer",
            "description": "Flights longer than this are left out and not charged."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best",
              "price",
              "duration",
              "departure",
              "arrival"
            ],
            "type": "string",
            "description": "Google's own order (best flights first) or yours. Sorting is applied before “Max flights per search”.",
            "default": "best"
          },
          "maxResults": {
            "title": "Max flights per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Google lists about 40–250 flights for a route and date (the whole list, as after “more flights”); you pay for the flights delivered. Lower it for a cheaper run: the first flights are Google's “Best flights”.",
            "default": 100
          },
          "maxReturnLookups": {
            "title": "Round trip: return flights for the top N outbound flights",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "For each of the first N outbound flights the row gets returnOptions — the first return flights Google offers for it (about 3–10) with the round-trip total. One extra request per flight, no extra charge. 0 = off.",
            "default": 0
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code: USD, EUR, GBP, JPY…",
            "default": "USD"
          },
          "country": {
            "title": "Country (point of sale)",
            "type": "string",
            "description": "Two-letter code: US, GB, DE, JP… Google shows the fares it sells in that country.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of airline, airport and city names: en, de, fr, es, ja…",
            "default": "en"
          },
          "includeSearchSummary": {
            "title": "Add a free summary row per search",
            "type": "boolean",
            "description": "Flights found, lowest price, Google's typical price range for the route, price level (low / typical / high) and the price history. A search that found nothing or failed always gets its row.",
            "default": true
          },
          "proxyGroup": {
            "title": "Proxy",
            "enum": [
              "auto",
              "datacenter",
              "residential"
            ],
            "type": "string",
            "description": "Apify Proxy of the run, nothing to set up. Automatic: datacenter IPs, residential only when Google refuses a flight search. Cheapest-dates and return-flight requests always use datacenter IPs.",
            "default": "auto"
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "Two-letter country of the residential proxy IP (default US). Datacenter IPs are picked automatically. Fares follow the Country field above, not the IP."
          },
          "maxConcurrency": {
            "title": "Searches at once",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many pages are read at the same time (1–8). 30 routes took 23 s at 8 (Apify, 17 Nov 2026).",
            "default": 8
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}