{
  "openapi": "3.0.1",
  "info": {
    "title": "Skyscanner Scraper - Flight Prices, Airlines & Times",
    "description": "Scrape Skyscanner flight prices by route and date, one-way or round trip: price, airlines, flight numbers, departure and arrival times, stops, duration, every agency offer with its booking link, fare rules and CO2. Any market and currency. Price-change mode for schedules. Error rows are free.",
    "version": "0.1",
    "x-build-id": "Un7iagh2NcOBcZOeV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewise~skyscanner-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewise-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/scrapewise~skyscanner-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewise-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/scrapewise~skyscanner-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewise-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": {
          "origin": {
            "title": "From",
            "type": "string",
            "description": "Where you fly from: airport code (JFK), city code (NYC, LON) or city name (Chicago). Several origins separated by commas run one search each."
          },
          "destination": {
            "title": "To",
            "type": "string",
            "description": "Where you fly to, in the same forms as From: airport code (LIS), city code (PAR) or city name (Tokyo). Several destinations separated by commas run one search each."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "YYYY-MM-DD, or a number of days from today (30 = in 30 days, handy for schedules). Several dates separated by commas run one search each."
          },
          "returnDate": {
            "title": "Return date (optional)",
            "type": "string",
            "description": "Empty = one-way. YYYY-MM-DD or days from today (37). With several departure dates, give one return date per departure date, in the same order, or use Trip length."
          },
          "tripLengthDays": {
            "title": "Trip length in days (optional)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Round trip with the return this many days after each departure date. Used when Return date is empty."
          },
          "startUrls": {
            "title": "Skyscanner search links",
            "type": "array",
            "description": "Flight search links copied from the browser, like skyscanner.com/transport/flights/bos/lis/261210/261217/?adultsv2=2&cabinclass=economy. Route, dates, travellers and cabin are read from the link.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adults (1 to 8).",
            "default": 1
          },
          "childAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age per child, 0 to 17 (under 2 = infant on lap). Empty = no children.",
            "items": {
              "type": "string"
            }
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin to search.",
            "default": "economy"
          },
          "market": {
            "title": "Market (country)",
            "type": "string",
            "description": "Country of the Skyscanner site whose fares you want, as a 2-letter code: US, UK, DE, FR, ES, IT, CA, AU, IN, BR... Agencies and prices differ by market.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code for prices: USD, EUR, GBP, CAD, AUD, INR, BRL, JPY...",
            "default": "USD"
          },
          "locale": {
            "title": "Language",
            "type": "string",
            "description": "Language of place and airline names, like en-US, en-GB, de-DE, es-ES.",
            "default": "en-US"
          },
          "maxStops": {
            "title": "Max stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Maximum stops on each leg (outbound and return).",
            "default": "any"
          },
          "airlines": {
            "title": "Only these airlines",
            "type": "array",
            "description": "Airline codes or names (BA, TP, Delta). Every flight of the itinerary must be sold by one of them. Empty = all airlines.",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Exclude airlines",
            "type": "array",
            "description": "Airline codes or names to leave out (any flight on them drops the itinerary).",
            "items": {
              "type": "string"
            }
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Highest total price to include, in the currency above. Empty = no limit."
          },
          "maxDurationHours": {
            "title": "Max duration per leg (hours)",
            "minimum": 1,
            "type": "number",
            "description": "Leave out itineraries where a leg takes longer than this, stops included. Empty = no limit."
          },
          "excludeSelfTransfer": {
            "title": "Exclude self-transfer",
            "type": "boolean",
            "description": "On: leave out itineraries where you change between separate tickets yourself.",
            "default": false
          },
          "includeNearbyAirports": {
            "title": "Include nearby airports",
            "type": "boolean",
            "description": "On: also search airports near the origin and destination.",
            "default": false
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "cheapest",
              "best",
              "fastest",
              "departure"
            ],
            "type": "string",
            "description": "Order of the flights in each search, applied before the per-search limit.",
            "default": "cheapest"
          },
          "maxResultsPerSearch": {
            "title": "Max flights per search",
            "minimum": 0,
            "type": "integer",
            "description": "Flights delivered per route and date, after filters and sort. 0 = every itinerary Skyscanner returns (often 300 to 1,200).",
            "default": 50
          },
          "maxItems": {
            "title": "Max flights per run",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run, across all searches. Empty or 0 = no cap."
          },
          "onlyNew": {
            "title": "Only new flights or new prices (for schedules)",
            "type": "boolean",
            "description": "On: remembers the price of each flight delivered in earlier runs of the same search (in your account) and delivers only flights not seen before or whose price changed, with previousPrice and changeType. Unchanged flights are skipped and free.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Pre-set for Skyscanner and included in the price. Keep the default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}