Weather x402 Buyer Guide
P1608 Weather x402 buyer guide — free, read-first instructions for buying one city weather snapshot. This page never fetches weather, connects a wallet, uploads input or makes a network call.
What the unpaid quote actually says
Verified by one fresh unauthenticated GET at 22:00Z on 2026-11-25. A 402 response is a quote, not an error. Its PAYMENT-REQUIRED header decodes to a v2 x402 challenge with exactly one accepting option:
| Field | Live value |
|---|---|
| Method / route | GET /weather-get?city=London |
| Service name | weather_snapshotGet |
| Network | eip155:8453 (Base mainnet) |
| Asset | 0x833589fCD6eDb6E08f4c7c32d4f71b54bdA02913 (USDC, 6 decimals) |
| Amount | 1000 atomic units = $0.001 USDC |
| Scheme | exact |
| payTo | 0xcb24a0f918066ce9a94a24e91e849bb34f834f4a |
| MIME type | application/json |
The endpoint description is “Current weather snapshot for a city name from keyless public Open-Meteo geocoding and forecast data.” Terms can change; always re-read the live quote before signing anything.
Building a request
city— a plain city name such asLondon. URL-encode spaces or punctuation if your client requires it.- Send an unpaid GET first. The 402 body is data (
{"error":"Payment required"}), not a failed purchase. - Keep the same query when you pay; a changed city can produce a different quote.
GET /weather-get?city=London
Accept: application/x402
Buyer checklist (do this before paying)
- Send the unpaid GET to the exact route. Expect HTTP 402 with a
PAYMENT-REQUIREDheader; treat the body as a quote. - Base64-decode the header and compare
accepts[0].payTowith the canonical address above. If it differs — even by one character — stop. Cached discovery records and old listings are not proof of the current payTo. - Check the network is Base
8453, the asset is the USDC contract above, and the amount is still 1000 atomic units. Budget for the live quote, not this cached page. - Only then let your own x402 client sign a payment for that exact quote. Never paste a private key into a page or approve an allowance you have not inspected.
- Save the returned
PAYMENT-RESPONSE/settlement transaction hash and verify it independently on Base. A quote, listing, rank or badge is not a receipt.
What you should get back
A JSON weather snapshot for the requested city, assembled from public geocoding and forecast data. Check that the city resolves as expected and that the observation or forecast time is present before treating the purchase as delivered.
{
"city": "London",
"resolved": { "..." : "..." },
"current": { "temperature_c": 0.0, "..." : "..." },
"source": "Open-Meteo public data"
}
This shape is a buyer expectation drawn from the service description, not a guaranteed schema. If promised fields are missing, keep the receipt and report the mismatch; do not pay again to find out.
Read-first, never advice
- A snapshot is a point-in-time view of public forecast data, not a guarantee of future conditions.
- Confirm the returned city and timestamp; geocoding can resolve to a different place with a similar name.
- Do not use this endpoint to route private keys, wallet approvals or personal data.
- This guide is static: no script here reads your clipboard, wallet or filesystem.
Why this page exists
HY4 Verification Services publishes free, read-first guides so buyers can inspect terms before spending. This guide is $0 customer information: no account, email, CAPTCHA, wallet connection, upload or paid call is required to read it. Revenue, if any, comes only from a buyer's own independently verified x402 settlement — never from this page.
Back to catalog · Live route status · payTo verification checklist