Airspace
GET/api/v1/airspaces/by-global-idsPrivate Pilot

Get By Global Ids

Gets controlled airspaces by their global IDs. This endpoint is designed to be used with the AirspaceGlobalIds returned by the navigation log endpoint (POST /api/v1/navlog/calculate) to retrieve full details for airspaces along a planned route.

Code Examples

curl \
  -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  "https://api.preflightapi.io/api/v1/airspaces/by-global-ids?globalIds=value"

Description

GET /api/v1/airspaces/by-global-ids?globalIds={guid1},{guid2}

Parameters

NameInTypeDescription
globalIdsquerystringComma-separated global IDs (GUIDs from the navlog response's AirspaceGlobalIds field)

Response Schema

200Returns the matching airspaces
globalIdstringnullable

ArcGIS global unique identifier. This is the key used to look up airspaces returned by the navigation log endpoint's AirspaceGlobalIds field.

identstringnullable

FAA identifier.

icaoIdstringnullable

ICAO identifier.

namestringnullable

Airspace name.

upperDescstringnullable

Upper altitude limit description.

upperValnumbernullable

Upper altitude limit value. Unit determined by UpperUom (FT = feet, FL = flight level). Reference determined by UpperCode (MSL or AGL).

upperUomstringnullable

Upper altitude unit of measure (e.g., FT, FL).

upperCodestringnullable

Upper altitude reference code (e.g., MSL, AGL).

lowerDescstringnullable

Lower altitude limit description.

lowerValnumbernullable

Lower altitude limit value. Unit determined by LowerUom (FT = feet, FL = flight level). Reference determined by LowerCode (MSL or AGL).

lowerUomstringnullable

Lower altitude unit of measure (e.g., FT, FL).

lowerCodestringnullable

Lower altitude reference code (e.g., MSL, AGL).

typeCodestringnullable

Airspace type code (e.g., CLASS_B, CLASS_C).

localTypestringnullable

Local airspace type.

classstringnullable

Airspace class (e.g., B, C, D, E).

milCodestringnullable

Military use code.

commNamestringnullable

Communications facility name.

levelstringnullable

Level designation (e.g., SURFACE, UPPER).

sectorstringnullable

Sector identifier.

onshorestringnullable

Whether the airspace is onshore.

exclusionstringnullable

Exclusion area indicator.

wkhrCodestringnullable

Working hours code.

wkhrRmkstringnullable

Working hours remarks.

dststringnullable

Daylight saving time indicator.

gmtOffsetstringnullable

GMT offset.

contAgentstringnullable

Controlling agency.

citystringnullable

City associated with the airspace.

statestringnullable

State associated with the airspace.

countrystringnullable

Country code.

adhpIdstringnullable

Associated aerodrome identifier.

400If the global IDs parameter is emptyApiErrorResponse
codestring

Machine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").

messagestring

Human-readable error message suitable for display.

detailsstringnullable

Additional error details (only included in development environment).

servicestringnullable

Name of the external service that failed (only included for 503 errors).

validationErrorsRecord<string, string[]>nullable

Field-level validation errors (only for validation failures).

timestampstring

UTC timestamp when the error occurred.

traceIdstringnullable

Correlation ID for tracing the request.

pathstringnullable

Request path that generated the error.

Search Documentation

Search docs, endpoints, and schemas