{
  "openapi": "3.0.1",
  "info": {
    "title": "Kayak Flights Scraper - Flight Prices, Airlines & Booking Sites",
    "description": "Scrape Kayak flight search results: every itinerary with its flight prices, airlines, flight numbers, stops, baggage and ALL booking sites with their airfare, from the cheapest seller to the booking link. Routes, dates +N, 7 Kayak sites and currencies. Pay per itinerary.",
    "version": "0.1",
    "x-build-id": "JpBj801UCEw6LdFQa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hexagone-data~kayak-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hexagone-data-kayak-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/hexagone-data~kayak-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hexagone-data-kayak-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/hexagone-data~kayak-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hexagone-data-kayak-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": "From (airport or city code)",
            "type": "string",
            "description": "3-letter IATA code of an airport (JFK, LHR, CDG) or a city with several airports (NYC, LON, PAR, TYO)."
          },
          "destination": {
            "title": "To (airport or city code)",
            "type": "string",
            "description": "3-letter IATA code of an airport (LAX, BCN) or a city (LON, PAR)."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "YYYY-MM-DD, or +N for N days after the day the run starts (UTC): +30 keeps a scheduled run always 30 days ahead. Past dates are refused; far dates are judged by Kayak (no flights yet, or sent back to its form)."
          },
          "returnDate": {
            "title": "Return date (empty = one-way)",
            "type": "string",
            "description": "YYYY-MM-DD or +N. Leave empty for a one-way search."
          },
          "routes": {
            "title": "More routes",
            "type": "array",
            "description": "Several routes in one run, each searched on its own: [{\"origin\": \"NYC\", \"destination\": \"LON\", \"departureDate\": \"+45\", \"returnDate\": \"+52\"}, {\"origin\": \"SFO\", \"destination\": \"HNL\", \"departureDate\": \"2027-03-10\"}]. The passenger, cabin, sort and nonstop options below apply to every route."
          },
          "searchUrls": {
            "title": "Kayak search URLs",
            "type": "array",
            "description": "Flight search URLs copied from your browser, filters included, e.g. https://www.kayak.com/flights/JFK-LAX/2026-12-15?sort=price_a or https://www.kayak.co.uk/flights/LHR-BCN/2026-12-18/2adults. Each is opened as pasted (passengers, cabin, sort and filters are read by Kayak from the URL). Multi-city URLs are not supported.",
            "items": {
              "type": "string"
            }
          },
          "site": {
            "title": "Kayak site (prices and currency)",
            "enum": [
              "www.kayak.com",
              "www.kayak.co.uk",
              "www.kayak.de",
              "www.kayak.fr",
              "www.kayak.es",
              "www.ca.kayak.com",
              "www.kayak.com.au"
            ],
            "type": "string",
            "description": "Site used for the routes above: prices, currency and labels are those of this site. A pasted URL keeps its own site.",
            "default": "www.kayak.com"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Adult travellers (1 to 9). Price is per person as on the card; totalPrice is for all travellers.",
            "default": 1
          },
          "childrenAges": {
            "title": "Children ages",
            "type": "array",
            "description": "Age of each child, 2 to 11, e.g. [8] or [5, 9]. At most 9 travellers in all."
          },
          "cabinClass": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class searched.",
            "default": "economy"
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "best",
              "price",
              "duration"
            ],
            "type": "string",
            "description": "Order of the itineraries, as Kayak sorts them; rank follows it.",
            "default": "best"
          },
          "nonstopOnly": {
            "title": "Nonstop flights only",
            "type": "boolean",
            "description": "Keep only nonstop itineraries (Kayak's own Stops filter).",
            "default": false
          },
          "maxResultsPerSearch": {
            "title": "Max itineraries per search",
            "minimum": 0,
            "type": "integer",
            "description": "The first N itineraries of each search, in Kayak's order. 0 = all of them (a busy route can list 1,500+ itineraries; set Max itineraries in the run to 0 too).",
            "default": 50
          },
          "maxItems": {
            "title": "Max itineraries in the run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many itineraries for the whole run. 0 = no limit.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy by default; each search gets a fresh browser session and a fresh proxy session. Residential without a country uses the country of the Kayak site.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}