New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@2bad/ryanair

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@2bad/ryanair

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

  • 7.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 22 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc