{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper | Fares, Price Tracker & Booking Options",
    "description": "Scrape Google Flights for any route and dates: up to 300 itineraries per search with price, times, stops, layovers, CO2, return flights and every booking option with bag fees and links, plus a 330-day price calendar. Scheduled runs return only fares that changed, with alerts.",
    "version": "0.1",
    "x-build-id": "BqmerJowELv27QzPL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/corvuslab~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-corvuslab-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/corvuslab~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-corvuslab-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/corvuslab~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-corvuslab-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 (airport code)",
            "type": "string",
            "description": "3-letter airport code, for example JFK, LHR or SIN. Several airports: JFK, EWR. City codes NYC, LON, PAR, TYO, CHI, WAS, MIL, ROM, SAO, BJS, SEL, STO and a few more search all of that city's airports. Empty with no routes below = a demo search JFK → LAX."
          },
          "destination": {
            "title": "🛬 To (airport code)",
            "type": "string",
            "description": "3-letter airport code, for example LAX, CDG or BKK. Several airports and city codes work as for From."
          },
          "departureDate": {
            "title": "📅 Departure date",
            "type": "string",
            "description": "YYYY-MM-DD, or a number of days from today such as +30 (keeps a scheduled run moving forward). Up to about 11 months ahead. Empty = 30 days from today."
          },
          "returnDate": {
            "title": "📅 Return date (round trip)",
            "type": "string",
            "description": "Leave empty for one-way. YYYY-MM-DD or days from today such as +37. Round-trip prices are the total for both directions."
          },
          "routes": {
            "title": "🗺️ More routes",
            "type": "array",
            "description": "Several routes in one run, each searched separately: [{\"origin\": \"JFK\", \"destination\": \"LHR\", \"departureDate\": \"+30\", \"returnDate\": \"+37\"}]. A route without dates uses the dates above. Passengers, cabin and filters apply to every route."
          },
          "multiCityLegs": {
            "title": "🧭 Multi-city trip",
            "type": "array",
            "description": "One multi-city trip, two or more legs in travel order: [{\"origin\": \"SIN\", \"destination\": \"BKK\", \"date\": \"+30\"}, {\"origin\": \"BKK\", \"destination\": \"HKT\", \"date\": \"+35\"}]. Returns the first-leg options priced for the whole trip; the top ones are completed through every leg (see Multi-city options to complete)."
          },
          "exploreDestinations": {
            "title": "🌍 Explore: cheapest destinations from From",
            "type": "boolean",
            "description": "List the cheapest destinations from the From airport instead of searching a fixed route. Each row is one destination with its cheapest fare, airline, stops, flight time and Google's suggested travel dates. To and the route fields are not used.",
            "default": false
          },
          "exploreRegions": {
            "title": "🗺️ Explore regions",
            "type": "array",
            "description": "Where to look. All = the whole world plus a deeper search of every region (the most destinations).",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "world",
                "europe",
                "asia",
                "northAmerica",
                "southAmerica",
                "africaMiddleEast",
                "oceania"
              ],
              "enumTitles": [
                "All",
                "World overview",
                "Europe",
                "Asia",
                "North America & Caribbean",
                "South America",
                "Africa & Middle East",
                "Oceania"
              ]
            },
            "default": [
              "all"
            ]
          },
          "exploreTripType": {
            "title": "↔️ Explore trip type",
            "enum": [
              "roundTrip",
              "oneWay"
            ],
            "type": "string",
            "description": "Round trips (Google's suggested ~1-week trips) or one-way fares.",
            "default": "roundTrip"
          },
          "maxDestinations": {
            "title": "💯 Max destinations",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Destinations to return, cheapest first.",
            "default": 100
          },
          "adults": {
            "title": "👤 Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Passengers aged 12 and over (1–9). Prices are the total for all passengers.",
            "default": 1
          },
          "children": {
            "title": "🧒 Children (2–11)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Passengers aged 2 to 11.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "👶 Infants in a seat",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Under 2, with their own seat.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "👶 Infants on lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "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": "Economy, premium economy, business or first.",
            "default": "economy"
          },
          "maxResults": {
            "title": "💯 Max flights per search",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Itineraries to return per route and date, 1–300 (Google lists up to about 300). The list is sorted first and cut second, so with Sort by = Cheapest you get the cheapest ones.",
            "default": 100
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "best",
              "price",
              "departure",
              "arrival",
              "duration"
            ],
            "type": "string",
            "description": "Google's own orders: Best (Google's ranking), Cheapest, Departure time, Arrival time or Duration.",
            "default": "best"
          },
          "maxStops": {
            "title": "🔀 Max stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Any number of stops, nonstop only, up to one or up to two stops.",
            "default": "any"
          },
          "airlines": {
            "title": "🏷️ Only these airlines or alliances",
            "type": "array",
            "description": "2-letter airline codes (DL, BA, SQ) or an alliance: ONEWORLD, SKYTEAM, STAR_ALLIANCE. Empty = all airlines.",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "🚫 Exclude airlines",
            "type": "array",
            "description": "2-letter airline codes to leave out, for example F9 or NK.",
            "items": {
              "type": "string"
            }
          },
          "maxPrice": {
            "title": "💵 Max price",
            "type": "integer",
            "description": "Leave out itineraries above this price (in your currency, all passengers)."
          },
          "maxDurationMinutes": {
            "title": "⏱️ Max total duration (minutes)",
            "type": "integer",
            "description": "Leave out itineraries longer than this, for example 720 for 12 hours."
          },
          "maxLayoverMinutes": {
            "title": "⏳ Max layover (minutes)",
            "type": "integer",
            "description": "Leave out itineraries with any layover longer than this, for example 180."
          },
          "departureTimeFrom": {
            "title": "🌅 Depart after (HH:MM)",
            "type": "string",
            "description": "Earliest local departure time, for example 06:00."
          },
          "departureTimeTo": {
            "title": "🌇 Depart before (HH:MM)",
            "type": "string",
            "description": "Latest local departure time, for example 12:00."
          },
          "arrivalTimeFrom": {
            "title": "🛬 Arrive after (HH:MM)",
            "type": "string",
            "description": "Earliest local arrival time."
          },
          "arrivalTimeTo": {
            "title": "🛬 Arrive before (HH:MM)",
            "type": "string",
            "description": "Latest local arrival time, for example 22:00."
          },
          "includeReturnFlights": {
            "title": "🔁 Return flights (round trips)",
            "type": "boolean",
            "description": "For the top outbound itineraries of a round trip, add Google's return flights, each with the total price for both directions.",
            "default": false
          },
          "maxReturnResolutions": {
            "title": "Outbound flights to add returns to",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Per search, counted from the top of the sorted list. Each one takes one extra request.",
            "default": 5
          },
          "maxReturnOptions": {
            "title": "Return flights per outbound",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many return flights to keep for each outbound flight, cheapest first.",
            "default": 10
          },
          "includeBookingOptions": {
            "title": "🎫 Booking options (who sells it)",
            "type": "boolean",
            "description": "For the top itineraries, add every seller Google lists — the airline and travel agencies — with their price, fare name, checked-bag fees and a booking link. Round trips are priced with the cheapest return flight.",
            "default": false
          },
          "maxBookingResolutions": {
            "title": "Flights to add booking options to",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Per search, counted from the top of the sorted list. Each one takes one or two extra requests.",
            "default": 5
          },
          "maxMultiCityResolutions": {
            "title": "🧭 Multi-city options to complete",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "For a multi-city trip, follow this many first-leg options through every later leg (cheapest flight at each step), adding the full itinerary and its total price. 0 = first leg only. One extra request per later leg.",
            "default": 5
          },
          "calendarDays": {
            "title": "📆 Price calendar (days)",
            "minimum": 0,
            "maximum": 330,
            "type": "integer",
            "description": "Cheapest fare for each departure date over this many days, starting at the departure date — Google's date grid as rows (type calendarDay). 0 = off, 60 = two months, up to 330. Round trips keep the trip length fixed.",
            "default": 0
          },
          "calendarOnly": {
            "title": "📆 Calendar only (no flight list)",
            "type": "boolean",
            "description": "Return only the price calendar — the cheapest way to sweep dates or routes.",
            "default": false
          },
          "includePriceHistory": {
            "title": "📈 Price history on every flight",
            "type": "boolean",
            "description": "Add Google's ~60-day history of the lowest price for the route to every flight row. The price level (low / typical / high) and typical price range are always included.",
            "default": false
          },
          "includeSearchSummary": {
            "title": "🧾 Search summary row",
            "type": "boolean",
            "description": "Add one row per search (type searchSummary) with how many flights Google listed, the lowest price, price level, typical range and price history.",
            "default": false
          },
          "trackPriceChanges": {
            "title": "♻️ Track fare changes",
            "type": "boolean",
            "description": "Remember each flight's fare. Later runs mark rows NEW or UPDATED (fare changed), add previousPrice and priceChange, and skip flights whose fare did not change — those are not charged. With relative dates (+30) the same lead time is compared every day.",
            "default": false
          },
          "stateKey": {
            "title": "🗝️ Tracker name",
            "type": "string",
            "description": "Optional name for the fare history, so several schedules can share or separate it. Empty = derived from your routes, dates and passengers."
          },
          "emitUnchanged": {
            "title": "🔁 Include unchanged fares",
            "type": "boolean",
            "description": "Also return flights whose fare did not change (marked UNCHANGED, charged as results).",
            "default": false
          },
          "telegramToken": {
            "title": "💬 Telegram bot token",
            "type": "string",
            "description": "Bot token from @BotFather."
          },
          "telegramChatId": {
            "title": "🆔 Telegram chat ID",
            "type": "string",
            "description": "Chat or channel ID, e.g. \"-100123456789\" or \"@yourchannel\"."
          },
          "slackWebhookUrl": {
            "title": "💼 Slack webhook URL",
            "type": "string",
            "description": "Slack incoming-webhook URL."
          },
          "discordWebhookUrl": {
            "title": "🎮 Discord webhook URL",
            "type": "string",
            "description": "Discord incoming-webhook URL."
          },
          "webhookUrl": {
            "title": "🪝 Webhook URL",
            "type": "string",
            "description": "Any HTTPS endpoint. Receives a JSON POST with the flights — works with n8n, Make and Zapier."
          },
          "webhookHeaders": {
            "title": "🧾 Webhook headers",
            "type": "object",
            "description": "Extra headers for the webhook request, e.g. {\"Authorization\": \"Bearer xyz\"}."
          },
          "notificationLimit": {
            "title": "🔢 Flights per notification",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many flights to include in each notification message.",
            "default": 5
          },
          "currency": {
            "title": "💱 Currency",
            "type": "string",
            "description": "ISO code for prices: USD, EUR, GBP, INR, SGD…",
            "default": "USD"
          },
          "market": {
            "title": "🌐 Market (country of sale)",
            "type": "string",
            "description": "Two-letter country code of the point of sale, e.g. US, GB, DE, IN. Fares, sellers and booking links can differ by market.",
            "default": "US"
          },
          "language": {
            "title": "🗣️ Language",
            "type": "string",
            "description": "Language of airport and airline names, e.g. en, de, es, fr.",
            "default": "en"
          },
          "excludeEmptyFields": {
            "title": "🧹 Leave out empty fields",
            "type": "boolean",
            "description": "Drop fields that have no value from each row, for smaller exports.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy configuration",
            "type": "object",
            "description": "Optional. The actor works without a proxy; set one only if your runs are refused.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}