cn-data-x402.cn-data-x402-worker.workers.dev/cn/weather
Current weather plus air quality for Chinese cities, with Chinese-language conditions. Pass ?city=上海 (14 city presets) or ?lat=&lon=. Returns temperature, feels-like, humidity, precipitation, wind, WMO weather text in Chinese, and PM2.5/PM10/US AQI with a Chinese pollution level. No API key and no signup: call the endpoint, it answers HTTP 402 with the payment terms, pay per request in USDC on Bas
GET
https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/weatherUptimeNot 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://cn-data-x402.cn-data-x402-worker.workers.dev/cn/weather?lat=31.23&lon=121.47&city=%E4%B8%8A%E6%B5%B7");
console.log(await res.json());Example input
{
"lat": 31.23,
"lon": 121.47,
"city": "上海"
}