API reference / Reference
/v1/airportsSearch airports
- Operation
listAirports- Authentication
- API key
For a departure-airport field. **A different question from `/v1/ports`**, which answers where a traveller *arrives* in one of our four markets.
Defaults to the 4,169 airports with an IATA code and scheduled service. The capture holds 85,558 rows and 81,000 of them are airfields, heliports and permanently closed strips, which bury the useful answer in a picker. `include_all` reaches them.
**Not metered** — no eligibility work is done, and billing a partner for reading a static list would make the usage statement harder to defend.
Request
Parameters
qquerystringcountry_iso2querystringlimitqueryintegerinclude_allquerybooleannullResponses
airportsAirport[]requiredcountsobjectrequiredsourcestringrequiredOurAirports, community-maintained. Unlike every other route on this tag, this is a reference rather than a government capture.
next_cursorstringnullrequirederrorobjectrequirederrorobjectrequirederrorobjectrequirederrorobjectrequiredExample
curl -X GET https://api.haavisa.com/v1/airports \
-H "Authorization: Bearer $HAAVISA_API_KEY"More in Reference
Something unclear? The eligibility guide explains the model behind the answers; the errors guide covers the envelope.