{"uid":"cap_h5K2gT9sj0I77Z7lboiHR","slug":"agentutility-weather-api-ece31446","name":"AgentUtility Weather API","description":"Weather API returning current conditions, hourly forecast, and a 1-7 day daily forecast for any latitude/longitude. Metric or imperial units. Open-Meteo backend. Use it as a current weather API or forecast API.","url":"https://x402.agentutility.ai/weather-api","method":"POST","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"latitude":{"type":"number","description":"Decimal degrees, range [-90, 90]. Positive north."},"longitude":{"type":"number","description":"Decimal degrees, range [-180, 180]. Positive east."},"units":{"type":"string","enum":["metric","imperial"],"description":"'metric' (°C, km/h, mm) or 'imperial' (°F, mph, inch). Default 'metric'."},"forecast_days":{"type":"number","description":"Number of forecast days, 1-7. Default 3."},"hourly":{"type":"boolean","description":"If true, include hourly temperature, precipitation, and weather code arrays. Default false."}},"required":["latitude","longitude"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"location":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"timezone":{"type":"string"},"elevation_m":{"type":"integer"}}},"current":{"type":"object","properties":{"time":{"type":"string"},"temperature":{"type":"number"},"apparent_temperature":{"type":"number"},"humidity_pct":{"type":"integer"},"wind_speed":{"type":"number"},"wind_direction_deg":{"type":"integer"},"precipitation":{"type":"integer"},"weather_code":{"type":"integer"},"is_day":{"type":"boolean"}}},"daily":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"temperature_max":{"type":"number"},"temperature_min":{"type":"number"},"precipitation_mm":{"type":"integer"},"precipitation_probability_max":{"type":"integer"},"sunrise":{"type":"string"},"sunset":{"type":"string"},"uv_index_max":{"type":"number"},"weather_code":{"type":"integer"}}}},"units":{"type":"string"},"source":{"type":"string"}}}},"required":["type"]}},"required":["input"]},"responseSchema":{"type":"json","example":{"daily":[{"date":"2026-05-06","sunset":"2026-05-06T20:11","sunrise":"2026-05-06T06:08","uv_index_max":7.5,"weather_code":3,"temperature_max":67.3,"temperature_min":53.1,"precipitation_mm":0,"precipitation_probability_max":5}],"units":"imperial","source":"https://open-meteo.com","current":{"time":"2026-05-06T13:00","is_day":true,"wind_speed":8.2,"temperature":62.1,"humidity_pct":78,"weather_code":3,"precipitation":0,"wind_direction_deg":270,"apparent_temperature":60.4},"location":{"lat":37.7749,"lon":-122.4194,"timezone":"America/Los_Angeles","elevation_m":18}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Hd670qp8WdlIBUlGAKlsJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current weather conditions, hourly forecast, and up to 7-day daily forecast for a given latitude/longitude, powered by Open-Meteo","exampleAgentPrompt":"What's the current weather and 5-day forecast for San Francisco (37.7749, -122.4194) in imperial units?","exampleUseCases":[{"title":"Outdoor event weather check","prompt":"I'm planning an outdoor concert in Austin, Texas on Saturday — can you pull the 3-day weather forecast for coordinates 30.2672, -97.7431 in imperial units so I know what to expect?"},{"title":"Logistics route weather monitoring","prompt":"Pull the current conditions and hourly forecast for the next 24 hours at 51.5074, -0.1278 in metric units — I need to plan a delivery route through London."},{"title":"Smart home climate automation","prompt":"Get the current temperature and today's hourly forecast for my home at latitude 47.6062, longitude -122.3321 in imperial so I can decide whether to run the AC or open the windows."}],"resultDescription":"A JSON response containing current weather conditions (temperature, wind speed, precipitation, humidity, etc.), an hourly forecast array for the coming hours, and a daily forecast for up to 7 days — all in the requested unit system (metric or imperial). Powered by the Open-Meteo backend.","failureModes":["Invalid or out-of-range latitude/longitude returns an error","Missing required coordinate parameters results in a 400-level error","Unsupported unit system value may cause a validation error","Network or upstream Open-Meteo availability issues may cause 5xx errors","Forecast day count outside 1-7 range may be rejected or clamped"],"whenToPreferThis":"Choose this endpoint when an AI agent needs structured weather data (current conditions + hourly + daily forecast) for any global coordinate, especially in a micropayment-native (x402/USDC) agentic context. Prefer it over free-tier weather APIs when operating in a USDC-settled agent pipeline or when you need a single endpoint that covers current, hourly, and multi-day forecasts together. The Open-Meteo backend provides reliable global coverage with no API key required beyond the x402 payment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:54:54.239Z","isFirstParty":false}