Skip to content

Instantly share code, notes, and snippets.

@vool
Last active December 15, 2024 07:31
Show Gist options
  • Save vool/bbd64eeee313d27a82ab to your computer and use it in GitHub Desktop.
Save vool/bbd64eeee313d27a82ab to your computer and use it in GitHub Desktop.
Ryanair api endpoints

API domains

https://desktopapps.ryanair.com

https://api.ryanair.com

Airports

https://api.ryanair.com/aggregate/3/common?embedded=airports,countries,cities,regions,nearbyAirports,defaultAirport&market=en-gb

https://desktopapps.ryanair.com/en-gb/res/stations

Closures

https://api.ryanair.com/aggregate/3/common?embedded=closures

Flight info

https://api.ryanair.com/flightinfo/3/flights/?&arrivalAirportIataCode=&departureAirportIataCode=DUB&departureTimeScheduledFrom=00:00&departureTimeScheduledTo=23:59&length=&number=&offset=

Schedules

https://desktopapps.ryanair.com/Calendar?Destination=EIN&IsTwoWay=false&Months=16&Origin=CFU&StartDate=2016-11-06

https://api.ryanair.com/timetable/3/schedules/DUB/LGW/years/2016/months/11

Availability and fares info

https://desktopapps.ryanair.com/en-gb/availability?ADT=1&CHD=0&DateIn=2016-11-24&DateOut=2016-11-10&Destination=STN&FlexDaysIn=6&FlexDaysOut=6&INF=0&Origin=VLC&RoundTrip=true&TEEN=0&ToUs=AGREED

Fair Finder

One way

https://services-api.ryanair.com/farfnd/3/oneWayFares?&departureAirportIataCode=BCN&language=en&limit=16&market=en-gb&offset=0&outboundDepartureDateFrom=2019-02-11&outboundDepartureDateTo=2019-10-28&priceValueTo=150

Return

https://services-api.ryanair.com/farfnd/3/roundTripFares?&arrivalAirportIataCode=STN&departureAirportIataCode=VLC&inboundDepartureDateFrom=2019-04-11&inboundDepartureDateTo=2019-04-28&language=es&limit=16&market=es-es&offset=0&outboundDepartureDateFrom=2019-03-11&outboundDepartureDateTo=2019-03-28&priceValueTo=150

Cheapest per day as well as availability:

https://api.ryanair.com/farefinder/3/oneWayFares/SXF/TSR/cheapestPerDay?market=de-de&outboundMonthOfDate=2017-04-01

FareFinder Image paths

https://www.ryanair.com/de/de.farefinder.json is an JSON file in which several picture paths are declared :)

Currencies

https://desktopapps.ryanair.com/bg-bg/res/currencies

Discounts

https://api.ryanair.com/discount/3/discounts

Markets

https://ryanair.com/ie/en.markets.json https://www.ryanair.com/content/ryanair.markets.json

Requires auth/session

https://desktopapps.ryanair.com/en-gb/checkin/checkinpassengers

@Kacper99
Copy link

@dankoden Might be that your IP address is blocked by Ryanair if you're hitting the endpoints too frequently. AFAIK There are no official docs

@KrzDom
Copy link

KrzDom commented Feb 14, 2024

Anyway, it would be great to have a joint database, since, as you said, it saves resources. I have another idea that uses price data and I could also use it for academic purposes as I'm taking some data courses right now. I hope there's someone who has Vueling/Eurowings/Transavia data as well.

I am playing with collating some ryanair flight price data (off the back of mere curiosity). I wonder if anyone else is/has done likewise and would be interested to share?

Same here. In the last year I flew a few times with ryanair and while booking the prices fluctuated like crazy sometime. I want to get the development of the fare for the same route over the time of 100 days. The modul ryanair-py seems to be working quite well. Trying to play around right now.
Would be happy to share as soon as I get the things working.

@artpetro
Copy link

I collected flight prices (outbound and return) for 8 months for 4 (later 5) flight connections. I queried the prices approximately every 30 minutes, resulting in a database of approximately 8 million flight prices.

To understand the cause of price changes (or how exactly Ryanair's pricing algorithm works), additional data is needed. For example, the number of available seats for a specific flight. It is highly likely that additional variables are involved in price calculation, such as flight date, time, or even demand (how often users view a particular connection). However, Ryanair does not provide this additional information through the API.

Nevertheless, with the collected data, it is already possible to conduct various analyses.

I have stored the data in both SQL and Influx databases. If anyone is interested, I am happy to provide access to it.

@mtrovo
Copy link

mtrovo commented Mar 4, 2024 via email

@KorhanOzturk90
Copy link

Hi @artpetro I'd be very interested in having access to that data to create some dashboards. Would that be possible?

@mtrovo
Copy link

mtrovo commented Jun 13, 2024 via email

@Storeship
Copy link

Is there any updated links to this api, getting "Availability declined" from the last few or if anyone can help me set up a scraper for Ryanair and other airlines happy to pay.

@Gustelo1
Copy link

@Storeship currently playing around with Ryanair and Wizzair, what are you looking for exactly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment