npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@2bad/ryanair

v7.1.2

Published

Unofficial typescript client for the Ryanair API that allows you to easily retrieve information about airports, flights and prices.

Downloads

84

Readme

Ryanair API

NPM version License GitHub Build Status Code coverage Written in TypeScript Postman Collection

Unofficial TypeScript client for Ryanair's API that provides easy access to flights, fares, and airport information.

Install

npm install @2bad/ryanair

Warning: This package is native ESM and no longer provides a CommonJS export. If your project uses CommonJS, you will have to convert to ESM or use the dynamic import() function. Please don't open issues for questions regarding CommonJS / ESM.

Usage

import { airports, fares, flights } from '@2bad/ryanair'

// Find your nearest airport
const closest = await airports.getClosest()

// Check available flight dates
const dates = await flights.getDates('BER', 'DUB')

// Get cheapest fares for your trip
const deals = await fares.getCheapestPerDay('BER', 'DUB', '2024-02-01')

API Overview

Airports API

  • Get active airports list
  • Find nearest airports
  • Discover available destinations
  • View airport details
  • Search flight routes

View Airports Documentation →

Fares API

  • Find cheapest daily fares
  • Compare prices across date ranges
  • Discover best round-trip deals
  • Search by currency preference

View Fares Documentation →

Flights API

  • Check flight availability
  • View flight schedules
  • Search available dates
  • Access flight details

View Flights Documentation →

Understanding IATA Codes

IATA codes are three-letter identifiers used in aviation for airports worldwide. For example:

  • DUB - Dublin Airport
  • BER - Berlin Brandenburg Airport
  • STN - London Stansted Airport

Find the complete list on IATA's official website.

Disclaimer

This is an unofficial package and is not affiliated with Ryanair. Usage is subject to Ryanair's API terms and conditions.

Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

Please ensure your code passes all tests and follows our coding standards.

License

MIT © 2BAD


Need help? Open an issue or check our Postman collection.