{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper - Flight Prices & Fares",
    "description": "Google Flights API alternative. Scrape flight prices without an API key, export Google Flights data to CSV, JSON & Excel. One-way & round-trip, any cabin.",
    "version": "0.0",
    "x-build-id": "lx2of1cLoqVqn7VOf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-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/logiover~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-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/logiover~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-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",
            "enum": [
              "JFK",
              "EWR",
              "LGA",
              "LAX",
              "SFO",
              "ORD",
              "ATL",
              "MIA",
              "BOS",
              "SEA",
              "DFW",
              "DEN",
              "IAD",
              "IAH",
              "PHX",
              "LAS",
              "MCO",
              "YYZ",
              "YVR",
              "YUL",
              "LHR",
              "LGW",
              "STN",
              "CDG",
              "ORY",
              "AMS",
              "FRA",
              "MUC",
              "MAD",
              "BCN",
              "FCO",
              "MXP",
              "LIS",
              "ZRH",
              "GVA",
              "VIE",
              "BRU",
              "CPH",
              "ARN",
              "OSL",
              "HEL",
              "DUB",
              "MAN",
              "EDI",
              "ATH",
              "IST",
              "SAW",
              "PRG",
              "WAW",
              "BUD",
              "DXB",
              "AUH",
              "DOH",
              "JED",
              "RUH",
              "TLV",
              "CAI",
              "SIN",
              "HKG",
              "BKK",
              "KUL",
              "CGK",
              "MNL",
              "NRT",
              "HND",
              "KIX",
              "ICN",
              "PEK",
              "PVG",
              "CAN",
              "TPE",
              "DEL",
              "BOM",
              "BLR",
              "MAA",
              "HYD",
              "SYD",
              "MEL",
              "BNE",
              "PER",
              "AKL",
              "GRU",
              "GIG",
              "EZE",
              "SCL",
              "BOG",
              "LIM",
              "MEX",
              "CUN",
              "JNB",
              "CPT",
              "NBO",
              "LOS",
              "ADD",
              "CMN"
            ],
            "type": "string",
            "description": "Departure airport. Pick a major hub from the list, or leave the default (JFK New York). Round-trips return here.",
            "default": "JFK"
          },
          "destination": {
            "title": "Destination airport",
            "enum": [
              "JFK",
              "EWR",
              "LGA",
              "LAX",
              "SFO",
              "ORD",
              "ATL",
              "MIA",
              "BOS",
              "SEA",
              "DFW",
              "DEN",
              "IAD",
              "IAH",
              "PHX",
              "LAS",
              "MCO",
              "YYZ",
              "YVR",
              "YUL",
              "LHR",
              "LGW",
              "STN",
              "CDG",
              "ORY",
              "AMS",
              "FRA",
              "MUC",
              "MAD",
              "BCN",
              "FCO",
              "MXP",
              "LIS",
              "ZRH",
              "GVA",
              "VIE",
              "BRU",
              "CPH",
              "ARN",
              "OSL",
              "HEL",
              "DUB",
              "MAN",
              "EDI",
              "ATH",
              "IST",
              "SAW",
              "PRG",
              "WAW",
              "BUD",
              "DXB",
              "AUH",
              "DOH",
              "JED",
              "RUH",
              "TLV",
              "CAI",
              "SIN",
              "HKG",
              "BKK",
              "KUL",
              "CGK",
              "MNL",
              "NRT",
              "HND",
              "KIX",
              "ICN",
              "PEK",
              "PVG",
              "CAN",
              "TPE",
              "DEL",
              "BOM",
              "BLR",
              "MAA",
              "HYD",
              "SYD",
              "MEL",
              "BNE",
              "PER",
              "AKL",
              "GRU",
              "GIG",
              "EZE",
              "SCL",
              "BOG",
              "LIM",
              "MEX",
              "CUN",
              "JNB",
              "CPT",
              "NBO",
              "LOS",
              "ADD",
              "CMN"
            ],
            "type": "string",
            "description": "Arrival airport. Pick a major hub from the list, or leave the default (LHR London Heathrow).",
            "default": "LHR"
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Outbound date in YYYY-MM-DD. Leave blank to default to ~30 days from now (always a valid future date).",
            "default": ""
          },
          "departureDateEnd": {
            "title": "Departure date — range end (optional)",
            "type": "string",
            "description": "Optional. If set (YYYY-MM-DD), scans every departure date from 'Departure date' to this date — many more results.",
            "default": ""
          },
          "returnDate": {
            "title": "Return date (round-trip)",
            "type": "string",
            "description": "Optional. Set a YYYY-MM-DD return date and choose Trip type = Round-trip.",
            "default": ""
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "one-way",
              "round-trip"
            ],
            "type": "string",
            "description": "One-way or round-trip (round-trip requires a return date).",
            "default": "one-way"
          },
          "seatClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium-economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class to search.",
            "default": "economy"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "type": "integer",
            "description": "Number of adult passengers.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "type": "integer",
            "description": "Number of child passengers.",
            "default": 0
          },
          "maxStops": {
            "title": "Max stops",
            "enum": [
              "",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Maximum number of stops. 'Any' for no limit, or pick a cap.",
            "default": ""
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "TRY",
              "AED",
              "CAD",
              "AUD",
              "JPY",
              "CNY",
              "INR",
              "CHF",
              "SEK",
              "NOK",
              "DKK",
              "SGD",
              "HKD",
              "BRL",
              "MXN",
              "ZAR",
              "PLN"
            ],
            "type": "string",
            "description": "ISO currency code used for prices.",
            "default": "USD"
          },
          "language": {
            "title": "Language / region",
            "enum": [
              "en-US",
              "en-GB",
              "en-CA",
              "en-AU",
              "de-DE",
              "fr-FR",
              "es-ES",
              "it-IT",
              "pt-BR",
              "nl-NL",
              "tr-TR",
              "ja-JP",
              "zh-CN",
              "ar-AE",
              "ru-RU"
            ],
            "type": "string",
            "description": "Google locale for results.",
            "default": "en-US"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum flights to save across all searched dates. 0 = unlimited (bounded by the dates you search).",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (automatic IP rotation) is on by default. Switch the group to RESIDENTIAL for high volume to avoid rate-limits.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}