Docs
Get an API key
Airports

Search airports

GET
/v1/flight/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.

Authorization

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.

Length2 <= length <= 100
limit?integer
Range1 <= value <= 100
Default20

Header 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  }}