Airports
Search airports
Search airports by name, city or IATA code. Every search asks the supplier, within an eight-second budget, and stores the airports it returns to you. Results keep the supplier's order; meta.truncated indicates more matches than limit.
x-api-key<token>
Your API key. Issued and revoked from the TrustPixel dashboard; the gateway resolves it to an owning organization on every request.
In: header
Query Parameters
q*string
Search text the supplier matches against airport name, city and IATA code. At least two characters.
Length
2 <= length <= 100limit?integer
Range
1 <= value <= 100Default
20Header Parameters
x-request-id?string
Correlation id echoed to the upstream service and returned on the response. Generated as req_<uuid> when omitted.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/flight/airports?q=New+York"{ "data": [ { "id": "string", "iata_code": "string", "icao_code": "string", "name": "string", "city": "string", "state": "string", "country": "string", "latitude": 0, "longitude": 0, "time_zone": "America/New_York" } ], "meta": { "truncated": true }}