{
  "openapi": "3.0.1",
  "info": {
    "title": "Skyscanner Flights, Calendar & Everywhere Scraper",
    "description": "Extract live Skyscanner flight fares, cheapest month calendars, round-trip date matrices, Explore Everywhere deals & airport lookup without a browser (256 MB RAM).",
    "version": "2.0",
    "x-build-id": "Wq4uO3UYHT1vuCF4i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jistudio~skyscanner-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jistudio-skyscanner-flights-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/jistudio~skyscanner-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jistudio-skyscanner-flights-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/jistudio~skyscanner-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jistudio-skyscanner-flights-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",
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "title": "Scraping Mode",
            "enum": [
              "live_flights",
              "cheapest_month_calendar",
              "roundtrip_price_matrix",
              "date_range_fare_finder",
              "explore_everywhere",
              "airport_autosuggest"
            ],
            "type": "string",
            "description": "Choose what to extract from Skyscanner. If Start URLs are provided, they are automatically parsed for live flight extraction.",
            "default": "live_flights"
          },
          "startUrls": {
            "title": "Skyscanner Flight URLs (Optional)",
            "type": "array",
            "description": "Optional list of direct Skyscanner flight search URLs (e.g. https://www.skyscanner.net/transport/flights/sgn/nrt/261215/261222/?adults=1&cabinclass=economy). Automatically extracts route, dates, cabin, passengers & currency.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "origin": {
            "title": "Origin Airport or City (IATA / Name)",
            "type": "string",
            "description": "Departure IATA code (e.g. 'SGN', 'LHR', 'JFK', 'SIN', 'NRT') or city name (automatically resolved via Skyscanner Autosuggest).",
            "default": "SGN"
          },
          "destination": {
            "title": "Destination Airport, City, or Country (IATA / Name)",
            "type": "string",
            "description": "Arrival IATA code (e.g. 'NRT', 'JFK', 'BKK', 'SYD', 'TYOA') or city/country name. Optional for 'explore_everywhere'.",
            "default": "NRT"
          },
          "departureDate": {
            "title": "Departure Date (YYYY-MM-DD or YYYY-MM)",
            "type": "string",
            "description": "Outbound date in YYYY-MM-DD (for live_flights / date_range_fare_finder) or YYYY-MM (for calendars). Leave blank to default dynamically to 21 days from today.",
            "default": ""
          },
          "returnDate": {
            "title": "Return Date (Optional — Round-Trip YYYY-MM-DD or YYYY-MM)",
            "type": "string",
            "description": "Leave empty for one-way flights. Set YYYY-MM-DD for live round-trip flights, or YYYY-MM for roundtrip_price_matrix.",
            "default": ""
          },
          "multiCityLegs": {
            "title": "Multi-City Legs (Optional JSON Array)",
            "type": "array",
            "description": "Optional multi-city itinerary array for live_flights, e.g. [{\"origin\":\"JFK\",\"destination\":\"LAX\",\"date\":\"2026-12-15\"}]. Overrides origin/destination/departureDate when provided."
          },
          "cabinClass": {
            "title": "Cabin Class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class for live_flights and date_range_fare_finder.",
            "default": "economy"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adult passengers (1–8).",
            "default": 1
          },
          "children": {
            "title": "Children (2–11 yrs)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of child passengers (0–8).",
            "default": 0
          },
          "infants": {
            "title": "Infants (under 2 yrs)",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Number of infant passengers (0–4).",
            "default": 0
          },
          "market": {
            "title": "Market Country Code",
            "type": "string",
            "description": "2-letter ISO country code (e.g. 'US', 'GB', 'VN', 'SG', 'JP', 'AU', 'DE', 'FR').",
            "default": "US"
          },
          "currency": {
            "title": "Currency Code",
            "type": "string",
            "description": "3-letter ISO currency code (e.g. 'USD', 'VND', 'GBP', 'EUR', 'JPY', 'SGD', 'AUD').",
            "default": "USD"
          },
          "locale": {
            "title": "Locale",
            "type": "string",
            "description": "Display language locale (e.g. 'en-US', 'en-GB', 'vi-VN', 'ja-JP', 'de-DE').",
            "default": "en-US"
          },
          "directOnly": {
            "title": "Direct / Non-Stop Flights Only",
            "type": "boolean",
            "description": "If true, filter results to non-stop flights only.",
            "default": false
          },
          "maxStops": {
            "title": "Maximum Stops (-1 = Any)",
            "minimum": -1,
            "maximum": 3,
            "type": "integer",
            "description": "Filter itineraries by maximum stop count (0 = direct, 1 = max 1 stop, -1 = unlimited).",
            "default": -1
          },
          "maxPrice": {
            "title": "Maximum Price (0 = Any)",
            "minimum": 0,
            "type": "number",
            "description": "Filter out fares above this price in the selected currency (0 = no cap).",
            "default": 0
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "cheapest",
              "fastest",
              "earliest_departure"
            ],
            "type": "string",
            "description": "Order of returned flight itineraries.",
            "default": "cheapest"
          },
          "monthsCount": {
            "title": "Months to Scan (Calendar Mode)",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Number of consecutive months to fetch in cheapest_month_calendar (1–12).",
            "default": 1
          },
          "flexibleDays": {
            "title": "Flexible Days Window (Date-Range Finder)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of consecutive days starting from departureDate to scan live fares (1–30).",
            "default": 5
          },
          "minTripDays": {
            "title": "Min Trip Duration Days (Round-Trip Matrix)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Minimum nights between outbound and return date in roundtrip_price_matrix.",
            "default": 2
          },
          "maxTripDays": {
            "title": "Max Trip Duration Days (Round-Trip Matrix)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Maximum nights between outbound and return date in roundtrip_price_matrix.",
            "default": 14
          },
          "searchQuery": {
            "title": "Autosuggest Search Query",
            "type": "string",
            "description": "City, airport, or hotel search phrase for airport_autosuggest (e.g. 'Tokyo', 'Ho Chi Minh', 'London').",
            "default": "Tokyo"
          },
          "maxItems": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of dataset records to return (1–5,000).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}