{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Fare & Itinerary Filter Scraper",
    "description": "Search Google Flights for one-way or round-trip fares across any cabin class, then narrow results by stops, total duration, airline, and price range, with an optional price-alert flag.",
    "version": "1.1",
    "x-build-id": "JMe14jW0FAs170tz8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~google-flights-fare-and-itinerary-filter-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-google-flights-fare-and-itinerary-filter-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/vexaloom-labs~google-flights-fare-and-itinerary-filter-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-google-flights-fare-and-itinerary-filter-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/vexaloom-labs~google-flights-fare-and-itinerary-filter-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-google-flights-fare-and-itinerary-filter-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "calendar"
            ],
            "type": "string",
            "description": "Search flights, or collect the cheapest fare for each date around your departure date.",
            "default": "search"
          },
          "originAirport": {
            "title": "Origin airport or city",
            "type": "string",
            "description": "Three-letter IATA airport or city code, e.g. JFK, LHR, NYC. One code per search; use `searches` for alternate airports.",
            "default": "JFK"
          },
          "destinationAirport": {
            "title": "Destination airport or city",
            "type": "string",
            "description": "Three-letter IATA airport or city code, e.g. LHR, HND, LON. One code per search; use `searches` for alternate airports.",
            "default": "LHR"
          },
          "outboundDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Departure date in YYYY-MM-DD format. Leave empty to use 30 days from today (UTC); the chosen date is logged."
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "Return date in YYYY-MM-DD format. Leave empty for a one-way search."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Travellers aged 12 and over (1-9).",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Travellers aged 2-11 (0-8).",
            "default": 0
          },
          "infants": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 travelling on an adult lap (0-8). Cannot exceed the number of adults.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in a seat",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 travelling in their own seat (0-8).",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin to search.",
            "default": "economy"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "ALL",
              "DZD",
              "ARS",
              "AMD",
              "AWG",
              "AUD",
              "AZN",
              "BSD",
              "BHD",
              "BYN",
              "BMD",
              "BAM",
              "BRL",
              "GBP",
              "CAD",
              "XPF",
              "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",
              "UAH",
              "AED",
              "USD",
              "VND"
            ],
            "type": "string",
            "description": "Currency for every price.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "enum": [
              "af",
              "bs",
              "ca",
              "cs",
              "da",
              "de",
              "et",
              "en-GB",
              "en-US",
              "es",
              "es-419",
              "eu",
              "fil",
              "fr",
              "gl",
              "hr",
              "id",
              "is",
              "it",
              "sw",
              "lv",
              "lt",
              "hu",
              "ms",
              "nl",
              "no",
              "pl",
              "pt-BR",
              "pt-PT",
              "ro",
              "sq",
              "sk",
              "sl",
              "sr-Latn",
              "fi",
              "sv",
              "vi",
              "tr",
              "el",
              "bg",
              "mk",
              "mn",
              "ru",
              "sr",
              "uk",
              "ka",
              "iw",
              "ur",
              "ar",
              "fa",
              "am",
              "ne",
              "mr",
              "hi",
              "as",
              "bn",
              "pa",
              "gu",
              "or",
              "ta",
              "te",
              "kn",
              "ml",
              "si",
              "th",
              "lo",
              "km",
              "ko",
              "zh-HK",
              "ja",
              "zh-CN",
              "zh-TW",
              "en"
            ],
            "type": "string",
            "description": "Language Google Flights uses for airport and airline names.",
            "default": "en"
          },
          "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",
              "CI",
              "HR",
              "CU",
              "CY",
              "CZ",
              "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",
              "ST",
              "SA",
              "SN",
              "RS",
              "SC",
              "SL",
              "SG",
              "SK",
              "SI",
              "SB",
              "SO",
              "ZA",
              "KR",
              "ES",
              "LK",
              "SH",
              "VC",
              "SR",
              "SE",
              "CH",
              "TW",
              "TJ",
              "TZ",
              "TH",
              "TL",
              "TG",
              "TO",
              "TT",
              "TN",
              "TR",
              "TM",
              "UG",
              "UA",
              "AE",
              "GB",
              "US",
              "UY",
              "UZ",
              "VU",
              "VE",
              "VN",
              "ZM",
              "ZW"
            ],
            "type": "string",
            "description": "Country whose fares and availability Google should show.",
            "default": "US"
          },
          "maxStops": {
            "title": "Maximum stops",
            "enum": [
              "any",
              "nonstop",
              "one_stop",
              "two_or_fewer"
            ],
            "type": "string",
            "description": "Largest number of stops allowed on any leg.",
            "default": "any"
          },
          "airlines": {
            "title": "Only these airlines",
            "type": "array",
            "description": "Two-letter IATA airline codes to keep, e.g. [\"BA\",\"AA\"]. Flights marketed by or codesharing with these airlines are kept. Empty means all airlines.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Exclude these airlines",
            "type": "array",
            "description": "Two-letter IATA airline codes to remove, e.g. [\"FR\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop fares below this price, in the chosen currency."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop fares above this price, in the chosen currency."
          },
          "maxDurationMinutes": {
            "title": "Maximum total duration (minutes)",
            "minimum": 30,
            "maximum": 4320,
            "type": "integer",
            "description": "Drop itineraries longer than this, including layovers."
          },
          "departureTimeRange": {
            "title": "Departure time",
            "enum": [
              "any",
              "00-06",
              "06-12",
              "12-18",
              "18-24"
            ],
            "type": "string",
            "description": "Only departures in this local-time window.",
            "default": "any"
          },
          "arrivalTimeRange": {
            "title": "Arrival time",
            "enum": [
              "any",
              "00-06",
              "06-12",
              "12-18",
              "18-24"
            ],
            "type": "string",
            "description": "Only arrivals in this local-time window.",
            "default": "any"
          },
          "lessEmissions": {
            "title": "Lower-emission flights only",
            "type": "boolean",
            "description": "Keep itineraries Google marks as producing less CO2 than typical for the route.",
            "default": false
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "top",
              "cheapest",
              "fastest",
              "earliestDeparture",
              "latestDeparture",
              "lowestEmissions"
            ],
            "type": "string",
            "description": "How to order the returned flights.",
            "default": "top"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of flight or calendar rows to return; in calendar mode it also caps the number of days.",
            "default": 61
          },
          "returnOptionsTop": {
            "title": "Return options for top outbounds",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "For round trips, fetch return flights for this many top outbound options. 0 turns this off.",
            "default": 0
          },
          "returnOptionsPerOutbound": {
            "title": "Return options per outbound",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many return flights to attach to each selected outbound.",
            "default": 5
          },
          "includePriceInsights": {
            "title": "Include price insights",
            "type": "boolean",
            "description": "Add Google's current, typical and historical price range when available.",
            "default": true
          },
          "priceGraphDays": {
            "title": "Price calendar days",
            "minimum": 1,
            "maximum": 61,
            "type": "integer",
            "description": "Number of calendar days to return in price-calendar mode (1-61), starting on the departure date; also capped by maxResults.",
            "default": 61
          },
          "priceAlertThreshold": {
            "title": "Price alert threshold",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "When set, add a priceBelowThreshold flag to every fare in the chosen currency."
          },
          "searches": {
            "title": "Additional searches",
            "type": "array",
            "description": "Optional list of searches to run in one go. Each item needs originAirport, destinationAirport, outboundDate and an optional returnDate. Up to 20.",
            "items": {
              "type": "object",
              "properties": {
                "originAirport": {
                  "title": "Origin airport or city",
                  "type": "string",
                  "description": "Origin IATA airport or city code (one per search)."
                },
                "destinationAirport": {
                  "title": "Destination airport or city",
                  "type": "string",
                  "description": "Destination IATA airport or city code (one per search)."
                },
                "outboundDate": {
                  "title": "Departure date",
                  "type": "string",
                  "description": "Departure date YYYY-MM-DD."
                },
                "returnDate": {
                  "title": "Return date",
                  "type": "string",
                  "description": "Return date YYYY-MM-DD; leave empty for one-way."
                }
              },
              "required": [
                "originAirport",
                "destinationAirport"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}