{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Prices API",
    "description": "Google Flights prices API & scraper: get live fares, schedules, stops, layovers, airlines, CO2 and booking options for one-way, round-trip and multi-city routes. Export flight price data to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "GW1rJ6MxNQK6iUcfd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insights_data~google-flights-prices-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insights_data-google-flights-prices-api",
        "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/insights_data~google-flights-prices-api/runs": {
      "post": {
        "operationId": "runs-sync-insights_data-google-flights-prices-api",
        "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/insights_data~google-flights-prices-api/run-sync": {
      "post": {
        "operationId": "run-sync-insights_data-google-flights-prices-api",
        "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": {
          "routes": {
            "title": "🛫 Routes",
            "type": "array",
            "description": "One search per entry. Write the airports like LAX-JFK or LAX to JFK. Use city codes or several airports with commas (LAX,BUR-JFK). Add dates after the route to override the dates below (LAX-JFK 2026-12-15 2026-12-20).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max flights per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The most flights saved for each route and date. Google shows about 30 on the first page and about 150 in total.",
            "default": 20
          },
          "departureDate": {
            "title": "📅 Departure date",
            "type": "string",
            "description": "Pick a date or a relative time like 3 days, 2 weeks or 1 month from today. Empty = 30 days from today."
          },
          "returnDate": {
            "title": "📆 Return date",
            "type": "string",
            "description": "Leave empty for one-way. Fill it for a round trip."
          },
          "travelClass": {
            "title": "💺 Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin for every search.",
            "default": "economy"
          },
          "adults": {
            "title": "🧑 Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Passengers aged 12 and over. At most 9 passengers in total.",
            "default": 1
          },
          "sortBy": {
            "title": "↕️ Sort results by",
            "enum": [
              "best",
              "price",
              "duration",
              "departure"
            ],
            "type": "string",
            "description": "Best = the order Google shows. The other choices look through all available flights first, then sort.",
            "default": "best"
          },
          "maxStops": {
            "title": "🛑 Stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Most stops allowed.",
            "default": "any"
          },
          "maxPrice": {
            "title": "💰 Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in the chosen currency. 0 = no limit.",
            "default": 0
          },
          "airlines": {
            "title": "✈️ Only these airlines",
            "type": "array",
            "description": "Airline codes like DL, B6, or alliances: ONEWORLD, SKYTEAM, STAR_ALLIANCE.",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "🚫 Skip these airlines",
            "type": "array",
            "description": "Airline codes like NK or F9. Flights with a leg on one of them are dropped.",
            "items": {
              "type": "string"
            }
          },
          "excludeBasic": {
            "title": "🎟️ Skip Basic Economy",
            "type": "boolean",
            "description": "Economy only: leaves out the cheapest fares with the most restrictions.",
            "default": false
          },
          "maxDurationMinutes": {
            "title": "⏱️ Max total travel time (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit.",
            "default": 0
          },
          "maxLayoverMinutes": {
            "title": "⌛ Max layover (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "Longest single layover allowed. 0 = no limit.",
            "default": 0
          },
          "departureTimeFrom": {
            "title": "🌅 Depart after",
            "pattern": "^([01]?\\d|2[0-3]):[0-5]\\d$",
            "type": "string",
            "description": "Earliest departure time of the first flight, like 06:00."
          },
          "departureTimeTo": {
            "title": "🌇 Depart before",
            "pattern": "^([01]?\\d|2[0-3]):[0-5]\\d$",
            "type": "string",
            "description": "Latest departure time of the first flight, like 22:00."
          },
          "arrivalTimeFrom": {
            "title": "🛬 Arrive after",
            "pattern": "^([01]?\\d|2[0-3]):[0-5]\\d$",
            "type": "string",
            "description": "Earliest arrival time of the last flight, like 08:00."
          },
          "arrivalTimeTo": {
            "title": "🌃 Arrive before",
            "pattern": "^([01]?\\d|2[0-3]):[0-5]\\d$",
            "type": "string",
            "description": "Latest arrival time of the last flight, like 23:00."
          },
          "departureDateTo": {
            "title": "🗓️ Last departure date",
            "type": "string",
            "description": "Search every day from the departure date up to this date (31 days at most). The Searches table then shows the lowest price per day."
          },
          "tripLengthDays": {
            "title": "🧭 Trip length (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "For a date range: the return flight is this many days after each departure. 0 = use the return date above.",
            "default": 0
          },
          "multiCityLegs": {
            "title": "🗺️ Multi-city legs",
            "type": "array",
            "description": "Two or more legs, each like {\"from\":\"LAX\",\"to\":\"JFK\",\"date\":\"2026-12-15\"}. Runs as one extra search."
          },
          "children": {
            "title": "🧒 Children",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Passengers aged 2 to 11.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "👶 Infants on lap",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Children under 2 sitting on an adult lap. Cannot be more than adults.",
            "default": 0
          },
          "currency": {
            "title": "💱 Currency",
            "enum": [
              "ALL",
              "DZD",
              "ARS",
              "AMD",
              "AWG",
              "AUD",
              "AZN",
              "BSD",
              "BHD",
              "BYN",
              "BMD",
              "BAM",
              "BRL",
              "GBP",
              "XPF",
              "CAD",
              "CLP",
              "CNY",
              "COP",
              "CRC",
              "CUP",
              "CZK",
              "DKK",
              "DOP",
              "EGP",
              "EUR",
              "GEL",
              "HKD",
              "HUF",
              "ISK",
              "INR",
              "IDR",
              "IRR",
              "ILS",
              "JMD",
              "JPY",
              "JOD",
              "KZT",
              "KWD",
              "LBP",
              "MKD",
              "MYR",
              "MXN",
              "MDL",
              "MAD",
              "TWD",
              "NZD",
              "NGN",
              "NOK",
              "OMR",
              "PKR",
              "PAB",
              "PEN",
              "PHP",
              "PLN",
              "QAR",
              "RON",
              "RUB",
              "SAR",
              "RSD",
              "SGD",
              "ZAR",
              "KRW",
              "SEK",
              "CHF",
              "THB",
              "TRY",
              "USD",
              "UAH",
              "AED",
              "VND"
            ],
            "type": "string",
            "description": "Prices are shown in this currency.",
            "default": "USD"
          },
          "country": {
            "title": "📍 Country",
            "enum": [
              "af",
              "al",
              "dz",
              "as",
              "ad",
              "ao",
              "ag",
              "ar",
              "am",
              "au",
              "at",
              "az",
              "bs",
              "bh",
              "bd",
              "by",
              "be",
              "bz",
              "bj",
              "bt",
              "bo",
              "ba",
              "bw",
              "br",
              "bn",
              "bg",
              "bf",
              "bi",
              "kh",
              "cm",
              "ca",
              "cv",
              "cf",
              "td",
              "cl",
              "cn",
              "co",
              "cg",
              "cd",
              "ck",
              "cr",
              "hr",
              "cu",
              "cy",
              "cz",
              "ci",
              "dk",
              "dj",
              "dm",
              "do",
              "ec",
              "eg",
              "sv",
              "ee",
              "et",
              "fj",
              "fi",
              "fr",
              "ga",
              "gm",
              "ge",
              "de",
              "gh",
              "gi",
              "gr",
              "gl",
              "gt",
              "gg",
              "gy",
              "ht",
              "hn",
              "hk",
              "hu",
              "is",
              "in",
              "id",
              "ir",
              "iq",
              "ie",
              "im",
              "il",
              "it",
              "jm",
              "jp",
              "je",
              "jo",
              "kz",
              "ke",
              "ki",
              "kw",
              "kg",
              "la",
              "lv",
              "lb",
              "ls",
              "ly",
              "li",
              "lt",
              "lu",
              "mg",
              "mw",
              "my",
              "mv",
              "ml",
              "mt",
              "mu",
              "mx",
              "fm",
              "md",
              "mn",
              "me",
              "ma",
              "mz",
              "mm",
              "na",
              "nr",
              "np",
              "nl",
              "nz",
              "ni",
              "ne",
              "ng",
              "nu",
              "mk",
              "no",
              "om",
              "pk",
              "ps",
              "pa",
              "pg",
              "py",
              "pe",
              "ph",
              "pn",
              "pl",
              "pt",
              "pr",
              "qa",
              "ro",
              "ru",
              "rw",
              "ws",
              "sm",
              "sa",
              "sn",
              "rs",
              "sc",
              "sl",
              "sg",
              "sk",
              "si",
              "sb",
              "so",
              "za",
              "kr",
              "es",
              "lk",
              "sh",
              "vc",
              "sr",
              "se",
              "ch",
              "st",
              "tw",
              "tj",
              "tz",
              "th",
              "tl",
              "tg",
              "to",
              "tt",
              "tn",
              "tm",
              "tr",
              "ug",
              "ua",
              "ae",
              "gb",
              "us",
              "uy",
              "uz",
              "vu",
              "ve",
              "vn",
              "zm",
              "zw"
            ],
            "type": "string",
            "description": "Country of the Google Flights site (changes prices and fares shown).",
            "default": "us"
          },
          "language": {
            "title": "🗣️ Language",
            "enum": [
              "af",
              "sq",
              "am",
              "ar",
              "as",
              "bn",
              "eu",
              "bs",
              "bg",
              "ca",
              "zh-HK",
              "zh-CN",
              "zh-TW",
              "hr",
              "cs",
              "da",
              "nl",
              "en-GB",
              "en-US",
              "et",
              "fil",
              "fi",
              "fr",
              "gl",
              "ka",
              "de",
              "el",
              "gu",
              "iw",
              "hi",
              "hu",
              "is",
              "id",
              "it",
              "ja",
              "kn",
              "km",
              "ko",
              "lo",
              "lv",
              "lt",
              "mk",
              "ms",
              "ml",
              "mr",
              "mn",
              "ne",
              "no",
              "or",
              "fa",
              "pl",
              "pt-BR",
              "pt-PT",
              "pa",
              "ro",
              "ru",
              "sr",
              "sr-Latn",
              "si",
              "sk",
              "sl",
              "es-419",
              "es",
              "sw",
              "sv",
              "ta",
              "te",
              "th",
              "tr",
              "uk",
              "ur",
              "vi"
            ],
            "type": "string",
            "description": "Language of airport and airline names.",
            "default": "en-US"
          },
          "fetchBookingOptions": {
            "title": "🧾 Booking options",
            "type": "boolean",
            "description": "Also list who sells each flight and for how much (airline and travel sites). Saved in the Booking options table.",
            "default": false
          },
          "maxBookingLookups": {
            "title": "🔍 Flights to look up for booking options",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Booking options are looked up for the first flights of every search.",
            "default": 5
          },
          "resolveReturnFlights": {
            "title": "↩️ Return flights",
            "type": "boolean",
            "description": "Round trips only: also list the return flights that go with the first outbound flights. Saved in the Return flights table.",
            "default": false
          },
          "maxReturnResolutions": {
            "title": "🔎 Outbound flights to look up for returns",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Return flights are looked up for this many outbound flights per search.",
            "default": 3
          },
          "bookingToken": {
            "title": "🎟️ Booking token",
            "type": "string",
            "description": "Optional. Paste a Booking token from an earlier run to get only the booking options of that flight. It uses the dates of the first route above."
          },
          "departureToken": {
            "title": "➡️ Departure token",
            "type": "string",
            "description": "Optional. Paste a Departure token from an earlier run to list the flights of the next leg after that choice. It uses the dates of the first route above."
          },
          "concurrency": {
            "title": "⚡ Parallel searches",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many searches run at the same time.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Starts without a proxy and switches to a proxy by itself when Google asks for it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}