FlightAware flights between two airports

GET https://api.api.sh/flightaware/v1/route
1 credit / call travel & events try it in the playground →

The flight finder: nonstop and one-stop flights between two airports today and tomorrow, with airline, flight number, flight id, aircraft type, status, departure and arrival day and time (local) and the link to each flight.

Every response includes credits_used: the credits this call cost.

Part of the FlightAware API: 11 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
originrequired string Origin airport code, e.g. KSFO or SFO. Example: KSFO
destinationrequired string Destination airport code, e.g. KJFK or JFK. Example: KJFK

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/flightaware/v1/route?origin=KSFO&destination=KJFK" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"origin": "KSFO","destination": "KJFK","count": 73,"flights": [{"ident": "ASA40","flight_id": "ASA40-1793777553-airline-1040p","airline": "Alaska Airlines","operator": "Alaska Airlines \"Alaska\"","airline_logo": "https://www.flightaware.com/images/airline_logos/24px/ASA.png","aircraft_type": "B739","status": "Scheduled (in 21 hours 41 minutes)","origin": "SFO","destination": "JFK","origin_icao": "KSFO","destination_icao": "KJFK","departure_day": "Fri","departure": "11:00PM PST","arrival_day": "Sat","arrival": "07:39AM EST","layover": null,"connection": null,"url": "https://www.flightaware.com/live/flight/id/ASA40-1793777553-airline-1040p"},{"ident": "JBU616","flight_id": "JBU616-1793782579-fa-561p","airline": "JetBlue","operator": "JetBlue \"JetBlue\"","airline_logo": "https://www.flightaware.com/images/airline_logos/24px/JBU.png","aircraft_type": "A320","status": "Scheduled (in 21 hours 37 minutes)","origin": "SFO","destination": "JFK","origin_icao": "KSFO","destination_icao": "KJFK","departure_day": "Fri","departure": "10:56PM PST","arrival_day": "Sat","arrival": "07:24AM EST","layover": null,"connection": null,"url": "https://www.flightaware.com/live/flight/id/JBU616-1793782579-fa-561p"},"… 71 more"],"note": "nonstop and one-stop flights between the two airports today and tomorrow, as the public flight finder lists them; times are local","cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.