{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper — Cheapest Dates, Fares & Price Alerts",
    "description": "Find the cheapest Google Flights fare for many routes and flexible dates (a range or a whole month): price, airline, stops, times, Google's low/typical/high signal and 60-day history. Price alerts between runs. Pay per route × date.",
    "version": "0.1",
    "x-build-id": "Z4ThRDZBoozHaf8mT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleancut~google-flights-cheapest-fares/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleancut-google-flights-cheapest-fares",
        "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/cleancut~google-flights-cheapest-fares/runs": {
      "post": {
        "operationId": "runs-sync-cleancut-google-flights-cheapest-fares",
        "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/cleancut~google-flights-cheapest-fares/run-sync": {
      "post": {
        "operationId": "run-sync-cleancut-google-flights-cheapest-fares",
        "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 route per line, e.g. \"JFK-LAX\", \"NYC → LON\" or \"Buenos Aires - Madrid\". City codes and names search all airports of the city. Several airports in one search: \"JFK/EWR-LHR\". Empty (and no origins/destinations) = demo route NYC-LON.",
            "items": {
              "type": "string"
            }
          },
          "departureDates": {
            "title": "Departure dates",
            "type": "array",
            "description": "One per line: a date (2026-12-10), a range (2026-12-01..2026-12-15), a whole month (2026-12, \"any day of the month\") or days from today (+30, or +30..+36 for a week starting in 30 days). Past dates and dates more than 330 days ahead are skipped. Empty = 30 days from today.",
            "items": {
              "type": "string"
            }
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "one-way",
              "round-trip"
            ],
            "type": "string",
            "description": "One-way, or round trip returning after the number of nights below. Round-trip prices are the total for both flights.",
            "default": "one-way"
          },
          "nights": {
            "title": "Nights (round trip)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Round trip only: days between departure and return (1–60). Example: 7 = depart 2026-12-10, return 2026-12-17.",
            "default": 7
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Passengers aged 12 or more (1–9).",
            "default": 1
          },
          "children": {
            "title": "Children (2–11)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Children aged 2 to 11.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in seat",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 with their own seat.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 on an adult's lap (one per adult).",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium-economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin to price.",
            "default": "economy"
          },
          "maxStops": {
            "title": "Max stops",
            "enum": [
              "any",
              "nonstop",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Only itineraries with at most this many stops.",
            "default": "any"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO currency code for prices (USD, EUR, GBP, MXN, BRL, ARS…).",
            "default": "USD"
          },
          "country": {
            "title": "Country (point of sale)",
            "type": "string",
            "description": "Two-letter country code Google prices for (US, GB, ES, MX, AR…). Fares can differ by country.",
            "default": "US"
          },
          "origins": {
            "title": "Origins",
            "type": "array",
            "description": "Airport codes, city codes or city names, one per line (EZE, NYC, Madrid).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "Destinations",
            "type": "array",
            "description": "Airport codes, city codes or city names, one per line. Every origin is searched to every destination.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "airlines": {
            "title": "Only these airlines",
            "type": "array",
            "description": "Two-letter airline codes (AA, IB, LA…) or alliances (STAR_ALLIANCE, ONEWORLD, SKYTEAM), one per line. Empty = all airlines.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Exclude airlines",
            "type": "array",
            "description": "Two-letter airline codes or alliances to leave out, one per line.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxDurationHours": {
            "title": "Max flight duration (hours)",
            "minimum": 0,
            "maximum": 72,
            "type": "integer",
            "description": "Skip itineraries longer than this, door to door (0 = no limit).",
            "default": 0
          },
          "departureHourFrom": {
            "title": "Depart after (hour)",
            "minimum": 0,
            "maximum": 23,
            "type": "integer",
            "description": "Outbound flights leaving at or after this local hour (0–23). 0 = any time.",
            "default": 0
          },
          "departureHourTo": {
            "title": "Depart before (hour)",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Outbound flights leaving before this local hour (1–24). Example: 6 and 12 = morning flights. 24 = any time.",
            "default": 24
          },
          "maxAlternatives": {
            "title": "Alternatives per fare",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Next-cheapest itineraries to include with each fare (0–20).",
            "default": 5
          },
          "includeReturnFlight": {
            "title": "Include the return flight (round trip)",
            "type": "boolean",
            "description": "For round trips, also get the cheapest return flight for the cheapest outbound (times, airline, stops). Free; it adds one page per fare.",
            "default": true
          },
          "includePriceHistory": {
            "title": "Include the 60-day price history",
            "type": "boolean",
            "description": "Google's lowest price for the search on each of the last 60 days. Turn off for smaller rows.",
            "default": true
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Give your monitor a name (e.g. \"bue-europe-dec\") to remember prices between runs. Each fare then gets changeType, previousPrice and priceChange. Leave empty to turn monitoring off."
          },
          "onlyChanges": {
            "title": "Output only price changes",
            "type": "boolean",
            "description": "With a monitor name, only output new fares and price changes. Unchanged fares are not saved and not charged.",
            "default": false
          },
          "targetPrice": {
            "title": "Target price",
            "minimum": 0,
            "type": "integer",
            "description": "Mark fares at or below this price (in the chosen currency) with isBelowTarget = true, for alerts. 0 = off.",
            "default": 0
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "fares",
              "plan"
            ],
            "type": "string",
            "description": "\"Search fares\" prices every route × date. \"Plan only (free)\" checks your routes and dates and lists each search with its Google Flights link and the maximum cost, without searching or charging.",
            "default": "fares"
          },
          "maxTotalResults": {
            "title": "Max fares in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many route × date fares (0 = no limit). Each fare is one charged result.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Parallel searches",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Searches run at the same time (1–16). 16 tested on Apify: 20 round trips in under a minute. Lower it if you see BLOCKED errors.",
            "default": 16
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Searches go direct first (fastest, ~0.5 s per page). When Google answers with a temporary error, the retries go through this proxy with a new IP each time. Apify Proxy with a US IP is the default (avoids Google's EU cookie page); switch to RESIDENTIAL only if many searches end in SOURCE_ERROR.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}