{
  "openapi": "3.0.1",
  "info": {
    "title": "Ryanair Scraper - Cheap Fares Anywhere, Round Trips & Calendar",
    "description": "Cheapest Ryanair fares from one or many airports, cities or countries to anywhere or to the places you pick. Round trips are paired with the total price and nights, or get a daily fare calendar. Prices in your currency, booking links, price-drop monitoring. Pay only per fare row.",
    "version": "0.1",
    "x-build-id": "4emb35UGYZgBkIBfh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~ryanair-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-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/neverempty~ryanair-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-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/neverempty~ryanair-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-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": {
          "origins": {
            "title": "From (airports, cities or countries)",
            "type": "array",
            "description": "Where you fly from. Each entry is an IATA airport code (STN), a city (London, Milan) or a country (Ireland, ES). A city or country searches all of its Ryanair airports. Up to 20 airports per run.",
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "To (empty = anywhere)",
            "type": "array",
            "description": "Where you want to go: IATA airport codes, cities or countries. Leave empty to get every destination Ryanair flies to from your origins.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Earliest departure date",
            "type": "string",
            "description": "YYYY-MM-DD, or +N for N days from today (UTC), so a scheduled run never runs out of dates. Empty = tomorrow."
          },
          "dateTo": {
            "title": "Latest departure date",
            "type": "string",
            "description": "YYYY-MM-DD or +N. Empty = 30 days after the earliest date. Up to 366 days."
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "oneWay",
              "roundTrip"
            ],
            "type": "string",
            "description": "oneWay = outbound fares. roundTrip = the cheapest return flight is paired with each outbound flight, with the total price and the number of nights. Empty = oneWay."
          },
          "stayMin": {
            "title": "Round trip: fewest nights",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Shortest stay for round trips (0 = same-day return). Empty = 2."
          },
          "stayMax": {
            "title": "Round trip: most nights",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Longest stay for round trips. Empty = 7."
          },
          "mode": {
            "title": "Result type",
            "enum": [
              "cheapest",
              "calendar"
            ],
            "type": "string",
            "description": "cheapest = the single cheapest fare (or round trip) for each route in your dates. calendar = the cheapest fare for every departure day. Empty = cheapest."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0.01,
            "type": "number",
            "description": "Only return fares at or under this price (in the chosen currency). For round trips it applies to the total of both flights."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code for the prices, for example EUR, GBP or PLN. Empty = EUR."
          },
          "daysOfWeek": {
            "title": "Departure days of the week",
            "type": "array",
            "description": "Only depart on these days, for example FRIDAY and SATURDAY for weekend trips. Empty = any day.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum fare rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many fare rows (you pay only for rows returned). Empty = 1000."
          },
          "watchName": {
            "title": "Monitor name (price alerts)",
            "type": "string",
            "description": "Give a name to remember fares between runs. Each row then says first-check, new, price-down, price-up or unchanged, with the previous price. Use one name per saved search."
          },
          "onlyChanges": {
            "title": "Only new fares and price changes",
            "type": "boolean",
            "description": "With a monitor name: return (and charge) only fares that are new or changed price since the last run."
          },
          "minPriceChangePercent": {
            "title": "Smallest price change to report (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "With only changes on: ignore price moves smaller than this percentage. Empty = 0 (every change)."
          },
          "resetMonitoringState": {
            "title": "Forget earlier runs of this monitor",
            "type": "boolean",
            "description": "Start this monitor fresh, as if it never ran."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}