{
  "openapi": "3.0.1",
  "info": {
    "title": "Skyscanner Flight Scraper — Fares, Legs & Agents",
    "description": "Drop-in compatible with memo23/skyscanner-scraper — cheaper and reliable. Flight itineraries from Skyscanner's own search API: price, all booking agents with their quotes, legs, segments, carriers, stops and derived layover durations. One-way, return and multi-city. No browser, no captcha solver.",
    "version": "1.0",
    "x-build-id": "Ou0EaPuqeRfNNiq51"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/diopside~skyscanner-flights/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-diopside-skyscanner-flights",
        "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/diopside~skyscanner-flights/runs": {
      "post": {
        "operationId": "runs-sync-diopside-skyscanner-flights",
        "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/diopside~skyscanner-flights/run-sync": {
      "post": {
        "operationId": "run-sync-diopside-skyscanner-flights",
        "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": {
          "startUrls": {
            "title": "Skyscanner flight URLs",
            "type": "array",
            "description": "Paste one or more <code>/transport/flights/{origin}/{destination}/{YYMMDD}/{YYMMDD?}/</code> URLs from skyscanner.com or skyscanner.net. Route and dates come from the URL; passenger counts, cabin class and region always come from the fields below. Anything that is not a flights URL (e.g. the homepage) falls back to the search filters.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "departureAirport": {
            "title": "Departure airport",
            "type": "string",
            "description": "City or IATA code, e.g. <code>LHR</code> or <code>London</code>. An airport code searches that airport only; a city name searches all of the city's airports. Ignored when a flights URL is given above."
          },
          "arrivalAirport": {
            "title": "Arrival airport",
            "type": "string",
            "description": "City or IATA code. Ignored when a flights URL is given above."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code> or <code>YYMMDD</code>."
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "Leave empty for a one-way search."
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin to price.",
            "default": "economy"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Passengers aged 16+.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Passengers aged 2-15.",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Passengers under 2.",
            "default": 0
          },
          "multiCityLeg2Destination": {
            "title": "Multi-city: leg 2 destination",
            "type": "string",
            "description": "Adds a third leg continuing from the arrival airport. Leave empty for a normal one-way or return search."
          },
          "multiCityLeg2Date": {
            "title": "Multi-city: leg 2 date",
            "type": "string",
            "description": "Date for leg 2, <code>YYYY-MM-DD</code> or <code>YYMMDD</code>. Required if leg 2 destination is set."
          },
          "multiCityLeg3Destination": {
            "title": "Multi-city: leg 3 destination",
            "type": "string",
            "description": "Adds a fourth leg continuing from the leg 2 destination."
          },
          "multiCityLeg3Date": {
            "title": "Multi-city: leg 3 date",
            "type": "string",
            "description": "Date for leg 3, <code>YYYY-MM-DD</code> or <code>YYMMDD</code>. Required if leg 3 destination is set."
          },
          "skyscannerMarket": {
            "title": "Market",
            "type": "string",
            "description": "Two-letter market, e.g. <code>US</code>, <code>GB</code>, <code>DE</code>. Fares and available agents differ by market.",
            "default": "US"
          },
          "skyscannerCurrency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter currency code, e.g. <code>USD</code>, <code>EUR</code>, <code>GBP</code>.",
            "default": "USD"
          },
          "skyscannerLocale": {
            "title": "Locale",
            "type": "string",
            "description": "e.g. <code>en-US</code>, <code>en-GB</code>, <code>de-DE</code>.",
            "default": "en-US"
          },
          "resultSort": {
            "title": "Sort results",
            "enum": [
              "default",
              "score",
              "cheapest",
              "fastest",
              "departure"
            ],
            "type": "string",
            "description": "<code>default</code> keeps Skyscanner's own \"Best\" ranking. The others sort before the result limit is applied, so <code>cheapest</code> + a limit of 20 gives you the 20 cheapest itineraries rather than the first 20.",
            "default": "default"
          },
          "resultLimit": {
            "title": "Max itineraries per search",
            "minimum": 0,
            "type": "integer",
            "description": "Caps how many itineraries each search stores and bills. A busy long-haul route returns 500+ itineraries, so leaving this empty can be expensive. Empty or 0 means no limit."
          },
          "filterNonStop": {
            "title": "Direct flights only",
            "type": "boolean",
            "description": "The three stop filters are additive. Leaving all three off means no stop filter.",
            "default": false
          },
          "filterOneStop": {
            "title": "Include 1-stop flights",
            "type": "boolean",
            "description": "Include itineraries with exactly one stop.",
            "default": false
          },
          "filterTwoPlusStops": {
            "title": "Include 2+ stop flights",
            "type": "boolean",
            "description": "Include itineraries with two or more stops.",
            "default": false
          },
          "includeNearbyAirports": {
            "title": "Include nearby airports",
            "type": "boolean",
            "description": "Also search airports near the origin and destination.",
            "default": false
          },
          "maxItems": {
            "title": "Max itineraries in total",
            "minimum": 0,
            "type": "integer",
            "description": "Alias of the per-search limit, accepted for compatibility with other Skyscanner actors."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Skyscanner's search API is behind PerimeterX and rejects every datacenter exit IP we measured, so a residential proxy is required. The default below is the configuration the actor is tested with — change it only if you know your exits pass.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}