API Features
Example API Request:
In the following example we search for suggestions for airlines based on the term "american".
https://api.apilayer.net/aviationstack/v1/airlines?access_key=YOUR_ACCESS_KEY&search=americanExample API Response:
{
"pagination": {
"limit": 100,
"offset": 0,
"count": 100,
"total": 1
},
"data": [
{
"airline_name": "American Airlines",
"iata_code": "AA",
"iata_prefix_accounting": "1",
"icao_code": "AAL",
"callsign": "AMERICAN",
"type": "scheduled",
"status": "active",
"fleet_size": "963",
"fleet_average_age": "10.9",
"date_founded": "1934",
"hub_code": "DFW",
"country_name": "United States",
"country_iso2": "US"
},
[...]
]
}Please note: The API response above has been shortened to show only one country result for readability purposes.
Translations
Using the translations function in the API with &lang= will slow down the API calls they involve a lot of translations of airports, cities, and countries. Therefore, it is recommended to use it in combination with other filters to reduce the amount of data you receive in the response
Available languages
| Code | Language |
|---|---|
| fr | French |
| ar | Arabic |
| fa | Persian |
| ru | Russian |
| zh_hans | Chinese Simplified |
| zh_hant | Chinese Traditional |
| es | Spanish |
| hi | Hindi |
| pt | Portuguese |
| ja | Japanese |
| de | German |
| jv | Javanese |
| ko | Korean |
| tr | Turkish |
| vi | Vietnamese |
| it | Italian |
| ur | Urdu |
| pl | Polish |
| uk | Ukrainian |
| ro | Romanian |
| az | Azerbaijani |
| ha | Hausa |
| my | Burmese |
| th | Thai |
| nl | Dutch |
| yo | Yoruba |
| id | Indonesian |
| sv | Swedish |
| no | Norwegian |
| he | Hebrew |
| da | Danish |
| ms | Malay |
| fl | Filipino |
| fi | Finnish |
| cs | Czech |
| sk | Slovak |
| hy | Armenian |
| bg | Bulgarian |
| ka | Georgian |
| el | Greek |
| hr | Croatian |
| hu | Hungarian |
| lt | Lithuanian |
| lv | Latvian |
| mk | Macedonian |