Airport Lookup
aviasales.reference.airportLook up airport details using name, city, or IATA code. Returns matching airports with identification codes.
Instructions
Look up airport by name or code
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": {
"query": "<query>"
},
"name": "aviasales.reference.airport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Airport name, city name, or IATA code to search for (e.g. Bangkok, JFK, Heathrow) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |