{"uid":"cap_DI8KIOky8wP93RqTuI-Je","slug":"agentindex-x402-weather-bb1ff578","name":"AgentIndex x402 Weather","description":"Current weather and a 3-day forecast for any city or lat/lon - temperature, humidity, wind, conditions. No account, no API key. Try GET /weather/sample.","url":"https://x402.agentindex.world/weather?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"lat":{"type":"number","description":"Latitude. Use with lon when you already have coordinates."},"lon":{"type":"number","description":"Longitude. Use with lat when you already have coordinates."},"city":{"type":"string","description":"City name (e.g. Paris, Tokyo). Preferred when you do not have coordinates."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["location","current","daily"],"properties":{"daily":{"type":"array","items":{"type":"object"}},"query":{"type":"string"},"current":{"type":"object"},"location":{"type":"object"},"x402_receipt":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"daily":[{"date":"2026-09-30","conditions":"rain","weather_code":63,"temperature_max_c":22.8,"temperature_min_c":20.5,"precipitation_sum_mm":13.2},{"date":"2026-10-01","conditions":"rain_showers","weather_code":80,"temperature_max_c":21,"temperature_min_c":16,"precipitation_sum_mm":1.9},{"date":"2026-10-02","conditions":"overcast","weather_code":3,"temperature_max_c":20.6,"temperature_min_c":12.5,"precipitation_sum_mm":0}],"query":"Paris","current":{"time":"2026-09-30T12:30","conditions":"slight_rain","humidity_pct":78,"weather_code":61,"temperature_c":21.1,"wind_speed_kmh":8.9},"location":{"name":"Paris","country":"France","latitude":48.85341,"timezone":"Europe/Paris","longitude":2.3488,"country_code":"FR"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Nc8P_vmQh362qxKayQzFB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current conditions and a multi-day daily forecast for a given city or coordinates, paid per-call in USDC on Base.","exampleAgentPrompt":"What's the current weather and daily forecast for Paris? I need the temperature, humidity, wind speed, and conditions for the next few days.","exampleUseCases":[{"title":"Pre-trip weather check","prompt":"What's the weather like in Tokyo right now, and what will the daily highs and lows be for the next week?"},{"title":"Outdoor event planning","prompt":"Is it going to rain in London this weekend? Give me the daily forecast including precipitation and conditions."},{"title":"Coordinate-based weather lookup","prompt":"Get me the current temperature and weather conditions for the location at latitude 34.05 and longitude -118.24."}],"resultDescription":"Returns a JSON object with three sections: (1) location metadata (name, country, lat/lon, timezone), (2) current conditions (temperature in Celsius, humidity %, wind speed km/h, weather code and text description, timestamp), and (3) an array of daily forecasts (date, max/min temperature in Celsius, precipitation sum in mm, weather code and conditions string).","failureModes":["Missing both city and lat/lon parameters — returns 400 or empty result","Invalid city name that cannot be geocoded — may return error or empty location","Payment failure on Base network (insufficient USDC balance) — 402 response with payment required details","Network timeout or upstream weather provider outage — 503 or timeout error","Ambiguous city name (e.g. 'Springfield') — may resolve to unexpected location"],"whenToPreferThis":"Choose this endpoint when you need live current conditions plus a multi-day daily forecast in a single pay-per-call request without a subscription, especially in agentic workflows that already operate on Base/USDC via the x402 micropayment protocol. Prefer it over free-tier weather APIs when you need reliable uptime with per-call billing and no API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:40:45.182Z","isFirstParty":false,"canonicalSlug":"agentindex-x402-weather-bb1ff578"}