{
  "openapi": "3.0.1",
  "info": {
    "title": "Skyscanner Flight Price Scraper",
    "description": "Scrape Skyscanner flight prices: every booking site's price for each itinerary, legs, flight numbers, stops and booking links, a route summary per search, and a cheapest-price-per-day calendar. One-way, return and multi-city.",
    "version": "0.1",
    "x-build-id": "lFZDFKEcrROcr0bpn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~skyscanner-flight-price-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-skyscanner-flight-price-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/automation-lab~skyscanner-flight-price-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-skyscanner-flight-price-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/automation-lab~skyscanner-flight-price-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-skyscanner-flight-price-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": "What to get",
            "enum": [
              "search",
              "priceCalendar"
            ],
            "type": "string",
            "description": "<b>Flight search</b>: one row per itinerary for the given dates, with all booking agents and their prices, legs, flight numbers, stops and layovers. <b>Price calendar</b>: one row per day with the cheapest one-way price Skyscanner shows for the route over the next ~11 months (dates and passenger fields are ignored).",
            "default": "search"
          },
          "origin": {
            "title": "From",
            "type": "string",
            "description": "Departure airport or city: an IATA code (<code>LHR</code>, <code>JFK</code>), a city code (<code>LON</code>, <code>NYC</code> for all airports of the city) or a city name. When a name is ambiguous, Skyscanner's top match is used."
          },
          "destination": {
            "title": "To",
            "type": "string",
            "description": "Arrival airport or city, in the same form as <b>From</b>."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Outbound date, YYYY-MM-DD. Empty means 30 days from today, which keeps a scheduled task looking the same distance ahead. Flight search only."
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "Add a return date for a round trip (YYYY-MM-DD). Empty means one-way. Flight search only."
          },
          "multiCityLegs": {
            "title": "Multi-city legs",
            "type": "array",
            "description": "2 to 6 legs searched as one multi-city trip, each <code>{\"origin\": \"BER\", \"destination\": \"PAR\", \"date\": \"2027-03-05\"}</code>. Runs as an extra search next to From/To. Flight search only."
          },
          "additionalRoutes": {
            "title": "More routes",
            "type": "array",
            "description": "More routes in the same run, each <code>{\"origin\": \"LAX\", \"destination\": \"TYO\", \"departureDate\": \"2027-04-10\", \"returnDate\": \"2027-04-20\"}</code>. Dates are optional and follow the same rules as above. Used in both modes. At most 50 searches per run."
          },
          "startUrls": {
            "title": "Skyscanner URLs",
            "type": "array",
            "description": "Skyscanner flight result URLs such as <code>https://www.skyscanner.net/transport/flights/lond/nyca/261215/261222/?adultsv2=2&cabinclass=business</code>. Route, dates, adults, children and cabin are read from each URL; the cabin and passenger fields below do not apply to them. Any Skyscanner domain works.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "calendarMonth": {
            "title": "Calendar month",
            "type": "string",
            "description": "Price calendar only: keep only days in this month, e.g. <code>2027-03</code>. Empty returns every day Skyscanner has a price for."
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin for flight search.",
            "default": "economy"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Adult travellers (1-8). Prices are totals for all travellers.",
            "default": 1
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age (0-17) per child, e.g. <code>[7, 1]</code>. Age under 2 counts as an infant. Up to 9 travellers in total."
          },
          "market": {
            "title": "Market",
            "type": "string",
            "description": "Skyscanner market (country) as a 2-letter code, e.g. <code>US</code>, <code>UK</code>, <code>DE</code>. It decides which booking sites appear.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code for prices, e.g. <code>USD</code>, <code>GBP</code>, <code>EUR</code>.",
            "default": "USD"
          },
          "locale": {
            "title": "Language",
            "type": "string",
            "description": "Locale for place and agent names, e.g. <code>en-US</code>, <code>de-DE</code>.",
            "default": "en-US"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best",
              "cheapest",
              "fastest"
            ],
            "type": "string",
            "description": "Order of itineraries within each search, applied before the limit: Skyscanner's <b>Best</b> ranking, <b>Cheapest</b> first, or <b>Fastest</b> (shortest total flight time) first.",
            "default": "best"
          },
          "maxStops": {
            "title": "Maximum stops",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Keep only itineraries where every leg has at most this many stops. 0 means direct flights only. Empty means any."
          },
          "maxItinerariesPerSearch": {
            "title": "Max itineraries per search",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Itineraries saved per search, after sorting and filtering. Each search also saves one route summary row (cheapest, fastest, direct and per-airline prices). 0 saves only the route summaries, the cheapest way to monitor many routes. Skyscanner usually finds 100-1,500 itineraries per route. Price calendar ignores this.",
            "default": 50
          },
          "includeAllPrices": {
            "title": "Include every booking agent",
            "type": "boolean",
            "description": "On: each itinerary lists every booking agent's price and booking link. Off: only the cheapest agent.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}