{
  "openapi": "3.0.1",
  "info": {
    "title": "Ryanair Fare Scraper — Explore & Timetable",
    "description": "Scrape Ryanair fares by route and flexible date window — cheapest one-way and round-trip prices, Explore mode, optional full timetable. Price, currency, flight number, schedule, airports, and booking links per row. Unofficial — not affiliated with Ryanair.",
    "version": "0.1",
    "x-build-id": "85zsRmEcDPXc6X62q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bakos_bence~ryanair-fares/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bakos_bence-ryanair-fares",
        "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/bakos_bence~ryanair-fares/runs": {
      "post": {
        "operationId": "runs-sync-bakos_bence-ryanair-fares",
        "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/bakos_bence~ryanair-fares/run-sync": {
      "post": {
        "operationId": "run-sync-bakos_bence-ryanair-fares",
        "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"
        ],
        "properties": {
          "origin": {
            "title": "From airport (3-letter IATA code)",
            "type": "string",
            "description": "Where you fly from — e.g. DUB (Dublin), STN (London Stansted), BCN (Barcelona). Pick a hub from the list or type any code. Several origins: comma-separate (DUB,STN). Required.",
            "default": "DUB"
          },
          "destination": {
            "title": "To airport (optional — leave empty for Explore)",
            "type": "string",
            "description": "Where you fly to — same 3-letter codes as above. Leave blank to compare fares from your origin to all Ryanair destinations. Comma-separate for several routes (DUB,STN).",
            "default": "STN"
          },
          "tripType": {
            "title": "One-way or round-trip",
            "enum": [
              "oneWay",
              "roundTrip"
            ],
            "type": "string",
            "description": "One-way = outbound window only. Round-trip = also fill return dates below.",
            "default": "oneWay"
          },
          "allFlights": {
            "title": "Full timetable (every flight each day)",
            "type": "boolean",
            "description": "Off (default): one row per day — the cheapest fare that day. On: every scheduled departure on fixed routes (still shows that day’s cheapest on each row).",
            "default": false
          },
          "departDateFrom": {
            "title": "Outbound from (first travel day)",
            "type": "string",
            "description": "Leave empty to start from today. Format YYYY-MM-DD — use the date picker."
          },
          "departDateTo": {
            "title": "Outbound until (last travel day)",
            "type": "string",
            "description": "Last day to search outbound. Empty = 7 days after “Outbound from”."
          },
          "returnDateFrom": {
            "title": "Return from (round-trip only)",
            "type": "string",
            "description": "Earliest inbound date when trip type is Round-trip."
          },
          "returnDateTo": {
            "title": "Return until (round-trip only)",
            "type": "string",
            "description": "Latest inbound date when trip type is Round-trip."
          },
          "currency": {
            "title": "Prices in currency",
            "type": "string",
            "description": "How fares are shown — EUR, GBP, USD, etc. Does not change which flights exist.",
            "default": "EUR"
          },
          "market": {
            "title": "Ryanair website language & market",
            "type": "string",
            "description": "Matches Ryanair’s locale (prices/links). Usually leave en-gb unless you need another market.",
            "default": "en-gb"
          },
          "maxPrice": {
            "title": "Max fare price (optional)",
            "type": "integer",
            "description": "Drop rows above this amount in your chosen currency. Empty = no price cap."
          },
          "sortBy": {
            "title": "Sort saved fares by",
            "enum": [
              "sourceOrder",
              "cheapest",
              "earliestDeparture",
              "shortestDuration"
            ],
            "type": "string",
            "description": "How rows appear in the dataset after scraping.",
            "default": "sourceOrder"
          },
          "includeUnavailable": {
            "title": "Include sold-out dates",
            "type": "boolean",
            "description": "Also save days with no seats (price empty) — useful for calendar views.",
            "default": false
          },
          "adults": {
            "title": "Adults (booking link)",
            "type": "integer",
            "description": "Passengers 16+ for the Ryanair booking URL on each row.",
            "default": 1
          },
          "teens": {
            "title": "Teens 12–15 (booking link)",
            "type": "integer",
            "description": "Ages 12–15 for the booking URL.",
            "default": 0
          },
          "children": {
            "title": "Children 2–11 (booking link)",
            "type": "integer",
            "description": "Ages 2–11 for the booking URL.",
            "default": 0
          },
          "infants": {
            "title": "Infants under 2 (booking link)",
            "type": "integer",
            "description": "Under 2 for the booking URL.",
            "default": 0
          },
          "maxResults": {
            "title": "Maximum fare rows",
            "type": "integer",
            "description": "Stops after this many rows (controls cost). Prefill 5 is a cheap first test.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Managed by the Actor; leave default. Datacenter Apify Proxy is forced in code (Residential is not used).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}