{
  "openapi": "3.0.1",
  "info": {
    "title": "Skyscanner Scraper | Flights, Hotels & Destination Deals",
    "description": "Collect public flights, destination deals and hotel listings from Skyscanner.net in GBP, with prices, source links and available hotel details. Pay per delivered row plus a small start fee; export JSON, CSV or Excel.",
    "version": "0.2",
    "x-build-id": "prnOhGP5eJd5goFEr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~skyscanner-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~skyscanner-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~skyscanner-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": {
          "service": {
            "title": "Service",
            "enum": [
              "auto",
              "flights",
              "hotels",
              "flights_seo",
              "hotel_detail",
              "flight_detail"
            ],
            "type": "string",
            "description": "Auto chooses a service from your target: hotel or flight link, city identifier, destination name, or route codes, in that order. Select a service explicitly to use a city name for hotels instead of destination deals.",
            "default": "auto"
          },
          "origin": {
            "title": "Origin place code",
            "type": "string",
            "description": "Skyscanner origin code for flights, such as bkk. You can enter a route as bkk|sin; if only destination is supplied, the origin is bkk."
          },
          "destination": {
            "title": "Destination place code",
            "type": "string",
            "description": "Skyscanner destination code for flights, such as sin. If only origin is supplied, the destination is sin."
          },
          "place": {
            "title": "Destination code or city name",
            "type": "string",
            "description": "A supported destination code or city name, such as sin, dxb or london. Auto selects destination deals; select hotels to search a city for stays."
          },
          "entityId": {
            "title": "Hotel-search city identifier",
            "type": "string",
            "description": "City or area identifier for hotel searches, such as 27546111 for Singapore. This is not a hotel ID from an /ht- link; alternatively select hotels and supply a supported city in place."
          },
          "hotelUrl": {
            "title": "Live hotel URL",
            "pattern": "^$|^https://(www\\.)?skyscanner\\.net(:443)?/([^?#\\s\\\\]*/)?ht-[0-9]+[^\\s\\\\]*$",
            "type": "string",
            "description": "Paste a current HTTPS hotel detail link from skyscanner.net or www.skyscanner.net containing /ht- followed by the hotel ID. Copy a real result link rather than inventing an ID."
          },
          "flightUrl": {
            "title": "Flight detail URL",
            "pattern": "^$|^https://(www\\.)?skyscanner\\.net(:443)?/([^?#\\s\\\\]*/)?config/[^/?#\\s\\\\]+[^\\s\\\\]*$",
            "type": "string",
            "description": "Paste a current HTTPS flight detail link from skyscanner.net or www.skyscanner.net containing /config/ followed by the itinerary ID. Copy a real result link rather than inventing an ID."
          },
          "maxResults": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum rows for this single route, destination, hotel search or detail URL: 1 to 50, with a default of 50. Your maximum run cost may reduce delivery; Free plan accounts also have a 200-row allowance per run and a 10-run limit for this Actor.",
            "default": 50
          },
          "departureDate": {
            "title": "Flight departure (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Flight departure in YYYY-MM-DD format. Leave empty for 21 days from today; past dates are not accepted."
          },
          "returnDate": {
            "title": "Flight return (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Return date for a round trip, in YYYY-MM-DD format, on or after departure. Leave empty for seven days after departure."
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "roundtrip",
              "oneway"
            ],
            "type": "string",
            "description": "Choose roundtrip to include a return flight, or oneway for an outbound flight only.",
            "default": "roundtrip"
          },
          "checkin": {
            "title": "Hotel check-in (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2})?$",
            "type": "string",
            "description": "Hotel arrival date in YYYY-MM-DD format. Leave empty for 21 days from today."
          },
          "checkout": {
            "title": "Hotel check-out (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2})?$",
            "type": "string",
            "description": "Hotel departure date in YYYY-MM-DD format, after check-in. Leave empty for two days after check-in."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adult passengers or hotel guests, from 1 to 10.",
            "default": 1
          },
          "children": {
            "title": "Children count",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of children, from 0 to 10. Flights assume age 8 if child ages are omitted; hotel searches use age 8 for every child.",
            "default": 0
          },
          "childrenv2": {
            "title": "Flight child ages",
            "type": "string",
            "description": "Flight child ages separated by a pipe, such as 8|5. Hotel searches use the children count instead of these ages."
          },
          "rooms": {
            "title": "Hotel rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of hotel rooms, from 1 to 8. Not used for flight searches.",
            "default": 1
          },
          "cabinclass": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premiumeconomy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Flight cabin: economy, premiumeconomy, business or first.",
            "default": "economy"
          },
          "preferDirects": {
            "title": "Prefer direct flights",
            "type": "boolean",
            "description": "Prefer direct flights and exclude itineraries with known stops. Rows without stop information may remain; this does not apply to hotels or destination deals.",
            "default": false
          },
          "market": {
            "title": "Market",
            "enum": [
              "skyscanner.net"
            ],
            "type": "string",
            "description": "Only skyscanner.net is supported, using English and GBP.",
            "default": "skyscanner.net"
          },
          "placeSlug": {
            "title": "Destination-page URL slug",
            "type": "string",
            "description": "For a destination code outside the supported list, enter the exact slug after cheap-flights-to- from a real Skyscanner flights-to URL. Leave empty for supported codes and city names."
          },
          "geoId": {
            "title": "Alternative hotel-search city identifier",
            "type": "string",
            "description": "An alternative to entityId for selecting a hotel-search city or area. Auto selects hotels when this field is filled."
          },
          "dropoffGeoId": {
            "title": "Car drop-off identifier (not available)",
            "type": "string",
            "description": "Leave empty. Car-hire searches are not available in this Actor."
          },
          "driverAge": {
            "title": "Driver age (not available)",
            "minimum": 18,
            "maximum": 99,
            "type": "integer",
            "description": "Not used by the supported services. Car-hire searches are not available in this Actor.",
            "default": 30
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "Compatibility setting. Leave empty and sort exported rows yourself; a global result order is not guaranteed."
          },
          "includeDetail": {
            "title": "Optional flight detail follow-up",
            "type": "boolean",
            "description": "Request a follow-up to a current flight detail link when available within the row limit. This is off by default, does not guarantee extra fields, and is not required for hotel-search addresses.",
            "default": false
          },
          "workerBaseUrl": {
            "title": "Developer test setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}