{"uid":"cap_F3PnFl6NVL9miuGasonP8","slug":"agentutility-current-weather-fe2881bc","name":"AgentUtility Current Weather","description":"817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.","url":"https://x402.agentutility.ai/current-weather?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["latitude","longitude"],"properties":{"units":{"enum":["metric","imperial"],"type":"string","description":"'metric' (°C, km/h, mm) or 'imperial' (°F, mph, inch). Default 'metric'."},"hourly":{"type":"boolean","description":"If true, include hourly temperature, precipitation, and weather code arrays. Default false."},"latitude":{"type":"number","description":"Decimal degrees, range [-90, 90]. Positive north."},"longitude":{"type":"number","description":"Decimal degrees, range [-180, 180]. Positive east."},"forecast_days":{"type":"number","description":"Number of forecast days, 1-7. Default 3."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"daily":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"sunset":{"type":"string"},"sunrise":{"type":"string"},"uv_index_max":{"type":"number"},"weather_code":{"type":"integer"},"temperature_max":{"type":"number"},"temperature_min":{"type":"number"},"precipitation_mm":{"type":"integer"},"precipitation_probability_max":{"type":"integer"}}}},"units":{"type":"string"},"source":{"type":"string"},"current":{"type":"object","properties":{"time":{"type":"string"},"is_day":{"type":"boolean"},"wind_speed":{"type":"number"},"temperature":{"type":"number"},"humidity_pct":{"type":"integer"},"weather_code":{"type":"integer"},"precipitation":{"type":"integer"},"wind_direction_deg":{"type":"integer"},"apparent_temperature":{"type":"number"}}},"location":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"timezone":{"type":"string"},"elevation_m":{"type":"integer"}}}}}}}}},"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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nWZW6bhYt-Snmaqfk6Gl-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 and a multi-day forecast for any latitude/longitude, with optional hourly data, in metric or imperial units.","exampleAgentPrompt":"What's the current weather and 5-day forecast for San Francisco (37.7749, -122.4194) in Fahrenheit, including hourly breakdowns?","exampleUseCases":[{"title":"Outdoor event planning check","prompt":"I'm planning an outdoor event in London this weekend — can you pull the weather forecast for the next 3 days at 51.5074, -0.1278 in metric units so I can see if we'll have rain?"},{"title":"Real-time conditions for field agent","prompt":"What's the current temperature, wind speed, and weather conditions right now at coordinates 40.7128, -74.0060 in imperial units — I need to know if it's safe to send a crew outside."},{"title":"Sunrise and UV index for hiking","prompt":"Can you get me tomorrow's sunrise time, UV index, and high temperature for the trailhead at latitude 36.4864, longitude -118.5658 in metric so I can plan my hike start time?"}],"resultDescription":"A JSON object containing: current conditions (temperature, apparent temperature, humidity, wind speed/direction, precipitation, weather code, is_day flag, timestamp); a daily array covering up to 7 days (date, min/max temperature, precipitation, precipitation probability, weather code, sunrise, sunset, UV index max); optionally hourly arrays for temperature, precipitation, and weather code; plus location metadata (lat, lon, timezone, elevation) and the units used. The source is Open-Meteo.","failureModes":["Latitude out of range [-90,90] or longitude out of range [-180,180] returns a validation error","forecast_days outside 1-7 returns an error","Missing required latitude or longitude fields returns a 400-level error","x402 payment failure or insufficient USDC balance blocks the request","Temporary Open-Meteo upstream outage may cause 5xx or timeout responses"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call weather data with no API key or account setup, payable in USDC via x402 on Base or Solana. It is ideal for AI agents that need current conditions plus a short-range forecast (up to 7 days) for any global coordinate, with optional hourly granularity. Prefer it over free-tier weather APIs when you want a single consistent pay-as-you-go interface across many API types in the agentutility catalog. If you need historical climate data, air quality, or severe weather alerts, look for a more specialized endpoint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T12:39:09.896Z","isFirstParty":false,"canonicalSlug":"agentutility-current-weather-fe2881bc"}