{
  "openapi": "3.0.1",
  "info": {
    "title": "Kiwi.com Flights Scraper — Fares, Price Calendar & Routes",
    "description": "Scrape Kiwi.com flights: one-way and return itineraries with price, times, stops, layovers, airlines, flight numbers, bags and booking links; a cheapest-price calendar per day; and the cheapest destinations from any airport. Any currency and cabin. No login.",
    "version": "0.1",
    "x-build-id": "ygSHCAVmiWFUffyzt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~kiwi-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-kiwi-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/yugenox~kiwi-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-kiwi-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/yugenox~kiwi-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-kiwi-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "flights",
              "calendar",
              "explore"
            ],
            "type": "string",
            "description": "Flights: every itinerary Kiwi.com shows for each route and departure day (up to ~50 per day) — price, times, stops, layovers, airlines, flight numbers, bags and a booking link. Price calendar: the cheapest one-way price for every day of a date range, with Kiwi.com's cheap / average / expensive rating. Anywhere: the cheapest fare from your origin to every destination city (leave Destinations empty, or give countries/cities to narrow it).",
            "default": "flights"
          },
          "origins": {
            "title": "✈️ From",
            "type": "array",
            "description": "Where you fly from: airport codes (YYZ, JFK), city codes (LON, NYC) or city names (Toronto, London). Each origin is searched against each destination. Up to 10.",
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "🛬 To",
            "type": "array",
            "description": "Where you fly to: airport codes, city codes or city names. Leave empty for \"anywhere\" (the cheapest fare to every destination city); in Anywhere mode a country code (PT, GB) lists every city in that country. Up to 10.",
            "items": {
              "type": "string"
            }
          },
          "departureDate": {
            "title": "📅 Departure date",
            "type": "string",
            "description": "The day you fly out (YYYY-MM-DD) or a relative date like \"30 days\" (relative dates keep a scheduled run current). Empty = 30 days from today. In Price calendar and Anywhere mode this is the first day of the range."
          },
          "departureDateTo": {
            "title": "📅 Departure date to (optional)",
            "type": "string",
            "description": "Flights: also search every day up to this date (max 31 days, one search per day). Price calendar: the end of the range (default 30 days, max 365). Anywhere: the cheapest fare anywhere in this window (max 92 days)."
          },
          "returnDate": {
            "title": "🔁 Return date (optional)",
            "type": "string",
            "description": "Flights only: set it to get return trips (both directions, one price). With a range of departure days, every search keeps the same number of nights."
          },
          "nights": {
            "title": "Nights (instead of a return date)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Flights only: return this many nights after each departure day (0–60). Ignored when Return date is set."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Passengers aged 12+ (1–9). Prices are for all passengers together.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Passengers aged 2–11.",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Passengers under 2 (at most one per adult).",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class to search.",
            "default": "economy"
          },
          "checkedBags": {
            "title": "Checked bags per passenger",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "0–2. When set, prices include that many checked bags per adult and child (as Kiwi.com prices them).",
            "default": 0
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code for all prices, e.g. USD, EUR, GBP, CAD, AUD, INR.",
            "default": "USD"
          },
          "market": {
            "title": "Market (country)",
            "type": "string",
            "description": "2-letter country code of the Kiwi.com market to price for, e.g. us, gb, ca, de. Fares can differ slightly between markets.",
            "default": "us"
          },
          "sortBy": {
            "title": "Sort flights by",
            "enum": [
              "price",
              "best",
              "duration",
              "date"
            ],
            "type": "string",
            "description": "Which flights come first (and which are kept when Max results cuts a day short): cheapest, Kiwi.com's \"best\" mix of price and duration, fastest or earliest departure.",
            "default": "price"
          },
          "maxStops": {
            "title": "Max stops",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 = direct flights only, 1 = up to one stop… Empty = any number of stops."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep results at or under this total price (in your currency). Results over it are not saved and not charged."
          },
          "airlines": {
            "title": "Only these airlines",
            "type": "array",
            "description": "2-letter airline codes (e.g. AC, WS, BA). Flights mode: keep itineraries where every flight is sold by one of them.",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Exclude airlines",
            "type": "array",
            "description": "2-letter airline codes to leave out (flights mode).",
            "items": {
              "type": "string"
            }
          },
          "includeSelfTransfer": {
            "title": "Include self-transfer and hidden-city fares",
            "type": "boolean",
            "description": "Kiwi.com's cheaper combinations of separate tickets (self-transfer) and hidden-city / throwaway fares. Rows say which ones they are (selfTransfer, hiddenCity, throwawayTicket). Turn off for classic single-ticket itineraries only.",
            "default": true
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum rows for the whole run, shared fairly between your searches (routes × days). Kiwi.com shows up to ~50 flights per route and day. Price calendar: each route keeps consecutive days from the first date (the range is shortened to fit). 0 = everything.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan.",
            "default": {
              "useApifyProxy": true
            }
          },
          "_noResidential": {
            "title": "Run as an account without residential proxies",
            "type": "boolean",
            "description": "Internal (canaries): behave exactly like an account without the RESIDENTIAL proxy group.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}