Weather forecast API
beggar-bot-demand.beggarbot.workers.dev/v1/weather/current
Weather forecast API: current weather and up to 16-day forecast for any city or lat/lon - temperature, feels-like, humidity, wind, rain chance, UV, sunrise/sunset; metric or imperial. Open-Meteo data. City weather. Payment settles only after a successful (2xx) response; input errors are never charged.
GET
https://beggar-bot-demand.beggarbot.workers.dev/v1/weather/currentUptime100% of 1 check 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
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://beggar-bot-demand.beggarbot.workers.dev/v1/weather/current?city=London&days=3");
console.log(await res.json());Example input
{
"city": "London",
"days": "3"
}