by Test
Current weather data for any city worldwide. Returns temperature, humidity, wind, conditions. Powered by OpenWeatherMap.
/weather?q={city}&units={units}| Name | Type | Required | Description | Example |
|---|---|---|---|---|
q | string | required | City name | London |
units | string | optional | Temperature units | metric |
{
"main": {
"temp": 15.2,
"humidity": 72
},
"name": "London",
"coord": {
"lat": 51.51,
"lon": -0.13
},
"weather": [
{
"main": "Clouds",
"description": "overcast clouds"
}
]
}Bad Request
Missing or invalid parameters
Unauthorized
Invalid or missing API credentials
Too Many Requests
Rate limit exceeded
Internal Server Error
Upstream API error — payment hash released for retry
All calls use the x402 payment protocol: send a request, receive a 402 with payment instructions, send USDC on Base L2, then re-call with the transaction hash.
GET https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/weather-forecast — receive a 402 with payment instructions
Send USDC on Base L2 to the address in X-Payment-Address
Wait for 1+ block confirmation (≈ 2 seconds on Base)
Re-send your original request with the tx hash in X-Payment-Hash
Obolo verifies on-chain and proxies the request to the upstream API
AP2 Support
This endpoint also accepts AP2 Cart Mandates. Include a signed Cart Mandate in the X-AP2-Mandate header with an x402 tx hash embedded in payment.txHash.
curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/weather-forecast" \
-H "X-Payment-Hash: 0x<your_tx_hash>" \
-H "X-Payment-Chain: 8453"curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/weather-forecast" \
-H "X-Payment-Hash: 0x<your_tx_hash>" \
-H "X-Payment-Chain: 42161"curl "https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/weather-forecast" \
-H "X-Payment-Hash: 0x<your_tx_hash>" \
-H "X-Payment-Chain: 10"https://gateflow-proxy.7crypto-jo.workers.dev/v1/a072c723/weather-forecastUSDC
Base L2 (Chain 8453)
USDT
Base L2 (Chain 8453)
Protocols