airport_nearest
$0.02 per call. Pay with x402 (USDC on Base) in _meta["x402/payment"]; MPP (tempo) on the HTTP URL /v1/airport/nearest. Up to 5 airports with scheduled service nearest a named place, ranked by real road drive time, with IATA codes.
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": {
"location": "<location>"
},
"name": "airport_nearest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | How many airports | |
| near | No | Disambiguation hint, e.g. 'Florida' | |
| location | Yes | ||
| airport_size | No | scheduled: any airport with scheduled passenger service. large: OurAirports type large_airport with scheduled service. | scheduled |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | ||
| airports | Yes | Nearest first by road drive time | |
| attribution | Yes | ||
| airports_data_as_of | Yes | When our OurAirports file was fetched (UTC) |