{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Cheapest Dates Scraper",
    "description": "Find Google Flights’ cheapest date-range option for airport routes with price, airline, stops, duration, and itinerary legs. Batch routes and choose a future search window.",
    "version": "1.0",
    "x-build-id": "LxcHwCtbdfaXee5VN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrappa~google-flights-date-range-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrappa-google-flights-date-range-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/thescrappa~google-flights-date-range-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thescrappa-google-flights-date-range-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/thescrappa~google-flights-date-range-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thescrappa-google-flights-date-range-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": [
          "routes"
        ],
        "properties": {
          "routes": {
            "title": "Airport routes",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Origin and destination airport codes to compare for the same date range.",
            "items": {
              "type": "object",
              "required": [
                "origin",
                "destination"
              ],
              "properties": {
                "origin": {
                  "title": "Origin",
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 3,
                  "pattern": "^[a-zA-Z]{3}$",
                  "description": "Origin airport code for the route or destination search.",
                  "editor": "textfield"
                },
                "destination": {
                  "title": "Destination",
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 3,
                  "pattern": "^[a-zA-Z]{3}$",
                  "description": "KAYAK destination code for the vacation-package search.",
                  "editor": "textfield"
                },
                "adults": {
                  "title": "Adults",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9,
                  "nullable": true,
                  "description": "Number of adult travelers included in the search.",
                  "editor": "number"
                },
                "children": {
                  "title": "Children",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9,
                  "nullable": true,
                  "description": "Number of children traveling on the cruise search.",
                  "editor": "number"
                },
                "infants_in_seat": {
                  "title": "Infants In Seat",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9,
                  "nullable": true,
                  "description": "Number of infants in seat (0-9, default: 0)",
                  "editor": "number"
                },
                "infants_on_lap": {
                  "title": "Infants On Lap",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9,
                  "nullable": true,
                  "description": "Number of infants on lap (0-9, default: 0)",
                  "editor": "number"
                },
                "cabin_class": {
                  "title": "Cabin Class",
                  "type": "string",
                  "enum": [
                    "economy",
                    "premium_economy",
                    "business",
                    "first"
                  ],
                  "nullable": true,
                  "description": "Cabin class: economy, premium_economy, business, or first (default: economy) Accepted values: economy, premium_economy, business, first.",
                  "editor": "select"
                },
                "exclude_basic": {
                  "title": "Exclude Basic",
                  "type": "boolean",
                  "nullable": true,
                  "description": "Exclude basic economy fares when searching in economy class (default: false)",
                  "editor": "checkbox"
                },
                "max_stops": {
                  "title": "Max Stops",
                  "type": "string",
                  "enum": [
                    "any",
                    "nonstop",
                    "one_or_fewer",
                    "two_or_fewer"
                  ],
                  "nullable": true,
                  "description": "Maximum stops: any, nonstop, one_or_fewer, or two_or_fewer (default: any) Accepted values: any, nonstop, one_or_fewer, two_or_fewer.",
                  "editor": "select"
                },
                "hl": {
                  "title": "Hl",
                  "type": "string",
                  "pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$",
                  "nullable": true,
                  "description": "Language code (e.g., en, de, en-US)",
                  "editor": "textfield"
                },
                "gl": {
                  "title": "Gl",
                  "type": "string",
                  "pattern": "^[a-zA-Z]{2}$",
                  "nullable": true,
                  "description": "Country/region code (e.g., us, de, gb)",
                  "editor": "textfield"
                },
                "currency": {
                  "title": "Currency",
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 3,
                  "nullable": true,
                  "description": "Currency code for prices (e.g., USD, EUR, GBP)",
                  "editor": "textfield"
                },
                "outbound_times": {
                  "title": "Outbound Times",
                  "type": "string",
                  "pattern": "^\\s*(?:[01]?\\d|2[0-3])\\s*,\\s*(?:[01]?\\d|2[0-3])\\s*(?:,\\s*(?:[01]?\\d|2[0-3])\\s*,\\s*(?:[01]?\\d|2[0-3])\\s*)?$",
                  "nullable": true,
                  "description": "Outbound time window as comma-separated hours, e.g. \"6,18\" for departures between 06:00 and 18:00. Two further values narrow the arrival window.",
                  "editor": "textfield"
                },
                "bags": {
                  "title": "Bags",
                  "type": "integer",
                  "nullable": true,
                  "description": "Carry-on bag count. Only 0 is currently supported. Accepted values: 0. Allowed values: 0.",
                  "editor": "number",
                  "minimum": 0,
                  "maximum": 0
                },
                "api_version": {
                  "title": "Api Version",
                  "type": "integer",
                  "description": "Value accepted by the Google Flights Cheapest Dates Scraper search. Accepted values: 2. Allowed values: 2.",
                  "editor": "number",
                  "minimum": 2,
                  "maximum": 2
                },
                "from_date": {
                  "title": "From Date",
                  "type": "string",
                  "description": "Start of date range in Y-m-d format When omitted, the start date is set to 30 days from today.",
                  "editor": "textfield"
                },
                "to_date": {
                  "title": "To Date",
                  "type": "string",
                  "description": "End of date range in Y-m-d format When omitted, the end date is set to seven days after the start date.",
                  "editor": "textfield"
                },
                "trip_duration": {
                  "title": "Trip Duration",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 30,
                  "nullable": true,
                  "description": "Duration of trip in days (1-30, default: 7)",
                  "editor": "number"
                }
              }
            }
          },
          "destination": {
            "title": "Destination",
            "pattern": "^[a-zA-Z]{3}$",
            "minLength": 3,
            "maxLength": 3,
            "type": "string",
            "description": "KAYAK destination code for the vacation-package search."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adult travelers included in the search."
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of children traveling on the cruise search."
          },
          "infants_in_seat": {
            "title": "Infants In Seat",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of infants in seat (0-9, default: 0)"
          },
          "infants_on_lap": {
            "title": "Infants On Lap",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of infants on lap (0-9, default: 0)"
          },
          "cabin_class": {
            "title": "Cabin Class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class: economy, premium_economy, business, or first (default: economy) Accepted values: economy, premium_economy, business, first."
          },
          "exclude_basic": {
            "title": "Exclude Basic",
            "type": "boolean",
            "description": "Exclude basic economy fares when searching in economy class (default: false)"
          },
          "max_stops": {
            "title": "Max Stops",
            "enum": [
              "any",
              "nonstop",
              "one_or_fewer",
              "two_or_fewer"
            ],
            "type": "string",
            "description": "Maximum stops: any, nonstop, one_or_fewer, or two_or_fewer (default: any) Accepted values: any, nonstop, one_or_fewer, two_or_fewer."
          },
          "hl": {
            "title": "Hl",
            "pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$",
            "type": "string",
            "description": "Language code (e.g., en, de, en-US)"
          },
          "gl": {
            "title": "Gl",
            "pattern": "^[a-zA-Z]{2}$",
            "type": "string",
            "description": "Country/region code (e.g., us, de, gb)"
          },
          "currency": {
            "title": "Currency",
            "minLength": 3,
            "maxLength": 3,
            "type": "string",
            "description": "Currency code for prices (e.g., USD, EUR, GBP)"
          },
          "outbound_times": {
            "title": "Outbound Times",
            "pattern": "^\\s*(?:[01]?\\d|2[0-3])\\s*,\\s*(?:[01]?\\d|2[0-3])\\s*(?:,\\s*(?:[01]?\\d|2[0-3])\\s*,\\s*(?:[01]?\\d|2[0-3])\\s*)?$",
            "type": "string",
            "description": "Outbound time window as comma-separated hours, e.g. \"6,18\" for departures between 06:00 and 18:00. Two further values narrow the arrival window."
          },
          "bags": {
            "title": "Bags",
            "minimum": 0,
            "maximum": 0,
            "type": "integer",
            "description": "Carry-on bag count. Only 0 is currently supported. Accepted values: 0. Allowed values: 0."
          },
          "api_version": {
            "title": "Api Version",
            "minimum": 2,
            "maximum": 2,
            "type": "integer",
            "description": "Value accepted by the Google Flights Cheapest Dates Scraper search. Accepted values: 2. Allowed values: 2."
          },
          "from_date": {
            "title": "From Date",
            "type": "string",
            "description": "Start of date range in Y-m-d format When omitted, the start date is set to 30 days from today."
          },
          "to_date": {
            "title": "To Date",
            "type": "string",
            "description": "End of date range in Y-m-d format When omitted, the end date is set to seven days after the start date."
          },
          "trip_duration": {
            "title": "Trip Duration",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Duration of trip in days (1-30, default: 7)"
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum dataset items to save across this entire run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}