78trust / 100

Functions Cortex402 Aviation Weather

by CorteX402 Aviation Weather in Weather & location

x402 APIPassing, checked 4 h ago

Real-time aviation weather for any ICAO airport. Returns decoded METAR, TAF, SIGMET alerts, and a normalized 24-hour forecast. Batch up to 10 airports per call.

POST https://jtifhcvbgxqwlywugvjv.supabase.co/functions/v1/cortex402-aviation-weather

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
189 ms typical, 221 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 POST "https://jtifhcvbgxqwlywugvjv.supabase.co/functions/v1/cortex402-aviation-weather" \
  -H "content-type: application/json" \
  -d '{"icao":"KLAS"}'
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%2Fjtifhcvbgxqwlywugvjv.supabase.co%2Ffunctions%2Fv1%2Fcortex402-aviation-weather
const res = await pay("https://jtifhcvbgxqwlywugvjv.supabase.co/functions/v1/cortex402-aviation-weather", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"icao":"KLAS"}),
});
console.log(await res.json());

Example input

{
  "icao": "KLAS"
}

Example output

{
  "airports": [
    {
      "forecast_24h": [
        {
          "precip_mm": 0,
          "temp_c": 29,
          "time": "2026-05-15T19:00:00Z",
          "wind_dir": 185,
          "wind_kt": 10
        }
      ],
      "icao": "KLAS",
      "lat": 36.08,
      "lon": -115.15,
      "metar": {
        "altimeter_inhg": 29.92,
        "dewpoint_c": 5,
        "flight_category": "VFR",
        "observed_at": "2026-05-15T18:53:00Z",
        "raw": "KLAS 151853Z 18008KT 10SM CLR 28/05 A2992",
        "temp_c": 28,
        "visibility_sm": 10,
        "wind_dir": 180,
        "wind_kt": 8
      },
      "name": "Harry Reid International",
      "sigmets": [],
      "source": "CorteX402",
      "taf": {
        "raw": "TAF KLAS 151720Z 1518/1624 18010KT P6SM SKC",
        "valid_from": "2026-05-15T18:00:00Z",
        "valid_to": "2026-05-16T24:00:00Z"
      }
    }
  ],
  "fetched_at": "2026-05-15T18:54:00Z",
  "receipt_tx": "0x9f4a2c8e6b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f7e0c2b1d4a6f8e2c0b1d3a5f",
  "request_id": "aw_5c8d2a4b6e0f1a3c5e7d9b2f",
  "ttl_seconds": 600
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402229 ms$0.1
7 h agoPassed402180 ms$0.1
11 h agoPassed402191 ms$0.1
14 h agoPassed402159 ms$0.1
18 h agoPassed402221 ms$0.1
21 h agoPassed402186 ms$0.1
24 h agoPassed402182 ms$0.1
29 h agoPassed402189 ms$0.1
32 h agoPassed402195 ms$0.1
36 h agoPassed402181 ms$0.1
40 h agoPassed402174 ms$0.1
43 h agoPassed402190 ms$0.1
2 days agoPassed402208 ms$0.1