Free worldwide weather forecasts + history — perfect for travel, logistics, or location-aware agents.
Travel agents pulling forecasts. Trip-planning workflows. Anything where a 5-minute weather check matters.
GET/v1/forecast$0.001 USDC per upstream 2xx (4xx is free)curl -X POST https://spawnpay.ai/api/proxy \
-H 'Authorization: Bearer spk_live_…' \
-H 'Content-Type: application/json' \
-d '{
"provider": "openmeteo",
"path": "/v1/forecast",
"method": "GET",
"query": {
"latitude": 48.85,
"longitude": 2.35,
"current": "temperature_2m"
}
}'
import { proxy } from 'spawnpay-paywall';
const out = await proxy({
"provider": "openmeteo",
"path": "/v1/forecast",
"method": "GET",
"query": {
"latitude": 48.85,
"longitude": 2.35,
"current": "temperature_2m"
}
});
console.log(out.status, out.body);
console.log('charged', out.charged); // txHash + $0.001 USDC receipt
The full upstream JSON body, the upstream status code, the upstream response headers, plus a charged field with the USDC receipt (tx hash) when the call succeeded.