{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper - Most Comprehensive",
    "description": "🔥 ~$0.1/1K flights 🔥 Scrape Google Flights for flight search results, calendar prices, and booking details",
    "version": "0.1",
    "x-build-id": "SFPqFWgop6y264vJf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kaix~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kaix-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/kaix~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kaix-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/kaix~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kaix-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": {
          "searches": {
            "title": "Flight Searches",
            "type": "array",
            "description": "List of specific flight searches to run.",
            "items": {
              "type": "object",
              "required": [
                "origin",
                "destination",
                "departureDate"
              ],
              "properties": {
                "origin": {
                  "title": "Origin Airport",
                  "type": "string",
                  "description": "IATA airport code (e.g. SFO, JFK, LAX).",
                  "editor": "textfield"
                },
                "destination": {
                  "title": "Destination Airport",
                  "type": "string",
                  "description": "IATA airport code (e.g. LAX, NRT, LHR).",
                  "editor": "textfield"
                },
                "departureDate": {
                  "title": "Departure Date",
                  "type": "string",
                  "description": "Departure date in YYYY-MM-DD format.",
                  "editor": "textfield"
                },
                "returnDate": {
                  "title": "Return Date",
                  "type": "string",
                  "description": "Return date in YYYY-MM-DD format (optional, for round trips).",
                  "editor": "textfield"
                }
              }
            }
          },
          "tripType": {
            "title": "Trip Type",
            "enum": [
              "one-way",
              "round-trip",
              "multi-city"
            ],
            "type": "string",
            "description": "Trip type. If omitted, inferred from returnDate presence.",
            "default": "one-way"
          },
          "exploreOrigin": {
            "title": "Explore From (airport)",
            "type": "string",
            "description": "IATA airport code to explore destinations from (e.g. SFO). Uses flexible dates to find cheapest destinations. Leave empty to use specific searches instead."
          },
          "tripDuration": {
            "title": "Trip Duration",
            "enum": [
              "weekend",
              "1-week",
              "2-weeks"
            ],
            "type": "string",
            "description": "How long the trip should be when exploring destinations.",
            "default": "1-week"
          },
          "exploreMonth": {
            "title": "Month",
            "enum": [
              "next-6-months",
              "january",
              "february",
              "march",
              "april",
              "may",
              "june",
              "july",
              "august",
              "september",
              "october",
              "november",
              "december"
            ],
            "type": "string",
            "description": "Which month to explore. 'next-6-months' searches across all upcoming months.",
            "default": "next-6-months"
          },
          "cabinClass": {
            "title": "Cabin Class",
            "enum": [
              "economy",
              "premium-economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class preference.",
            "default": "economy"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adult passengers.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of child passengers.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants (on lap)",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of infant passengers on lap.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants (in seat)",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of infant passengers in seat.",
            "default": 0
          },
          "maxStops": {
            "title": "Max Stops",
            "enum": [
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Maximum number of stops."
          },
          "maxPrice": {
            "title": "Max Price",
            "type": "integer",
            "description": "Maximum price in your currency."
          },
          "maxDuration": {
            "title": "Max Duration (minutes)",
            "type": "integer",
            "description": "Maximum total flight duration in minutes."
          },
          "airlines": {
            "title": "Airlines",
            "type": "array",
            "description": "Filter by airline IATA codes or alliance names (e.g. UA, AA, ONEWORLD).",
            "items": {
              "type": "string"
            }
          },
          "departureTimeEarliest": {
            "title": "Departure Time (earliest)",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "13",
              "14",
              "15",
              "16",
              "17",
              "18",
              "19",
              "20",
              "21",
              "22",
              "23"
            ],
            "type": "string",
            "description": "Earliest departure hour."
          },
          "departureTimeLatest": {
            "title": "Departure Time (latest)",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "13",
              "14",
              "15",
              "16",
              "17",
              "18",
              "19",
              "20",
              "21",
              "22",
              "23"
            ],
            "type": "string",
            "description": "Latest departure hour."
          },
          "arrivalTimeEarliest": {
            "title": "Arrival Time (earliest)",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "13",
              "14",
              "15",
              "16",
              "17",
              "18",
              "19",
              "20",
              "21",
              "22",
              "23"
            ],
            "type": "string",
            "description": "Earliest arrival hour."
          },
          "arrivalTimeLatest": {
            "title": "Arrival Time (latest)",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "13",
              "14",
              "15",
              "16",
              "17",
              "18",
              "19",
              "20",
              "21",
              "22",
              "23"
            ],
            "type": "string",
            "description": "Latest arrival hour."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "best",
              "cheapest",
              "fastest",
              "departure-time",
              "arrival-time"
            ],
            "type": "string",
            "description": "How to sort results.",
            "default": "best"
          },
          "showAllResults": {
            "title": "Show All Results",
            "type": "boolean",
            "description": "Return all results instead of top ~30.",
            "default": false
          },
          "includeCalendarPrices": {
            "title": "Include Calendar Prices",
            "type": "boolean",
            "description": "Fetch cheapest price per day over a date range.",
            "default": false
          },
          "calendarMode": {
            "title": "Calendar Mode",
            "enum": [
              "graph",
              "picker",
              "grid"
            ],
            "type": "string",
            "description": "Which calendar view to use. Graph gives ~60 days of prices, Picker gives ~6 weeks (round-trip optimized), Grid gives a narrow ±3 day window.",
            "default": "graph"
          },
          "includeBookingDetails": {
            "title": "Include Booking Details",
            "type": "boolean",
            "description": "Fetch detailed fare info and booking links per flight result (one extra request per result).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy configuration. Residential proxies recommended."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}