Airports
GET/api/v1/airportsStudent Pilot

Get 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"

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 filter

Returns paginated results of AirportDto

Parameters

NameInTypeDescription
searchquerystring?Optional text search across airport name, city, ICAO code, and FAA identifier
statequerystring?Optional comma-separated two-letter state codes (e.g., TX or TX,OK,LA)
cursorquerystring?Opaque cursor value from a previous response's pagination.nextCursor field. Omit or leave null to start from the first page.
limitqueryintegerMaximum number of items to return per page. Minimum 1, maximum 500, default 100.

Response Schema

200Returns the paginated airportsPaginatedResponseOfAirportDto

Search Documentation

Search docs, endpoints, and schemas