Airports
GET
/api/v1/airportsStudent PilotGet Airports
Lists airports with optional search and state filtering
Code Examples
curl \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://api.preflightapi.io/api/v1/airports?search=kennedy&state=value&limit=25"curl \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://api.preflightapi.io/api/v1/airports?search=kennedy&state=value&limit=25"Description
Supports combinable query parameters for flexible filtering:
GET /api/v1/airports — all airports (paginated)
GET /api/v1/airports?search=Dallas — text search across name, city, ICAO, and FAA identifier
GET /api/v1/airports?state=TX — airports in Texas
GET /api/v1/airports?state=TX,OK,LA — airports in multiple states
GET /api/v1/airports?search=Regional&state=TX — combined search + state filterReturns paginated results of AirportDto
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| search | query | string? | Optional text search across airport name, city, ICAO code, and FAA identifier |
| state | query | string? | Optional comma-separated two-letter state codes (e.g., TX or TX,OK,LA) |
| cursor | query | string? | Opaque cursor value from a previous response's pagination.nextCursor field. Omit or leave null to start from the first page. |
| limit | query | integer | Maximum number of items to return per page. Minimum 1, maximum 500, default 100. |