New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

airports-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airports-api

Simple API to get airports

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

airports

Simple API for getting basic airports info, like city and country. Mostly for learning and demo purposes.

TL;DR

Check out http://airports-api.marinin.xyz. API is provided without any guarantees of anything, but I suppose I'll keep it running while it doesn't get too messy. Please, do not abuse this instance.

At the moment there is no authentication or rate limiting, and I want to keep it that way.

Background (a little)

There are two most common types of airport identifier: IATA code and ICAO code. IATA code is the three-letter one on the luggage, like DME or JFK. ICAO code consists of 4 characters, like UUDD or KFJK.

This project uses data from @mwgg/Airports which is licensed under MIT license.

Endpoints

/iata
Get all available IATA codes in the dataset.
/iata/[IATA]
Get airport description or {"error": "Airport Not Found"}
/icao
Get all available ICAO codes in the dataset
/icao/[ICAO]
Get airport description or {"error": "Airport Not Found"}
/[COUNTRY]
Get cities in the with airports counts.
/[COUNTRY]/[CITY]
Get [ICAO] codes of airports in the city. Country is added to avoid ambiguities like Paris, US and PARIS, FR.
/
Get links to /iata, /icao, and available countries.

License

Dataset is available at @mwgg/Airports and licensed under MIT license.

This code is licensed under MIT license as well.

Tim Marinin, 2017.

FAQs

Package last updated on 10 Jul 2017

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