Global Airports Endpoint
Fetches a list of global airports and cities. You can filter the results by passing a search query.
- Endpoint:
/api/v1/flights/airports - Method:
GETorPOST
Headers
| Header | Value | Required | Description |
|---|---|---|---|
Partner-Access-Token | Base64 String | Yes | Your encrypted AES-256 time-sensitive token. |
Accept | application/json | Yes |
Payload Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
search | String | Optional | The search term to filter cities or airports (e.g., "BKK", "Bangkok", "Thailand"). |
Sample Response
{
"result": 1,
"message": "success",
"data": {
"cities": [
{
"id": 1,
"name": "Bangkok",
"iata_code": "BKK",
"country_code": "TH",
"airports": [
{
"id": 5,
"city_id": 1,
"iata_code": "BKK",
"name": "Suvarnabhumi Airport",
"city": "Bangkok"
}
]
}
]
}
}