{"openapi":"3.1.0","info":{"title":"Weather API","version":"0.1.0","description":"Instant weather data by city name — no API keys, no geocoding setup, no rate limits. Current conditions and daily forecasts (1-7 days) for any city worldwide in structured JSON, ready for agent consumption. x402 micropayments (USDC on Base), $0.001/request — 1/5 the price of weather.hugen.tokyo. Current endpoint: updated every 15 minutes (Open-Meteo current-weather cadence). Forecast endpoint: updated approximately every hour (Open-Meteo forecast refresh cadence). Paid endpoint responses are fetched fresh from upstream on each request; the unpaid 402 preview peek (_live_sample) may be cached for up to 15 minutes to reduce upstream load. Data: Open-Meteo (CC BY 4.0).","contact":{"url":"https://weather-data-api.kasanegi123.workers.dev"},"x-x402-discovery":"https://weather-data-api.kasanegi123.workers.dev/.well-known/x402","x-x402-price":"$0.001"},"servers":[{"url":"https://weather-data-api.kasanegi123.workers.dev"}],"paths":{"/weather/current":{"get":{"summary":"Current weather by city or coordinates (x402 $0.001)","description":"Returns current weather. All query params are optional; when nothing is supplied, the server defaults city to Tokyo. Alternatively pass `lat` + `lon` for a specific coordinate.","x-x402-price":"$0.001","x-x402-currency":"USDC","x-x402-network":"eip155:8453","parameters":[{"name":"city","in":"query","required":false,"schema":{"type":"string","default":"Tokyo","example":"Tokyo"},"description":"City name (e.g., Tokyo, London, New York). Optional; defaults to Tokyo when neither city nor lat+lon is supplied.","example":"Tokyo"},{"name":"lat","in":"query","required":false,"schema":{"type":"number","minimum":-90,"maximum":90},"description":"Latitude. Use with `lon` instead of `city`."},{"name":"lon","in":"query","required":false,"schema":{"type":"number","minimum":-180,"maximum":180},"description":"Longitude. Use with `lat` instead of `city`."}],"responses":{"200":{"description":"Current weather JSON"},"402":{"description":"Payment required"}}}},"/weather/forecast":{"get":{"summary":"Daily weather forecast 1-7d (x402 $0.001)","description":"Returns a daily forecast. All query params are optional; when nothing is supplied, the server defaults city=Tokyo and days=3. Alternatively pass `lat` + `lon` for a specific coordinate.","x-x402-price":"$0.001","x-x402-currency":"USDC","x-x402-network":"eip155:8453","parameters":[{"name":"city","in":"query","required":false,"schema":{"type":"string","default":"Tokyo","example":"Tokyo"},"description":"City name. Optional; defaults to Tokyo when neither city nor lat+lon is supplied.","example":"Tokyo"},{"name":"lat","in":"query","required":false,"schema":{"type":"number","minimum":-90,"maximum":90}},{"name":"lon","in":"query","required":false,"schema":{"type":"number","minimum":-180,"maximum":180}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":7,"default":3,"example":3},"description":"Forecast days (1-7). Default: 3.","example":3}],"responses":{"200":{"description":"Forecast JSON"},"402":{"description":"Payment required"}}}}}}