81trust / 100

Flightaware Airports

by StableTravel in Weather & location

x402 APIPassing, checked 48 min ago

List all airports with optional pagination

GET https://stabletravel.dev/api/flightaware/airports

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
271 ms typical, 271 ms slowest 5%
Last check
48 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://stabletravel.dev/api/flightaware/airports?max_pages=1"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fstabletravel.dev%2Fapi%2Fflightaware%2Fairports
const res = await pay("https://stabletravel.dev/api/flightaware/airports?max_pages=1");
console.log(await res.json());

Example input

{
  "max_pages": 1
}

Example output

{
  "airports": [
    {
      "airport_code": "KJFK",
      "city": "New York",
      "code_iata": "JFK",
      "code_icao": "KJFK",
      "code_lid": "JFK",
      "country_code": "US",
      "elevation": 13,
      "latitude": 40.6413,
      "longitude": -73.7781,
      "name": "John F. Kennedy International Airport",
      "state": "NY",
      "timezone": "America/New_York",
      "type": "Airport"
    }
  ],
  "num_pages": 1
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
48 min agoPassed402300 ms$0.01
6 h agoPassed402271 ms$0.01