Skip to content
Fourohtwo

Get a current U.S

x402-trends-server.onrender.com/api/weather

Get a current U.S. weather forecast from NOAA and the National Weather Service by latitude and longitude. Use this weather API when an agent needs forecast temperature, conditions, wind, day/night periods, or detailed local forecast text for U.S. coordinates.

BaseAnswering
GEThttps://x402-trends-server.onrender.com/api/weather

Uptime100% of 3 checks in 30 days

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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402-trends-server.onrender.com/api/weather?lat=33.68&lon=-117.18");
console.log(await res.json());

Example input

{
  "lat": 33.68,
  "lon": -117.18
}