Airports
Retrieve Airport
POST/api/[...]/discord/airport/find
This endpoint allows you to retrieve airport information.
If you are only looking to get METAR or TAF only - please use METAR and TAF Data endpoint.
Supported Authentication Types
API Token | Client Token | Grant Token |
---|---|---|
Yes | Yes | No |
Available Body Attributes
- Name
airport_code
- Type
- String, AlphaNumeric, Min 3, Max 4, Uppercase
- Description
ICAO or IATA code of the airport.
- Name
airport_id
- Type
- Integer
- Description
Airport ID.
- Name
booking_id
- Type
- Integer
- Description
Booking ID.
Response
{
"status": "success",
"request": {
"airport_code": "EGSS",
"airport_id": null,
"booking_id": null
},
"data": {
"airport": {
"world_id": 9999,
"airline_id": 9999,
"name": "London Stansted",
"icao": "EGSS",
"iata": "STN",
"identifiers": "EGSS/STN",
"identifier": "EGSS",
"latitude": "51.8849980",
"longitude": "0.2350000",
"elevation": 348,
"briefing": "<p>Test Briefing</p>",
"information": "<p>Test Remarks</p>"
},
"standGroups": [
{
"group_id": 999,
"name": "Stand Group Name",
"stands": [
{
"stand_id": 999,
"name": "B30",
"latitude": "51.8901670",
"longitude": "0.2576560"
},
[...],
{
"stand_id": 999,
"name": "E85R",
"latitude": "51.8960670",
"longitude": "0.2600810"
}
]
}
],
"managers": [
{
"id": 999,
"name": "PublicName"
},
{
"id": 999,
"name": "PublicName"
}
],
"country": {
"id": 75,
"name": "United Kingdom",
"code": "GB"
},
"weather": {
"metar": "EGSS 171320Z 22009KT 9999 BKN006 OVC013 13/11 Q1029",
"taf": "EGSS 171057Z 1712/1818 20010KT 9999 BKN006 TEMPO 1712/1713 4000 DZ BR BKN003 TEMPO 1719/1803 21015G30KT 5000 RA BECMG 1805/1808 26007KT BECMG 1809/1812 SCT020"
}
}
}
Response for booking_id
{
"status": "success",
"request": {
"airport_code": null,
"airport_id": null,
"booking_id": "999"
},
"data": {
"departureAirport": {
[Same as Regular Response]
},
"arrivalAirport": {
[Same as Regular Response]
}
}
}