{
  "openapi": "3.0.1",
  "info": {
    "title": "Skyscanner Flights Scraper",
    "description": "Fast and reliable Skyscanner scraper to extract flight itineraries, prices, and carrier information.",
    "version": "0.1",
    "x-build-id": "IZU8eLEQc1IXmkZXN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlio~skyscanner-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlio-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/crawlio~skyscanner-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlio-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/crawlio~skyscanner-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlio-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",
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "oneWay",
              "roundTrip",
              "multiCity"
            ],
            "type": "string",
            "description": "Choose which search flow to run.",
            "default": "oneWay"
          },
          "oneWay": {
            "title": "One-way input",
            "type": "object",
            "description": "Search one-way flights for a single leg.",
            "properties": {
              "origin": {
                "title": "Origin",
                "type": "string",
                "description": "Origin airport code (IATA) or city name.",
                "default": "JFK",
                "editor": "textfield"
              },
              "dest": {
                "title": "Destination",
                "type": "string",
                "description": "Destination airport code (IATA) or city name.",
                "default": "LHR",
                "editor": "textfield"
              },
              "date": {
                "title": "Departure date",
                "type": "string",
                "description": "Departure date in YYYY-MM-DD format.",
                "default": "",
                "editor": "datepicker",
                "dateType": "absolute"
              },
              "adults": {
                "title": "Adults",
                "type": "integer",
                "description": "Number of adult passengers.",
                "default": 1,
                "minimum": 1,
                "maximum": 8,
                "editor": "number"
              },
              "cabin": {
                "title": "Cabin Class",
                "type": "string",
                "description": "Cabin class.",
                "default": "economy",
                "enum": [
                  "economy",
                  "business",
                  "first"
                ],
                "editor": "select"
              },
              "limit": {
                "title": "Limit",
                "type": "integer",
                "description": "Set your limit (maximum number of flights to return). Default is 20. Lower limits reduce costs.",
                "default": 20,
                "editor": "number"
              },
              "market": {
                "title": "Market",
                "type": "string",
                "description": "Market location (e.g., US, UK)",
                "default": "US",
                "editor": "textfield"
              },
              "locale": {
                "title": "Locale",
                "type": "string",
                "description": "Language and region (e.g., en-US)",
                "default": "en-US",
                "editor": "textfield"
              },
              "currency": {
                "title": "Currency",
                "type": "string",
                "description": "Currency code (e.g., USD)",
                "default": "USD",
                "editor": "textfield"
              }
            },
            "additionalProperties": false
          },
          "roundTrip": {
            "title": "Round-trip input",
            "type": "object",
            "description": "Search round-trip flights with a departure date and a return date.",
            "properties": {
              "origin": {
                "title": "Origin",
                "type": "string",
                "description": "Origin airport code (IATA) or city name.",
                "default": "JFK",
                "editor": "textfield"
              },
              "dest": {
                "title": "Destination",
                "type": "string",
                "description": "Destination airport code (IATA) or city name.",
                "default": "LHR",
                "editor": "textfield"
              },
              "outbound_date": {
                "title": "Outbound date",
                "type": "string",
                "description": "Departure date in YYYY-MM-DD format.",
                "default": "",
                "editor": "datepicker",
                "dateType": "absolute"
              },
              "inbound_date": {
                "title": "Inbound date",
                "type": "string",
                "description": "Return date in YYYY-MM-DD format.",
                "default": "",
                "editor": "datepicker",
                "dateType": "absolute"
              },
              "adults": {
                "title": "Adults",
                "type": "integer",
                "description": "Number of adult passengers.",
                "default": 1,
                "minimum": 1,
                "maximum": 8,
                "editor": "number"
              },
              "cabin": {
                "title": "Cabin Class",
                "type": "string",
                "description": "Cabin class.",
                "default": "economy",
                "enum": [
                  "economy",
                  "business",
                  "first"
                ],
                "editor": "select"
              },
              "limit": {
                "title": "Limit",
                "type": "integer",
                "description": "Set your limit (maximum number of flights to return). Default is 20. Lower limits reduce proxy costs.",
                "default": 20,
                "editor": "number"
              },
              "market": {
                "title": "Market",
                "type": "string",
                "description": "Market location (e.g., US, UK)",
                "default": "US",
                "editor": "textfield"
              },
              "locale": {
                "title": "Locale",
                "type": "string",
                "description": "Language and region (e.g., en-US)",
                "default": "en-US",
                "editor": "textfield"
              },
              "currency": {
                "title": "Currency",
                "type": "string",
                "description": "Currency code (e.g., USD)",
                "default": "USD",
                "editor": "textfield"
              }
            },
            "additionalProperties": false
          },
          "multiCity": {
            "title": "Multi-city input",
            "type": "object",
            "description": "Search multi-city itineraries across two or more legs.",
            "properties": {
              "route_requests": {
                "title": "Route Requests JSON",
                "type": "string",
                "description": "List of legs; each includes origin, dest, and date (YYYY-MM-DD).",
                "editor": "textarea",
                "default": "[\n  {\n    \"origin\": \"JFK\",\n    \"dest\": \"LHR\",\n    \"date\": \"\"\n  },\n  {\n    \"origin\": \"LHR\",\n    \"dest\": \"CDG\",\n    \"date\": \"\"\n  }\n]"
              },
              "adults": {
                "title": "Adults",
                "type": "integer",
                "description": "Number of adult passengers.",
                "default": 1,
                "minimum": 1,
                "maximum": 8,
                "editor": "number"
              },
              "cabin": {
                "title": "Cabin Class",
                "type": "string",
                "description": "Cabin class.",
                "default": "economy",
                "enum": [
                  "economy",
                  "business",
                  "first"
                ],
                "editor": "select"
              },
              "limit": {
                "title": "Limit",
                "type": "integer",
                "description": "Maximum number of flights to return. Keep empty to get the full list.",
                "default": 20,
                "editor": "number"
              },
              "market": {
                "title": "Market",
                "type": "string",
                "description": "Market location (e.g., US, UK)",
                "default": "US",
                "editor": "textfield"
              },
              "locale": {
                "title": "Locale",
                "type": "string",
                "description": "Language and region (e.g., en-US)",
                "default": "en-US",
                "editor": "textfield"
              },
              "currency": {
                "title": "Currency",
                "type": "string",
                "description": "Currency code (e.g., USD)",
                "default": "USD",
                "editor": "textfield"
              }
            },
            "additionalProperties": false
          },
          "proxyConfiguration": {
            "title": "Proxy Settings",
            "type": "object",
            "description": "Select proxies to be used.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}