{
  "openapi": "3.0.1",
  "info": {
    "title": "Skyscanner Scraper: Flight Prices, Agents and Booking Links",
    "description": "Scrape Skyscanner flight prices by route and date: one row per itinerary with the cheapest price, every agent's price, rating and booking link, airlines, flight numbers, times, duration, stops, layovers and CO2. One way or return, many routes per run. No login.",
    "version": "0.1",
    "x-build-id": "BEHY8atMRcCajGKSf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~skyscanner-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~skyscanner-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~skyscanner-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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 (airport or city code)",
            "type": "string",
            "description": "IATA code of the departure airport, for example JFK, LHR or BOM, or a city code that covers every airport of the city, for example NYC, LON or PAR."
          },
          "destination": {
            "title": "To (airport or city code)",
            "type": "string",
            "description": "IATA code of the arrival airport or city, for example LAX, CDG, DXB or LON."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "YYYY-MM-DD, for example 2026-12-15, or a date relative to the day of the run: \"+30 days\", \"+7\", \"tomorrow\". Relative dates keep a scheduled run searching the same distance ahead."
          },
          "returnDate": {
            "title": "Return date (empty for one way)",
            "type": "string",
            "description": "Fill it for a return trip, same formats as the departure date (\"2026-12-22\" or \"+37 days\"). Return rows hold both directions with the total price, as Skyscanner shows them."
          },
          "routes": {
            "title": "More routes or dates (batch)",
            "type": "array",
            "description": "Several searches in one run, each an object with origin, destination, departureDate and optional returnDate, for example [{\"origin\": \"JFK\", \"destination\": \"LHR\", \"departureDate\": \"2026-12-20\", \"returnDate\": \"2026-12-28\"}, {\"origin\": \"BOM\", \"destination\": \"DXB\", \"departureDate\": \"+14 days\"}]. Passengers, cabin and the other settings below apply to every route. Up to 300 searches per run."
          },
          "startUrls": {
            "title": "Skyscanner links (optional)",
            "type": "array",
            "description": "Flight search links copied from your browser after a search on Skyscanner, for example https://www.skyscanner.net/transport/flights/lond/nyca/261220/261227/?adultsv2=1&cabinclass=economy. The route, dates, passengers and cabin are read from the link.",
            "items": {
              "type": "string"
            }
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Passengers aged 18 or over. Prices are the total for all passengers.",
            "default": 1
          },
          "childAges": {
            "title": "Children's ages (optional)",
            "type": "array",
            "description": "One age per child, 0 to 17, for example 4 and 9 for two children. Infants are age 0 or 1.",
            "items": {
              "type": "string"
            }
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Seat class to search.",
            "default": "economy"
          },
          "maxStops": {
            "title": "Stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Most stops per direction. Itineraries with more stops are left out and never charged.",
            "default": "any"
          },
          "airlines": {
            "title": "Airlines (optional)",
            "type": "array",
            "description": "Two letter airline codes to keep, for example BA, UA, EK. An itinerary is kept when any of its flights is sold by one of them. Empty means every airline.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best",
              "cheapest",
              "fastest"
            ],
            "type": "string",
            "description": "Order of the rows. Best is Skyscanner's own ranking of price against duration and stops.",
            "default": "best"
          },
          "maxResults": {
            "title": "Max itineraries per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most itineraries to return for each route and date, 1 to 1,000. A busy route has 300 to 1,000.",
            "default": 100
          },
          "market": {
            "title": "Country (market)",
            "type": "string",
            "description": "Two letter country code of the shopper, for example US, UK, IN, DE, AE. Skyscanner shows the agents and fares of that country.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three letter currency code for the prices, for example USD, GBP, EUR, INR.",
            "default": "USD"
          },
          "locale": {
            "title": "Language (optional)",
            "type": "string",
            "description": "Language and region code for airport and agent names, for example en-US, en-GB, de-DE. Empty picks English for the market."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}