78trust / 100

Weather Forecast

by StableTravel in Weather & location

x402 APIPassing, checked 4 h ago

Get weather forecast (TAF) for a specific airport

GET https://stabletravel.dev/api/flightaware/airports/KJFK/weather/forecast

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
266 ms typical, 396 ms slowest 5%
Last check
4 h 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/KJFK/weather/forecast?temperature_units=fahrenheit"
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%2FKJFK%2Fweather%2Fforecast
const res = await pay("https://stabletravel.dev/api/flightaware/airports/KJFK/weather/forecast?temperature_units=fahrenheit");
console.log(await res.json());

Example input

{
  "temperature_units": "fahrenheit"
}

Example output

{
  "airport_code": "KJFK",
  "forecast": [],
  "raw_forecast": [],
  "timeframe": "2026-04-22T12:00:00Z/2026-04-23T12:00:00Z"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402239 ms$0.004
7 h agoPassed402396 ms$0.004
11 h agoPassed402443 ms$0.004
14 h agoPassed402200 ms$0.004
18 h agoPassed402252 ms$0.004
21 h agoPassed402334 ms$0.004
25 h agoPassed402209 ms$0.004
29 h agoPassed402231 ms$0.004
32 h agoPassed402269 ms$0.004
36 h agoPassed402266 ms$0.004
40 h agoPassed402275 ms$0.004
43 h agoPassed402256 ms$0.004
2 days agoPassed402302 ms$0.004