{
  "openapi": "3.0.1",
  "info": {
    "title": "Skyscanner Flight Scraper — Price Calendar, Fares & Itineraries",
    "description": "No-login Skyscanner scraper: cheapest-by-date price calendar, cheapest fares by date, and airport/city search. Plus full live itineraries (times, segments, layovers, both round-trip legs, baggage, multi-source prices, booking links) from Google Flights + Kiwi.com. No API key.",
    "version": "0.0",
    "x-build-id": "lC0dKWBCNIeb8cna6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brilliant_gum~skyscanner-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brilliant_gum-skyscanner-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/brilliant_gum~skyscanner-scraper/runs": {
      "post": {
        "operationId": "runs-sync-brilliant_gum-skyscanner-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/brilliant_gum~skyscanner-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-brilliant_gum-skyscanner-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": "Mode(s)",
            "type": "array",
            "description": "Which engine(s) to run (combinable). 'itineraries' = FULL live flight list with exact times, per-segment flight numbers/airlines/aircraft, layovers, stop count, duration, price, cheapest/fastest/best tags, score and booking link (one-way, round-trip and multi-city) — sourced no-key from Google Flights (aliases: itinerary, flights, live). 'search' = Skyscanner cheapest fare(s) for a route on a specific date / date pair. 'calendar' = Skyscanner cheapest-by-date price grid across N months (aliases: cheapest-by-date, pricecalendar). 'places' = resolve an airport/city query to Skyscanner place entities (aliases: autosuggest).",
            "items": {
              "type": "string",
              "enum": [
                "calendar",
                "search",
                "itineraries",
                "places"
              ],
              "enumTitles": [
                "Calendar — cheapest-by-date price grid (Skyscanner)",
                "Search — cheapest fares by date (Skyscanner)",
                "Itineraries — full live flight list: times, segments, layovers (Google Flights + Kiwi)",
                "Places — airport/city autosuggest (Skyscanner)"
              ]
            },
            "default": [
              "calendar"
            ]
          },
          "origin": {
            "title": "Origin (IATA code or city)",
            "type": "string",
            "description": "Departure airport/city — 3-letter IATA code (e.g. 'JFK', 'LON') or city name. Aliases accepted: departureAirport, from."
          },
          "destination": {
            "title": "Destination (IATA code or city)",
            "type": "string",
            "description": "Arrival airport/city — 3-letter IATA code (e.g. 'LAX') or city name. Required for search/calendar. Aliases accepted: arrivalAirport, to."
          },
          "departDate": {
            "title": "Departure date (YYYY-MM-DD)",
            "type": "string",
            "description": "Outbound date for 'search' (YYYY-MM-DD). For 'calendar' it is the first month to fetch (day is ignored). If empty, calendar starts from the current month."
          },
          "departDateEnd": {
            "title": "Departure date range END (optional)",
            "type": "string",
            "description": "Optional end of a departure-date range for 'search' (YYYY-MM-DD). When set, 'search' emits the cheapest fare for every day from departDate to departDateEnd (inclusive)."
          },
          "returnDate": {
            "title": "Return date (optional — makes it round-trip)",
            "type": "string",
            "description": "Return date (YYYY-MM-DD). When set, the trip is round-trip and prices are round-trip totals. Leave empty for one-way."
          },
          "monthsAhead": {
            "title": "Calendar span (months)",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "For 'calendar' mode: how many consecutive months (starting at departDate's month or the current month) to fetch, 1–12.",
            "default": 3
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adult passengers (16+).",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of children (2–15). Informational passthrough for the Skyscanner deep link.",
            "default": 0
          },
          "infants": {
            "title": "Infants (on lap)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of infants on lap (under 2). Informational passthrough for the Skyscanner deep link.",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin of travel used in the Skyscanner deep link and query.",
            "default": "economy"
          },
          "directOnly": {
            "title": "Direct (non-stop) only",
            "type": "boolean",
            "description": "Return only non-stop options. In 'itineraries' mode this searches Google Flights for 0-stop flights only; in 'search' mode the record's headline price becomes the cheapest direct price.",
            "default": false
          },
          "maxStops": {
            "title": "Max stops (itineraries mode)",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "For 'itineraries' mode: maximum number of stops per itinerary (0 = non-stop only, 1 = up to one stop, etc.). Leave empty for any number of stops. 'directOnly' overrides this to 0."
          },
          "multiCityLegs": {
            "title": "Multi-city legs (itineraries mode)",
            "type": "array",
            "description": "For 'itineraries' mode: an ordered list of flight legs for a multi-city trip. Each item is an object {\"origin\":\"JFK\",\"destination\":\"LAX\",\"date\":\"2026-10-15\"}. When 2+ legs are given, the actor returns full itineraries for EVERY leg, grouped by a shared multiCityId (with legIndex/legCount). Overrides origin/destination/departDate.",
            "default": []
          },
          "strictAirport": {
            "title": "Strict requested airport (search/calendar)",
            "type": "boolean",
            "description": "For Skyscanner 'search'/'calendar' modes: Skyscanner's month grid can aggregate a whole city, so a JFK request may surface an EWR/LGA quote. When enabled, drop any fare whose actual operating origin/destination airport differs from the requested 3-letter IATA code. Regardless of this flag, each record exposes 'operatingOrigin'/'operatingDestination' and 'requestedOriginMatch'/'requestedDestinationMatch' so the real airport is always disclosed.",
            "default": false
          },
          "compareSources": {
            "title": "Multi-source price comparison + baggage (Kiwi)",
            "type": "boolean",
            "description": "For 'itineraries' mode: also query Kiwi.com (no key) as a second source and merge it into each matching itinerary. Adds a per-source price table (Google Flights + Kiwi with per-source booking links), recomputes bestPrice / cheapestSource / sourcesFound (>= 2 when a match is found), and fills the baggage allowance (carry-on / checked / personal) that Google's list endpoint does not expose. Disable to use Google Flights only.",
            "default": true
          },
          "roundTripReturnDetail": {
            "title": "Round-trip return-leg detail (top N outbounds)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "For round-trip 'itineraries': how many top outbound options to expand with FULL return-leg detail. For each, a second Google Flights call (via an outbound-selection token) fetches the paired return itineraries, so each record carries BOTH legs (outbound + return, full segments/times/layovers) and the real round-trip total. 0 = fast mode: outbound options only at the round-trip total (no return-leg segments).",
            "default": 3
          },
          "maxReturnsPerOutbound": {
            "title": "Max return options per outbound (round-trip)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "For round-trip 'itineraries' with return-leg detail on: the maximum number of paired return itineraries to emit for each expanded outbound option.",
            "default": 6
          },
          "maxPrice": {
            "title": "Max price",
            "type": "integer",
            "description": "Skip fares/days whose cheapest price is above this amount (in the selected currency). 0 or empty = no cap."
          },
          "resultSort": {
            "title": "Sort results",
            "enum": [
              "date",
              "price"
            ],
            "type": "string",
            "description": "Client-side sort of the emitted records. 'date' = chronological; 'price' = cheapest first.",
            "default": "date"
          },
          "market": {
            "title": "Market (country code)",
            "type": "string",
            "description": "Skyscanner market / point-of-sale country code (e.g. 'US', 'GB', 'DE'). Also pins the proxy exit country. Aliases: skyscannerMarket, country.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO 4217 display currency for prices (e.g. 'USD', 'GBP', 'EUR'). Alias: skyscannerCurrency.",
            "default": "USD"
          },
          "locale": {
            "title": "Locale (language)",
            "type": "string",
            "description": "Language/locale tag for place names (e.g. 'en-US', 'en-GB', 'de-DE'). Alias: skyscannerLocale.",
            "default": "en-US"
          },
          "placeQueries": {
            "title": "Place queries (for 'places' mode)",
            "type": "array",
            "description": "Airport/city search terms or IATA codes to resolve to Skyscanner place entities (used by 'places' mode). E.g. ['London', 'JFK', 'Tokyo'].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Skyscanner flight URLs (optional)",
            "type": "array",
            "description": "Skyscanner flight search URLs (e.g. https://www.skyscanner.net/transport/flights/jfk/lax/261015/). The route, dates and cabin are parsed from each URL and scraped like a search input.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max results",
            "type": "integer",
            "description": "Maximum number of dataset records to emit across the whole run. 0 = no limit. Aliases: resultLimit, maxFlights, max_results.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of month/route requests fetched in parallel.",
            "default": 4
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "How many times to retry a blocked/failed request with a fresh proxy session before giving up on that month/route.",
            "default": 6
          },
          "proxy": {
            "title": "Proxy — Skyscanner modes (search/calendar/places)",
            "type": "object",
            "description": "Proxy for the Skyscanner modes (search/calendar/places). A proxy is required; the recommended default is preselected and works reliably. The proxy country is auto-pinned to 'market'.",
            "default": {
              "useApifyProxy": true
            }
          },
          "itineraryProxy": {
            "title": "Proxy — Itineraries mode (Google Flights)",
            "type": "object",
            "description": "Proxy for the 'itineraries' mode. The recommended default returns results reliably; the country is auto-pinned to 'market'. Only used when 'itineraries' mode runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}