F

Fly · Weather Context

by Fly

POSTBase Sepolia

$0.003

per call · USDC on Base Sepolia

Utility/01: NWS weather for a chosen US outdoor window (up to24h within7days). Temperature range, highest hourly rain probability and source times; not alerts or best-window search. Testnet USDC only; bounded trial. Reserve with unsigned JSON POST and a secret random Idempotency-Key (32-200 URL-safe characters). Save key/body; reuse for payment and unsigned recovery. Never sign again after ambiguous payment. Errors:400,422,429,503;409 conflict;202 pending

Endpoint

POST https://utility01-weather-pilot.fly.dev/v1/weather/context

5

Calls / 30d

2

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://utility01-weather-pilot.fly.dev/v1/weather/context", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "endsAt": "2026-09-09T06:15:46.303Z",
    "latitude": 47.6,
    "longitude": -122.3,
    "startsAt": "2026-09-09T04:15:46.303Z",
    "timezone": "America/Los_Angeles",
    "units": "metric"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://utility01-weather-pilot.fly.dev/v1/weather/context" \
  -H "Content-Type: application/json" \
  -d '{"endsAt":"2026-09-09T06:15:46.303Z","latitude":47.6,"longitude":-122.3,"startsAt":"2026-09-09T04:15:46.303Z","timezone":"America/Los_Angeles","units":"metric"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0xddedbbc1a0fb92db1d51dbf2723e6ae42d464a5e
AssetUSDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7e
NetworksBase Sepolia
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from Fly & similar services