{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper: Fares, Price Calendar & Tracking",
    "description": "Enter airport codes, routes, or Google Flights URLs and get flight itineraries, fares, stops, layovers, CO2 emissions, price insights, booking links, and price-drop alerts. No login. Error rows are free. Not affiliated with Google.",
    "version": "0.0",
    "x-build-id": "zAXmKCweRXqt8XA2j"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kizukidata~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kizukidata-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/kizukidata~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kizukidata-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/kizukidata~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kizukidata-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": "Origin airport (IATA)",
            "type": "string",
            "description": "3-letter IATA airport or city code (e.g. JFK, LAX, LON). Comma-separate for multi-airport searches. Naming no route, URL or Explore target (empty or settings only) searches JFK to SFO and returns a free sample of at most 5 rows (marked isSample)."
          },
          "destination": {
            "title": "Destination airport (IATA)",
            "type": "string",
            "description": "3-letter IATA airport or city code (e.g. SFO, LHR, TYO). Comma-separate for multi-airport searches. With no target in any field, the sample route JFK to SFO is searched."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Departure date in YYYY-MM-DD format. Defaults to 30 days from today when omitted."
          },
          "returnDate": {
            "title": "Return date (round trip)",
            "type": "string",
            "description": "Optional return date in YYYY-MM-DD format for round-trip searches. Leave empty for one-way."
          },
          "departDaysAhead": {
            "title": "Depart days ahead",
            "minimum": 0,
            "maximum": 330,
            "type": "integer",
            "description": "Relative departure offset in days from today (0-330) when departureDate is not set."
          },
          "tripLengthDays": {
            "title": "Trip length (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Relative round-trip length in days (1-90) after departureDate when returnDate is not set."
          },
          "departDateWindowDays": {
            "title": "Departure date window (days)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Also search each of the next N departure days (0-30) as separate searches.",
            "default": 0
          },
          "routes": {
            "title": "Batch routes",
            "type": "array",
            "description": "List of route objects {origin, destination, departureDate, returnDate} to search in one run.",
            "items": {
              "type": "object"
            },
            "default": []
          },
          "startUrls": {
            "title": "Google Flights URLs",
            "type": "array",
            "description": "Google Flights search URLs (google.com/travel/flights?tfs=... or ?q=...).",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "multiCityLegs": {
            "title": "Multi-city legs",
            "type": "array",
            "description": "Multi-city legs as ORIGIN-DESTINATION-YYYY-MM-DD strings or {origin, destination, date} objects (searched per leg).",
            "default": []
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adult passengers (1-9).",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of child passengers aged 2-11 (0-9).",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in seat",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of infants under 2 in their own seat (0-9).",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of infants under 2 traveling on an adult lap (0-9).",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class preference.",
            "default": "economy"
          },
          "maxStops": {
            "title": "Max stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Maximum number of stops: any, 0 (nonstop), 1, or 2.",
            "default": "any"
          },
          "airlines": {
            "title": "Include airlines",
            "type": "array",
            "description": "IATA airline codes to include (e.g. UA, AA, NH).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludeAirlines": {
            "title": "Exclude airlines",
            "type": "array",
            "description": "IATA airline codes to exclude.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "alliances": {
            "title": "Alliances",
            "type": "array",
            "description": "Airline alliances to include: ONEWORLD, SKYTEAM, STAR_ALLIANCE.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum fare in the selected currency."
          },
          "maxDurationMinutes": {
            "title": "Max duration (minutes)",
            "minimum": 30,
            "type": "integer",
            "description": "Maximum itinerary duration in minutes."
          },
          "connectOnlyVia": {
            "title": "Connect only via",
            "type": "array",
            "description": "Only allow connections through these IATA airport codes.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minLayoverMinutes": {
            "title": "Min layover (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum layover duration in minutes."
          },
          "maxLayoverMinutes": {
            "title": "Max layover (minutes)",
            "minimum": 15,
            "type": "integer",
            "description": "Maximum layover duration in minutes."
          },
          "departureTimeFrom": {
            "title": "Departure time from",
            "type": "string",
            "description": "Earliest departure hour (0-23 or HH:MM, e.g. 06:00)."
          },
          "departureTimeTo": {
            "title": "Departure time to",
            "type": "string",
            "description": "Latest departure hour (0-24 or HH:MM, e.g. 18:00)."
          },
          "arrivalTimeFrom": {
            "title": "Arrival time from",
            "type": "string",
            "description": "Earliest arrival hour (0-23 or HH:MM)."
          },
          "arrivalTimeTo": {
            "title": "Arrival time to",
            "type": "string",
            "description": "Latest arrival hour (0-24 or HH:MM)."
          },
          "lessEmissionsOnly": {
            "title": "Less emissions only",
            "type": "boolean",
            "description": "Filter to flights Google marks as lower CO2 emissions.",
            "default": false
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter ISO currency code for returned prices (e.g. USD, EUR, JPY).",
            "default": "USD"
          },
          "market": {
            "title": "Market (country)",
            "type": "string",
            "description": "2-letter ISO country code for point of sale (e.g. US, GB, JP).",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code for airport and airline names (e.g. en, ja, de).",
            "default": "en"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "top",
              "best",
              "price",
              "departure",
              "arrival",
              "duration",
              "emissions"
            ],
            "type": "string",
            "description": "Result ordering: top (or best), price, departure, arrival, duration, or emissions.",
            "default": "top"
          },
          "calendarDays": {
            "title": "Price calendar (days)",
            "minimum": 0,
            "maximum": 93,
            "type": "integer",
            "description": "Lowest fare for each departure date over N days starting at departureDate (0-93).",
            "default": 0
          },
          "calendarOnly": {
            "title": "Price calendar only",
            "type": "boolean",
            "description": "When true with calendarDays > 0, return only calendar_day rows and skip full itinerary lists.",
            "default": false
          },
          "resolveReturnFlights": {
            "title": "Resolve return flights",
            "type": "boolean",
            "description": "For round trips, fetch return flight options with round-trip total prices for the top outbound flights.",
            "default": false
          },
          "maxReturnResolutions": {
            "title": "Max return resolutions",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many outbound flights to expand into return options (1-25).",
            "default": 5
          },
          "maxReturnOptions": {
            "title": "Max return options per outbound",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum return flights to attach per outbound itinerary (1-50).",
            "default": 10
          },
          "resolveBookingOptions": {
            "title": "Resolve booking options",
            "type": "boolean",
            "description": "Fetch airline and OTA booking sellers, prices, and deep links for the top one-way itineraries (round-trip rows return null).",
            "default": false
          },
          "maxBookingResolutions": {
            "title": "Max booking resolutions",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many top itineraries to resolve booking options for (1-25).",
            "default": 5
          },
          "exploreAnywhere": {
            "title": "Explore anywhere",
            "type": "boolean",
            "description": "List cheapest destinations from origin (JFK when origin is empty) instead of searching a fixed destination.",
            "default": false
          },
          "exploreRegion": {
            "title": "Explore region",
            "enum": [
              "anywhere",
              "europe",
              "southern_europe",
              "asia",
              "africa",
              "north_america",
              "central_america_caribbean",
              "south_america",
              "oceania"
            ],
            "type": "string",
            "description": "Region filter when exploreAnywhere is true.",
            "default": "anywhere"
          },
          "exploreCountry": {
            "title": "Explore country filter",
            "type": "string",
            "description": "Optional country name to filter Explore destinations (e.g. Italy, Japan)."
          },
          "maxDestinations": {
            "title": "Max Explore destinations",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum destinations to return in Explore mode (1-300).",
            "default": 60
          },
          "includePriceInsights": {
            "title": "Include price insights",
            "type": "boolean",
            "description": "Attach Google price level (low/typical/high), typical range, and 60-day price history.",
            "default": true
          },
          "includeUnavailablePrices": {
            "title": "Include flights without fares",
            "type": "boolean",
            "description": "Include flights where Google Flights does not display a fare (price: null). Disabled by default so only priced itineraries are returned and charged.",
            "default": false
          },
          "onlyChanges": {
            "title": "Only price changes (alerts)",
            "type": "boolean",
            "description": "Track fares across scheduled runs and return only new flights or flights whose price changed (with priceDelta and previousPrice).",
            "default": false
          },
          "onlyNewItems": {
            "title": "Only new items",
            "type": "boolean",
            "description": "Return only flights not seen in earlier runs for the same routes.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum total rows to deliver across the run (1-5000).",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify datacenter proxy settings (enabled by default; residential proxies are not used).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}