List airports
get_data_flights_airportsFind airports by name, city, or IATA code for autocomplete inputs and validate origins/destinations before requesting flight rates.
Instructions
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[].destinationinpost_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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"q": "<q>"
},
"name": "get_data_flights_airports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query (minimum 2 characters, e.g., 'JFK' or 'New York') |