Python client for IATA Codes Database REST API
IATA closed old API and now sell database at its own website: https://www.iata.org/en/services/codes/.
- Search city by IATA code
- Search cities by country code
- Search IATA code by name of the city
- …
Install iata_codes package from PyPi:
pip install iata_codes
Make sure to include this line in the beginning of your file:
from iata_codes import IATACodesClient
Set your API Key:
client = IATACodesClient('YOUR_API_KEY')
Make queries:
print(client.get(code='MOW')) print(client.get(country_code='RU')) print(client.get(name='Moscow'))