Ryanair Flights API
The Ryanair Flights API returns every Ryanair flight between two airports or cities on a date, one way or round trip, and up to 3 days either side of each date. Each flight carries its flight number, the operating airline when another airline flies it for Ryanair, its departure and arrival in local time and UTC, and its duration. Its fares come per passenger type for the party you search, with the party's total, the seats left at that fare when Ryanair shows them, and the infant places left. A flight Ryanair sells no fare on for the party is marked as sold out.
Prices are in the departure airport's currency, as Ryanair sells them, and include taxes. A date with no Ryanair flight, or a code Ryanair does not fly from or to, returns an error.
API Parameters
Search Query
-
- Name
-
departure_id - Required
- Required
- Description
-
Parameter defines the departure airport or city as a Ryanair code, such as
DUBfor Dublin orLONfor every London airport Ryanair flies from. A code Ryanair does not fly from returns an error.
-
- Name
-
arrival_id - Required
- Required
- Description
-
Parameter defines the arrival airport or city as a Ryanair code, such as
STNfor London Stansted orMILfor every Milan airport Ryanair flies to. A code Ryanair does not fly to returns an error. It must differ fromdeparture_id.
Dates
-
- Name
-
flight_type - Required
- Optional
- Description
-
Parameter defines the type of trip. It can be set to
round_triporone_way, and defaults toround_trip.
-
- Name
-
outbound_date - Required
- Required
- Description
-
Parameter defines the departure date in
YYYY-MM-DDformat, from today.
-
- Name
-
return_date - Required
- Optional
- Description
-
Parameter defines the return date in
YYYY-MM-DDformat, on or afteroutbound_date. It is required whenflight_typeisround_tripand cannot be used withone_way.
-
- Name
-
flex_days - Required
- Optional
- Description
-
Parameter defines how many days before and after each date are searched too, from 0 to 3. It defaults to
0, and3returns the flights of up to 7 dates per leg.
Number of Passengers
-
- Name
-
adults - Required
- Optional
- Description
-
Parameter defines the number of adult passengers, aged 16 or older, from 1 to 25. A search without it is for one adult.
-
- Name
-
children_ages - Required
- Optional
- Description
-
Parameter defines the ages of child passengers as a comma-separated list, such as
13,5,1, each from 0 to 15. Ryanair prices ages 12 to 15 as teens, 2 to 11 as children, and 0 and 1 as infants on an adult's lap. A search has at most 25 adults and children aged 2 or older, one infant per adult and 18 infants in all.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
ryanair_flights.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Full Response
https://www.searchapi.io/api/v1/search?arrival_id=STN&departure_id=DUB&engine=ryanair_flights&flight_type=one_way&outbound_date=2026-12-30
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "ryanair_flights",
"departure_id": "DUB",
"arrival_id": "STN",
"outbound_date": "2026-12-30",
"flight_type": "one_way"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_0YRN3AeSq9ebUZViQnMZVuNK",
"status": "Success",
"created_at": "2026-11-26T14:14:40Z",
"request_time_taken": 2.04,
"parsing_time_taken": 0.02,
"total_time_taken": 2.06,
"request_url": "https://www.ryanair.com/ie/en/trip/flights/select?adults=1&teens=0&children=0&infants=0&dateOut=2026...",
"html_url": "https://www.searchapi.io/api/v1/searches/search_0YRN3AeSq9ebUZViQnMZVuNK.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_0YRN3AeSq9ebUZViQnMZVuNK"
},
"search_parameters": {
"engine": "ryanair_flights",
"departure_id": "DUB",
"arrival_id": "STN",
"outbound_date": "2026-12-26",
"flight_type": "one_way"
},
"search_information": {
"currency": "EUR"
},
"outbound_flights": [
{
"flight_number": "FR 294",
"airline_code": "FR",
"departure_airport": {
"id": "DUB",
"name": "Dublin",
"date": "2026-12-26",
"time": "06:30",
"datetime_utc": "2026-12-26T06:30:00Z"
},
"arrival_airport": {
"id": "STN",
"name": "London (Stansted)",
"date": "2026-12-26",
"time": "07:50",
"datetime_utc": "2026-12-26T07:50:00Z"
},
"duration": 80,
"price": 31.99,
"passenger_prices": [
{
"type": "adult",
"price": 31.99,
"count": 1
}
],
"total_price": 31.99,
"seats_left": 4,
"infants_left": 17
},
"..."
]
}
Round Trip
https://www.searchapi.io/api/v1/search?arrival_id=DUB&departure_id=STN&engine=ryanair_flights&outbound_date=2027-01-14&return_date=2027-01-21
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "ryanair_flights",
"departure_id": "STN",
"arrival_id": "DUB",
"outbound_date": "2027-01-14",
"return_date": "2027-01-21"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_xsbqAQMvzwICwmV3TyG85mrr",
"status": "Success",
"created_at": "2026-11-26T14:14:42Z",
"request_time_taken": 1.22,
"parsing_time_taken": 0.0,
"total_time_taken": 1.22,
"request_url": "https://www.ryanair.com/ie/en/trip/flights/select?adults=1&teens=0&children=0&infants=0&dateOut=2027...",
"html_url": "https://www.searchapi.io/api/v1/searches/search_xsbqAQMvzwICwmV3TyG85mrr.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_xsbqAQMvzwICwmV3TyG85mrr"
},
"search_parameters": {
"engine": "ryanair_flights",
"departure_id": "STN",
"arrival_id": "DUB",
"outbound_date": "2027-01-10",
"return_date": "2027-01-17",
"flight_type": "round_trip"
},
"search_information": {
"currency": "GBP"
},
"outbound_flights": [
{
"flight_number": "FR 271",
"airline_code": "FR",
"departure_airport": {
"id": "STN",
"name": "London (Stansted)",
"date": "2027-01-10",
"time": "06:30",
"datetime_utc": "2027-01-10T06:30:00Z"
},
"arrival_airport": {
"id": "DUB",
"name": "Dublin",
"date": "2027-01-10",
"time": "07:50",
"datetime_utc": "2027-01-10T07:50:00Z"
},
"duration": 80,
"price": 21.99,
"passenger_prices": [
{
"type": "adult",
"price": 21.99,
"count": 1
}
],
"total_price": 21.99,
"seats_left": 4,
"infants_left": 18
},
"..."
],
"return_flights": [
{
"flight_number": "FR 30",
"airline_code": "FR",
"departure_airport": {
"id": "DUB",
"name": "Dublin",
"date": "2027-01-17",
"time": "06:20",
"datetime_utc": "2027-01-17T06:20:00Z"
},
"arrival_airport": {
"id": "STN",
"name": "London (Stansted)",
"date": "2027-01-17",
"time": "07:40",
"datetime_utc": "2027-01-17T07:40:00Z"
},
"duration": 80,
"price": 18.99,
"passenger_prices": [
{
"type": "adult",
"price": 18.99,
"count": 1
}
],
"total_price": 18.99,
"seats_left": 5,
"infants_left": 18
},
"..."
]
}
Fares per Passenger Type
https://www.searchapi.io/api/v1/search?adults=2&arrival_id=BGY&children_ages=13%2C5%2C1&departure_id=MAD&engine=ryanair_flights&outbound_date=2026-12-22&return_date=2026-12-26
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "ryanair_flights",
"departure_id": "MAD",
"arrival_id": "BGY",
"outbound_date": "2026-12-22",
"return_date": "2026-12-26",
"adults": 2,
"children_ages": "13,5,1"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_3JGhEcGp6qqel3NN5xoWr3yU",
"status": "Success",
"created_at": "2026-11-26T14:14:43Z",
"request_time_taken": 2.17,
"parsing_time_taken": 0.0,
"total_time_taken": 2.17,
"request_url": "https://www.ryanair.com/ie/en/trip/flights/select?adults=2&teens=1&children=1&infants=1&dateOut=2026...",
"html_url": "https://www.searchapi.io/api/v1/searches/search_3JGhEcGp6qqel3NN5xoWr3yU.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_3JGhEcGp6qqel3NN5xoWr3yU"
},
"search_parameters": {
"engine": "ryanair_flights",
"departure_id": "MAD",
"arrival_id": "BGY",
"outbound_date": "2026-12-18",
"return_date": "2026-12-22",
"flight_type": "round_trip",
"adults": 2,
"children_ages": "13,5,1"
},
"search_information": {
"currency": "EUR"
},
"outbound_flights": [
{
"flight_number": "FR 5493",
"airline_code": "FR",
"departure_airport": {
"id": "MAD",
"name": "Madrid",
"date": "2026-12-18",
"time": "10:15",
"datetime_utc": "2026-12-18T09:15:00Z"
},
"arrival_airport": {
"id": "BGY",
"name": "Milan (Bergamo)",
"date": "2026-12-18",
"time": "12:35",
"datetime_utc": "2026-12-18T11:35:00Z"
},
"duration": 140,
"price": 47.52,
"passenger_prices": [
{
"type": "adult",
"price": 47.52,
"count": 2
},
{
"type": "teen",
"price": 47.52,
"count": 1
},
{
"type": "child",
"price": 47.52,
"count": 1
},
{
"type": "infant",
"price": 25.0,
"count": 1
}
],
"total_price": 215.08,
"has_buy_one_get_one_offer": true,
"infants_left": 17
},
"..."
]
}
City Code and Flexible Dates
https://www.searchapi.io/api/v1/search?arrival_id=DUB&departure_id=LON&engine=ryanair_flights&flex_days=3&flight_type=one_way&outbound_date=2026-12-27
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "ryanair_flights",
"departure_id": "LON",
"arrival_id": "DUB",
"outbound_date": "2026-12-27",
"flight_type": "one_way",
"flex_days": 3
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_1Cnb1DgTBjZs5Z50NvZBnE4b",
"status": "Success",
"created_at": "2026-11-26T14:18:03Z",
"request_time_taken": 2.56,
"parsing_time_taken": 0.0,
"total_time_taken": 2.56,
"request_url": "https://www.ryanair.com/ie/en/trip/flights/select?adults=1&teens=0&children=0&infants=0&dateOut=2026...",
"html_url": "https://www.searchapi.io/api/v1/searches/search_1Cnb1DgTBjZs5Z50NvZBnE4b.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_1Cnb1DgTBjZs5Z50NvZBnE4b"
},
"search_parameters": {
"engine": "ryanair_flights",
"departure_id": "LON",
"arrival_id": "DUB",
"outbound_date": "2026-12-23",
"flight_type": "one_way",
"flex_days": 3
},
"search_information": {
"currency": "GBP"
},
"outbound_flights": [
{
"flight_number": "FR 271",
"airline_code": "FR",
"departure_airport": {
"id": "STN",
"name": "London Stansted",
"date": "2026-12-20",
"time": "06:30",
"datetime_utc": "2026-12-20T06:30:00Z"
},
"arrival_airport": {
"id": "DUB",
"name": "Dublin",
"date": "2026-12-20",
"time": "07:50",
"datetime_utc": "2026-12-20T07:50:00Z"
},
"duration": 80,
"price": 68.99,
"passenger_prices": [
{
"type": "adult",
"price": 68.99,
"count": 1
}
],
"total_price": 68.99,
"seats_left": 5,
"infants_left": 18
},
"..."
]
}