get_data_flights_airports
Overview
Search for airports by name, city, or IATA code using a text query. Returns matching airports for use in autocomplete and search inputs.
When to Use
Airport autocomplete - Power origin/destination search inputs with type-ahead suggestions
Airport discovery - Find airports in a city or region by name
Search validation - Look up airports before constructing a flight search request
What You Get
Matching airports ranked by relevance to the query
IATA codes for
legs[].originandlegs[].destinationonPOST /flights/ratesCity and country details for display purposes
Geographic coordinates for map-based interfaces
Quick Start
Provide a q query string (minimum 2 characters) to search by airport name, city, or code. Returns matching airports ordered by relevance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query (minimum 2 characters, e.g., 'JFK' or 'New York') |