FlightAware airport details, runways and FBOs
An airport's overview: location and owner, coordinates and elevation, local time, tower, runways (length, width, surface, condition, lights), fuel types, FBOs with fuel prices and services, nearby FBOs with cheaper fuel, hotels and restaurants, maintenance, flight schools and other airport businesses, based aircraft counts and radio frequencies.
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
| name | type | description |
|---|---|---|
coderequired | string | ICAO or IATA airport code, e.g. KSFO or SFO. Example: KSFO |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/flightaware/v1/airport/details?code=KSFO" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/flightaware/v1/airport/details",
params={"code": "KSFO"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/flightaware/v1/airport/details");
url.searchParams.set("code", "KSFO");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); 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)
{"code": "KSFO","name": "San Francisco Int'l Airport (San Francisco, CA) SFO","summary": {"title": "SFO Airport Summary","location_and_owner": "San Francisco, CA; (8 miles SE); San Francisco; City & County of San Francisco; Po Box 8097; San Francisco, Ca 94128","coordinates_and_elevation": "37.619, -122.375 13.1 feet / 4 meters","latitude": 37.619,"longitude": -122.375,"local_time": "Friday; 01:11AM PST","tower": "Yes","runways": [{"runway": "01L/19R","dimensions_ft": "7,650 x 200","surface": "Asphalt","condition": "Good","lights": "High lights"},{"runway": "01R/19L","dimensions_ft": "8,650 x 200","surface": "Asphalt","condition": "Good","lights": "High lights"},"… 2 more"],"fuel": "100LL; JET A"},"sections": [{"title": "Fuel Prices (Jet A, 100LL) Airport FBOs at SFO","columns": ["Name","Contact","… 10 more"],"rows": [{"cells": ["Signature Aviation SFO","128.920","… 11 more"]}]},{"title": "Nearby FBOs at other airports with lower Jet A/100LL fuel prices","columns": ["Name","Airport","… 10 more"],"rows": [{"Name": "County of San Mateo","Airport": "KHAF; 10mi SW","Ready to Taxi™": "Available","100LL": null,"100LL SS": "$5.90","Jet A": null,"Jet A+Prist": null,"Fee": "No","WiFi": "Yes","Crew Car": "No","Rental Car": "Yes","Ratings and Reviews": "1 review"},{"Name": "Rabbit Aviation Services","Airport": "KSQL; 10mi SE","Ready to Taxi™": "Available","100LL": "$6.95","100LL SS": null,"Jet A": null,"Jet A+Prist": "$7.10","Fee": null,"WiFi": "Yes","Crew Car": "Yes","Rental Car": "Yes","Ratings and Reviews": "4 reviews"},"… 10 more"]},"… 6 more"],"url": "https://www.flightaware.com/resources/airport/KSFO/summary","cached": false,"credits_used": 1}