{
  "openapi": "3.0.1",
  "info": {
    "title": "Skyscanner Flight Price Scraper API",
    "description": "Scrape Skyscanner-style flight prices by route and date. Get bestPrice, cheapestSource, provider quotes, airline, stops, segments, ratings, and booking links. Supports one-way and round-trip fares with optional Ryanair and Travelpayouts sources.",
    "version": "0.0",
    "x-build-id": "5hUjhk0h2E82azs9i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/elliotpadfield~skyscanner-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-elliotpadfield-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/elliotpadfield~skyscanner-scraper/runs": {
      "post": {
        "operationId": "runs-sync-elliotpadfield-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/elliotpadfield~skyscanner-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-elliotpadfield-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",
        "required": [
          "origin",
          "destination",
          "departDate"
        ],
        "properties": {
          "origin": {
            "title": "Origin Airport",
            "type": "string",
            "description": "Origin airport IATA code, such as STN, DUB, LAX, JFK, or LHR.",
            "default": "STN"
          },
          "destination": {
            "title": "Destination Airport",
            "type": "string",
            "description": "Destination airport IATA code.",
            "default": "DUB"
          },
          "departDate": {
            "title": "Departure Date",
            "type": "string",
            "description": "Departure date in YYYY-MM-DD format.",
            "default": "2026-07-15"
          },
          "returnDate": {
            "title": "Return Date",
            "type": "string",
            "description": "Optional return date in YYYY-MM-DD format. Leave blank for one-way searches."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Number of adult passengers.",
            "default": 1
          },
          "teens": {
            "title": "Teens",
            "minimum": 0,
            "maximum": 24,
            "type": "integer",
            "description": "Number of teen passengers.",
            "default": 0
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 24,
            "type": "integer",
            "description": "Number of child passengers.",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "minimum": 0,
            "maximum": 24,
            "type": "integer",
            "description": "Number of infant passengers.",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin Class",
            "enum": [
              "ECONOMY",
              "PREMIUM_ECONOMY",
              "BUSINESS",
              "FIRST"
            ],
            "type": "string",
            "description": "Cabin class filter. Ryanair only supports ECONOMY; Travelpayouts may return cached fares for other cabin classes depending on its upstream data.",
            "default": "ECONOMY"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO currency code used for fares.",
            "default": "GBP"
          },
          "sources": {
            "title": "Sources",
            "uniqueItems": true,
            "type": "array",
            "description": "Flight price sources to query. Skyscanner uses the public web result API with Chrome TLS impersonation. Travelpayouts requires travelpayoutsToken.",
            "items": {
              "type": "string",
              "enum": [
                "skyscanner",
                "ryanair",
                "travelpayouts"
              ],
              "enumTitles": [
                "Skyscanner web results",
                "Ryanair live fare calendar",
                "Travelpayouts cached fares"
              ]
            },
            "default": [
              "skyscanner"
            ]
          },
          "searchMode": {
            "title": "Search Mode",
            "enum": [
              "exactDate",
              "departureMonth"
            ],
            "type": "string",
            "description": "Use exactDate for one date, or departureMonth to return available Ryanair cheap-date fares in the departure month.",
            "default": "exactDate"
          },
          "maxFlights": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum merged fare rows to save.",
            "default": 50
          },
          "travelpayoutsToken": {
            "title": "Travelpayouts Token",
            "type": "string",
            "description": "Optional Travelpayouts API token. Required only if the Travelpayouts source is selected."
          },
          "skyscannerMarket": {
            "title": "Skyscanner Market",
            "type": "string",
            "description": "Skyscanner market header, such as UK or US.",
            "default": "UK"
          },
          "skyscannerLocale": {
            "title": "Skyscanner Locale",
            "type": "string",
            "description": "Skyscanner locale header, such as en-GB or en-US.",
            "default": "en-GB"
          },
          "skyscannerOriginEntityId": {
            "title": "Skyscanner Origin Entity ID",
            "type": "string",
            "description": "Optional override if route-page entity resolution fails."
          },
          "skyscannerDestinationEntityId": {
            "title": "Skyscanner Destination Entity ID",
            "type": "string",
            "description": "Optional override if route-page entity resolution fails."
          },
          "includeRawData": {
            "title": "Include Raw Source Data",
            "type": "boolean",
            "description": "Attach raw source response fragments for debugging or custom parsing. This makes dataset rows larger.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Maximum Concurrency",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Number of source requests to run in parallel.",
            "default": 2
          },
          "requestDelayMs": {
            "title": "Retry Delay",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Base delay in milliseconds between retry attempts after transient failures.",
            "default": 500
          },
          "maxRetries": {
            "title": "Maximum Retries",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retry count for transient HTTP and proxy failures.",
            "default": 3
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional Apify Proxy settings. Ryanair fare calendar usually works without a proxy; enable proxy if your runs hit regional blocks.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}