Skip to content
Fourohtwo

Weather ($0.004)

draconic21-x402-api.onrender.com/v1/weather

Weather ($0.004): current conditions + short forecast, worldwide. United States coordinates (or a resolvable U.S. street address) read live from the National Weather Service's own public API (api.weather.gov), U.S. government data, plus active alerts. Every other location reads live from MET Norway's global Locationforecast model (api.met.no), CC BY 4.0/NLOD-licensed public data -- current + forec

BaseSolanaUnchecked
POSThttps://draconic21-x402-api.onrender.com/v1/weather

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://draconic21-x402-api.onrender.com/v1/weather", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"forecast_days":3,"lat":38.8894,"lon":-77.0352}),
});
console.log(await res.json());

Example input

{
  "forecast_days": 3,
  "lat": 38.8894,
  "lon": -77.0352
}