{
  "openapi": "3.0.1",
  "info": {
    "title": "Ryanair Flight Availability Scraper",
    "description": "Scrape Ryanair flight availability, priced fares, and calendar dates for origin/destination routes. Agents pass IATA codes and dates and receive structured flight records.",
    "version": "1.0",
    "x-build-id": "RUX9RU59gxHjY5EfL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigelbytes~ryanair-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigelbytes-ryanair-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/rigelbytes~ryanair-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rigelbytes-ryanair-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/rigelbytes~ryanair-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rigelbytes-ryanair-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": {
          "originIata": {
            "title": "Origin airport",
            "type": "string",
            "description": "3-letter IATA code of the departure airport, for example BER or STN."
          },
          "destinationIata": {
            "title": "Destination airport",
            "type": "string",
            "description": "3-letter IATA code of the arrival airport, for example MAD or BCN. Leave empty to scrape every destination served from the origin."
          },
          "dateOut": {
            "title": "Outbound date",
            "type": "string",
            "description": "Outbound travel date (YYYY-MM-DD). If omitted for flights mode, the first calendar date is used."
          },
          "dateIn": {
            "title": "Return date",
            "type": "string",
            "description": "Return travel date (YYYY-MM-DD). Leave empty for a one-way search."
          },
          "dateOutEnd": {
            "title": "Outbound date range end",
            "type": "string",
            "description": "Optional last outbound date. The Actor walks DateOut in flex-day windows up to this date, the same way the site calendar does."
          },
          "dateInEnd": {
            "title": "Return date range end",
            "type": "string",
            "description": "Optional last return date when browsing inbound dates with a fixed outbound date."
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "auto",
              "return",
              "oneway"
            ],
            "type": "string",
            "description": "return uses dateIn. oneway ignores the return date. auto treats the search as return when dateIn is set.",
            "default": "auto"
          },
          "routes": {
            "title": "Additional routes",
            "type": "array",
            "description": "Optional extra routes. Each object may include originIata, destinationIata, dateOut, dateIn, and the same passenger fields as the top-level input."
          },
          "startUrls": {
            "title": "Ryanair start URLs",
            "type": "array",
            "description": "Optional Ryanair flight-select or search URLs. Origin, destination, dates, and passengers are read from the query string.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Number of adult passengers (16+).",
            "default": 1
          },
          "teens": {
            "title": "Teens",
            "minimum": 0,
            "maximum": 24,
            "type": "integer",
            "description": "Number of teen passengers (12-15).",
            "default": 0
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 24,
            "type": "integer",
            "description": "Number of child passengers (2-11).",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "minimum": 0,
            "maximum": 24,
            "type": "integer",
            "description": "Number of infant passengers (under 2).",
            "default": 0
          },
          "promoCode": {
            "title": "Promo code",
            "type": "string",
            "description": "Optional Ryanair promo or voucher code applied to the fare search."
          },
          "includeConnectingFlights": {
            "title": "Include connecting flights",
            "type": "boolean",
            "description": "When enabled, the search includes connecting itineraries.",
            "default": false
          },
          "includePrimeFares": {
            "title": "Include Prime fares",
            "type": "boolean",
            "description": "When enabled, Prime fares are requested in the availability search.",
            "default": false
          },
          "flexDays": {
            "title": "Flex days",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Days before and after the requested dates, matching the site calendar (0-6). Each request covers this window.",
            "default": 2
          },
          "market": {
            "title": "Market / locale",
            "type": "string",
            "description": "Ryanair market used in booking URLs and availability, for example en-ie, de-de, or es-es.",
            "default": "en-ie"
          },
          "scrapeMode": {
            "title": "What to scrape",
            "enum": [
              "flights",
              "availableDates",
              "both"
            ],
            "type": "string",
            "description": "flights returns priced flights. availableDates returns calendar dates that have a flight. both returns calendar dates then priced flights.",
            "default": "flights"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of records to scrape (0 = unlimited).",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are recommended for reliable availability results.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}