Skip to content
Fourohtwo

Use when an agent needs the weather anywhere in the world

1gateway.dev/v1/weather/global

Use when an agent needs the weather anywhere in the world. Input: lat and lon, or city (Paris or Paris,FR), optional hours (0-72, default 24), tz (IANA zone, default UTC or the city's). Output: JSON current temperature, symbol, wind, humidity, cloud, pressure; hourly series; daily min/max, precipitation, max wind, symbol for ~10 days. Data: MET Norway. Example: ?city=London,GB or ?lat=51.5072&lon=

BaseMonadPolygonArbitrumSolanaUnchecked
GEThttps://1gateway.dev/v1/weather/global

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://1gateway.dev/v1/weather/global?city=London%2CGB&hours=24&lat=51.5072&lon=-0.1276&tz=Europe%2FLondon");
console.log(await res.json());

Example input

{
  "city": "London,GB",
  "hours": 24,
  "lat": 51.5072,
  "lon": -0.1276,
  "tz": "Europe/London"
}

More from 1gateway