Troubleshooting
If requests fail, run zero doctor check-connector --env-name AVIATIONSTACK_TOKEN or zero doctor check-connector --url https://api.aviationstack.com/v1/flights --method GET.
How to Use
AviationStack authenticates with an access key passed as the
access_key query parameter on every request. The base URL is
https://api.aviationstack.com.
1. Real-time flights by flight number
curl -s -G "https://api.aviationstack.com/v1/flights" \
--data-urlencode "flight_iata=UA889" \
--data-urlencode "access_key=$AVIATIONSTACK_TOKEN"
2. All flights departing from an airport
curl -s -G "https://api.aviationstack.com/v1/flights" \
--data-urlencode "dep_iata=PEK" \
--data-urlencode "limit=25" \
--data-urlencode "access_key=$AVIATIONSTACK_TOKEN"
3. Historical flight (date in YYYY-MM-DD)
curl -s -G "https://api.aviationstack.com/v1/flights" \
--data-urlencode "flight_iata=UA889" \
--data-urlencode "flight_date=2026-05-11" \
--data-urlencode "access_key=$AVIATIONSTACK_TOKEN"
4. Airline lookup
curl -s -G "https://api.aviationstack.com/v1/airlines" \
--data-urlencode "iata_code=UA" \
--data-urlencode "access_key=$AVIATIONSTACK_TOKEN"
5. Airport lookup
curl -s -G "https://api.aviationstack.com/v1/airports" \
--data-urlencode "iata_code=SFO" \
--data-urlencode "access_key=$AVIATIONSTACK_TOKEN"
Guidelines
- Free tier is HTTP-only — paid plans unlock
https://. The connector and firewall are configured for HTTPS. flight_dateaccuracy — required for historical lookups; recent flights default to today UTC.- Filter early — narrow with
dep_iata/arr_iata/airline_iatato avoid burning quota on large result sets. - Status field —
flight_statuscan bescheduled,active,landed,cancelled,incident, ordiverted.