{"uid":"cap_4iI7gPyjK0rnBHRspsiom","slug":"d21-weather-f1eb6a2c","name":"d21 weather","description":"Weather ($0.004): current conditions + short forecast, worldwide. United States coordinates (or a resolvable U.S. street address) read live from the National Weather Service's own public API (api.weather.gov), U.S. government data, plus active alerts. Every other location reads live from MET Norway's global Locationforecast model (api.met.no), CC BY 4.0/NLOD-licensed public data -- current + forecast only, no alerts (say so). Neither is a resold vendor feed. Body { lat, lon } (or lat/lng…","url":"https://draconic21-x402-api.onrender.com/v1/weather?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lat":{"type":"number","maximum":90,"minimum":-90,"description":"Latitude, anywhere in the world. Alias: latitude. Mutually exclusive with location/city."},"lon":{"type":"number","maximum":180,"minimum":-180,"description":"Longitude, anywhere in the world. Aliases: lng, long, longitude. Mutually exclusive with location/city."},"alerts":{"type":"boolean","description":"Include active NWS alerts for the point, default true. U.S./NWS locations only -- MET Norway (non-U.S.) never returns alerts; alerts_supported reports which applies."},"location":{"type":"string","description":"Full U.S. street address (best results) or city/state, e.g. '1600 Pennsylvania Ave NW, Washington, DC'. U.S. ONLY -- resolved to coordinates via the Census Geocoder, which never matches non-U.S. addresses. Alias: city. A bare 'City, State' may not resolve; pass lat/lon for guaranteed resolution or for any non-U.S. location. Mutually exclusive with lat/lon."},"forecast_days":{"type":"integer","maximum":7,"minimum":1,"description":"Number of forecast days (1-7), default 3."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q5S2CwtmgKI9fPhXNN20F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current weather conditions and short-term forecast (up to 7 days) for any worldwide location, using NWS for US coordinates and MET Norway for all other locations, with active NWS alerts for US points.","exampleAgentPrompt":"What's the current weather and 5-day forecast for Chicago — lat 41.8781, lon -84.6298 — and include any active weather alerts?","exampleUseCases":[{"title":"Outdoor event weather check","prompt":"Can you pull the current conditions and a 3-day forecast for San Francisco at lat 37.7749, lon -122.4194, and let me know if there are any active weather alerts this weekend?"},{"title":"Travel planning for non-US destination","prompt":"I'm heading to Paris next week — can you get me the current weather and a 7-day forecast for lat 48.8566, lon 2.3522? No alerts needed since it's outside the US."},{"title":"Emergency alert monitoring for US address","prompt":"Check the weather and any active NWS alerts for 1600 Pennsylvania Ave NW, Washington DC right now — I need to know if there's anything severe in the area."}],"resultDescription":"Returns current weather conditions (temperature, wind, precipitation, sky cover), a short-term forecast for up to 7 days, active NWS alerts for US locations, and an alerts_supported flag indicating whether alerts are available for the queried point. Non-US locations return forecast data only with no alerts.","failureModes":["Non-US address passed as location string — Census Geocoder cannot resolve non-US addresses; must use lat/lon instead","Coordinates outside valid range (lat > 90 or < -90, lon > 180 or < -180)","NWS or MET Norway upstream API unavailable or rate-limited","Bare 'City, State' string may fail Census Geocoder resolution; lat/lon is more reliable","Alerts requested for non-US location — endpoint will indicate alerts_supported=false rather than returning alert data","forecast_days outside 1-7 range rejected"],"whenToPreferThis":"Choose this endpoint when you need real, live weather data sourced directly from official government APIs (NWS for US, MET Norway for global) rather than a commercial reseller feed. It is ideal for agents that need current conditions plus a short forecast (1-7 days) at a specific coordinate or US address, especially when US severe weather alerts are required. It is not appropriate for historical weather data, extended seasonal forecasts beyond 7 days, or non-US locations that need weather alerts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:31:13.397Z","isFirstParty":false,"canonicalSlug":"d21-weather-f1eb6a2c"}