{
  "openapi": "3.0.1",
  "info": {
    "title": "Ryanair Flights Scraper",
    "description": "Scrape Ryanair flights by route and dates: the price of every flight with seats left, cheapest days, destinations and timetables. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "2UMGD8BGlirKgYOb6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nice_dev~ryanair-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nice_dev-ryanair-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/nice_dev~ryanair-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nice_dev-ryanair-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/nice_dev~ryanair-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nice_dev-ryanair-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "flights",
              "calendar",
              "destinations",
              "timetable"
            ],
            "type": "string",
            "description": "`flights`: one row per flight and day (outbound and, for a round trip, return), with the price of THAT flight, the seats left at this price and the fare per passenger type. `calendar`: one row per day with the cheapest price of the day. `destinations`: one row per destination reachable from the departure airport, with its lowest fare in the date range (empty **To** = every destination). `timetable`: one row per scheduled flight, without price.",
            "default": "flights"
          },
          "origin": {
            "title": "From",
            "maxLength": 200,
            "type": "string",
            "description": "Departure airport IATA code (`STN`, `DUB`), or a city name as on ryanair.com (`London` = every Ryanair airport of London). Several, separated by commas = one search per airport."
          },
          "origins": {
            "title": "More departure airports",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Several departure airports in one run, one per line. Added to **From**: every departure is searched to every destination (departures x destinations x dates: max 500 searches).",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "destination": {
            "title": "To",
            "maxLength": 200,
            "type": "string",
            "description": "Arrival airport IATA code or city name, several separated by commas. Empty = every destination Ryanair flies to from the departure airport (one search per route in the `flights`, `calendar` and `timetable` modes; the `destinations` mode reads all the destinations of the airport, a few more requests on a round trip or with arrival countries)."
          },
          "destinations": {
            "title": "More arrival airports",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Several arrival airports in one run, one per line. Added to **To**.",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "routes": {
            "title": "Routes",
            "maxItems": 500,
            "uniqueItems": true,
            "type": "array",
            "description": "Ready-made routes, one per line: `STN-DUB`, optionally with their own dates `STN-DUB 2026-12-10` (one-way) or `STN-DUB 2026-12-10 2026-12-17` (round trip). A route without dates uses the dates below. Added to the airports above; max 500 routes.",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "default": []
          },
          "startUrls": {
            "title": "Ryanair links",
            "maxItems": 1000,
            "type": "array",
            "description": "Ryanair search links copied from the address bar (`https://www.ryanair.com/gb/en/trip/flights/select?adults=1&teens=0&children=0&infants=0&dateOut=2026-12-10&dateIn=&isReturn=false&originIata=STN&destinationIata=DUB`, any country site): their airports, dates, passengers and trip type are kept. Added to the searches of this form. Max 1 000 links.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "oneWay",
              "roundTrip"
            ],
            "type": "string",
            "description": "`roundTrip` also reads the return flights (`direction` = `inbound`) with the return dates below, or the trip length. In `destinations` mode one row = the cheapest outbound + return pair.",
            "default": "oneWay"
          },
          "departDateFrom": {
            "title": "Departure from",
            "maxLength": 40,
            "type": "string",
            "description": "First departure day: a date (`2026-12-10`) or a period from the run date (`7 days`, `2 weeks`, `1 month`) - a saved task then always looks the same distance ahead. Empty = today."
          },
          "departDateTo": {
            "title": "Departure to",
            "maxLength": 40,
            "type": "string",
            "description": "Last departure day (included), a date or a period from the run date. Empty = 6 days after **Departure from** in `flights` mode (one week), 1 month after it in the other modes. Max 12 months ahead (Ryanair sells about 10-12 months ahead)."
          },
          "returnDateFrom": {
            "title": "Return from",
            "maxLength": 40,
            "type": "string",
            "description": "Round trip only: first return day, a date or a period from the run date. Empty = use **Trip length** below, or the same window as the departure."
          },
          "returnDateTo": {
            "title": "Return to",
            "maxLength": 40,
            "type": "string",
            "description": "Round trip only: last return day (included). Empty = 6 days after **Return from** (`flights`), 1 month after it (other modes)."
          },
          "tripDurationFrom": {
            "title": "Trip length from (days)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Round trip only: shortest stay, in days (return day - departure day). Empty = any."
          },
          "tripDurationTo": {
            "title": "Trip length to (days)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Round trip only: longest stay, in days. Empty = any."
          },
          "flexDays": {
            "title": "Flexible days",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Widen each single date of a pasted link or of a route with its own date by this many days after it (Ryanair's own flexible search, 0-6). 0 = the day only. The form dates above are already a range.",
            "default": 0
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Passengers aged 16 or more.",
            "default": 1
          },
          "teens": {
            "title": "Teens",
            "minimum": 0,
            "maximum": 25,
            "type": "integer",
            "description": "Passengers aged 12-15.",
            "default": 0
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 25,
            "type": "integer",
            "description": "Passengers aged 2-11.",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "minimum": 0,
            "maximum": 25,
            "type": "integer",
            "description": "Under 2, on the lap of an adult: at most one per adult. The infant fee is added to `totalPrice`.",
            "default": 0
          },
          "currency": {
            "title": "Currency",
            "pattern": "^([A-Za-z]{3})?$",
            "maxLength": 3,
            "type": "string",
            "description": "3-letter code (`EUR`, `USD`, `GBP`, `PLN`) for the `calendar` and `destinations` modes. The `flights` mode always uses the currency of the departure country (Ryanair sells in it: GBP from London, EUR from Dublin) - `currency` on each row says which. Empty = the departure country's currency everywhere."
          },
          "market": {
            "title": "Market (booking link language)",
            "enum": [
              "en-gb",
              "en-ie",
              "de-de",
              "fr-fr",
              "es-es",
              "it-it",
              "pl-pl",
              "pt-pt",
              "nl-nl",
              "nl-be",
              "fr-be",
              "de-at",
              "de-ch",
              "da-dk",
              "sv-se",
              "no-no",
              "el-gr",
              "hu-hu",
              "cs-cz",
              "sk-sk",
              "lt-lt",
              "lv-lv",
              "hr-hr",
              "en-mt",
              "fr-ma",
              "en-us"
            ],
            "type": "string",
            "description": "Country site and language of the booking links (`url`) and of the cheapest-fare search.",
            "default": "en-gb"
          },
          "promoCode": {
            "title": "Promo code",
            "maxLength": 40,
            "type": "string",
            "description": "Ryanair promo code applied to the `flights` mode. An unknown code is ignored by Ryanair."
          },
          "includeConnectingFlights": {
            "title": "Include connecting flights",
            "type": "boolean",
            "description": "`flights` mode: also ask Ryanair for its connecting flights (two Ryanair flights, `stops` = 1). Most routes have none.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Most rows saved for the whole run (after filters): flights, calendar days, destinations or scheduled flights. 0 = no limit. Rows of the options are not counted here.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max rows per search",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for EACH search (route x dates, or pasted link), so that the first route cannot use up the whole **Max rows**. Applied after the sort below. 0 = no per-search cap.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "departure",
              "price",
              "duration"
            ],
            "type": "string",
            "description": "Order of the rows of each search, before the per-search cap. Earliest departure first puts ways out and ways back in date order; in destinations mode a row is the cheapest fare of a destination and that mode keeps the cheapest destinations first.",
            "default": "departure"
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Highest adult fare, in the row's currency (also sent to Ryanair in `destinations` mode). Empty = no limit."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Lowest adult fare, in the row's currency. Empty = no limit."
          },
          "departureTimeFrom": {
            "title": "Departure from (time)",
            "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
            "maxLength": 5,
            "type": "string",
            "description": "Earliest local departure time, `HH:MM` (`06:00`). Empty = any. Later than the latest time (`22:00` to `05:00`) = a window that passes midnight: keeps the night flights. In calendar mode a day is its cheapest flight, the window checks that flight only."
          },
          "departureTimeTo": {
            "title": "Departure to (time)",
            "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
            "maxLength": 5,
            "type": "string",
            "description": "Latest local departure time, `HH:MM` (`10:00`). Empty = any. With an earliest time that is later (`22:00` → `05:00`) the window passes midnight and keeps the night flights. In calendar mode a day is its cheapest flight, the window checks that flight only."
          },
          "daysOfWeek": {
            "title": "Days of the week",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only the departures on these days. Empty = every day.",
            "items": {
              "type": "string",
              "enum": [
                "MONDAY",
                "TUESDAY",
                "WEDNESDAY",
                "THURSDAY",
                "FRIDAY",
                "SATURDAY",
                "SUNDAY"
              ],
              "enumTitles": [
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday",
                "Sunday"
              ]
            },
            "default": []
          },
          "arrivalCountries": {
            "title": "Arrival countries",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these arrival countries, 2-letter codes (`ES`, `IT`). Sent to Ryanair in `destinations` mode. Empty = every country.",
            "items": {
              "type": "string",
              "maxLength": 2
            },
            "default": []
          },
          "maxDurationMinutes": {
            "title": "Max flight duration (minutes)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Longest flight, in minutes. `flights` mode only: the other modes have no flight duration and ignore it. Empty = any."
          },
          "includeUnavailable": {
            "title": "Include sold-out flights and days",
            "type": "boolean",
            "description": "Also save the flights Ryanair sells no seat on (`flights` mode) and the calendar days that are sold out or without flight (`soldOut` / `unavailable`, `price` null). Off = rows with a price only. Rows without a price are never charged.",
            "default": false
          },
          "excludeKeywords": {
            "title": "Exclude airports or cities",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Drop the rows whose departure or arrival airport, city or country name contains one of these WHOLE words (case and accents ignored): `Tenerife` drops both Tenerife airports.",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "includeRouteSummary": {
            "title": "Route summary",
            "type": "boolean",
            "description": "Add one row per search - a route, or a departure airport in `destinations` mode (`recordType` = `routeSummary`): cheapest day and flight, lowest, highest, median and average price, the lowest price of each month, number of flights and of days. Built from the rows already read: no extra request. Charged per summary row, see Pricing.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new rows",
            "type": "boolean",
            "description": "Skip the rows a previous run (same **Memory key**) already delivered: not saved, not charged. A row = same flight on the same day (or the same calendar day, destination and dates). First run = everything is new.",
            "default": false
          },
          "trackPriceChanges": {
            "title": "Price changes",
            "type": "boolean",
            "description": "Needs **Only new rows**. A row already delivered comes back when its price has moved by at least the threshold below since the run that delivered it: `previousPrice`, `priceChange` and `priceChangePct` are filled. Charged per row that comes back as a price change, on top of the row itself, see Pricing; a row whose price did not move enough is skipped and costs nothing.",
            "default": false
          },
          "priceChangeThreshold": {
            "title": "Price change threshold (%)",
            "minimum": 0.1,
            "maximum": 100,
            "type": "number",
            "description": "Used with **Price changes**: 3 means a price going from 100 to 103 or to 97.",
            "default": 3
          },
          "stateKey": {
            "title": "Memory key",
            "pattern": "^[a-zA-Z0-9_-]{1,64}$",
            "maxLength": 64,
            "type": "string",
            "description": "Name of the memory used by **Only new rows**. Give each schedule / task its own key (e.g. `stn-dub`). Letters, digits, `-` and `_`.",
            "default": "default"
          },
          "resetState": {
            "title": "Reset memory",
            "type": "boolean",
            "description": "Forget the rows delivered under this **Memory key** before the run: this run returns (and charges) every row again. Untick it afterwards.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy or your own proxies. Keep the default: it is included in the price. The residential Apify proxy is not available in this Actor.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of requests processed in parallel.",
            "default": 4
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Most requests to Ryanair in any 60 seconds, all of them counted (session page, flights, fares, timetable, airports). A budget, not an even pace: spread them with the minimum delay below. Lower it if the log shows HTTP 409 / 429.",
            "default": 60
          },
          "minRequestIntervalMs": {
            "title": "Min delay between requests",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Smallest gap between two requests, in milliseconds. 0 = no gap.",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries per request before it is marked as failed. A request Ryanair turns away (409 session refused) is retried with a new session up to 10 times without using up these retries.",
            "default": 5
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Include debug messages in the run log.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}