{"uid":"cap_0SgLHIHLZWe4-eo_-fG7H","slug":"2s-io-us-weather-forecast-101dac47","name":"2s.io US Weather Forecast","description":"Official US weather forecast for a coordinate (US land + territories). Pass lat + lon. Returns the National Weather Service forecast as a list of periods — by default ~7 days of day/night periods; pass hourly=true for an hour-by-hour forecast. Each period gives the temperature + unit, wind speed/direction, chance of precipitation, and a short + detailed forecast, plus the resolved city/state and issuing office. Source: US National Weather Service (api.weather.gov), public domain. For active warnings use weather.alerts.","url":"https://2s.io/api/weather/forecast","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["lat","lon"],"properties":{"lat":{"type":"number","description":"Latitude."},"lon":{"type":"number","description":"Longitude."},"limit":{"type":"integer","description":"Max periods (default 14 daily / 24 hourly)."},"hourly":{"type":"boolean","description":"Hourly forecast instead of day/night periods."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"lat":38.8951,"lon":-77.0364,"limit":7,"hourly":false}}},"response":{"data":{"ok":true,"meta":{"periods":7,"updated":null,"location":"Washington, DC","forecastOffice":"LWX"},"items":[{"name":"","endTime":"2026-06-17T18:00:00-04:00","isDaytime":true,"startTime":"2026-06-17T17:00:00-04:00","windSpeed":"9 mph","temperature":87,"shortForecast":"Scattered Rain Showers","windDirection":"SW","temperatureUnit":"F","detailedForecast":"","precipProbabilityPct":10},{"name":"","endTime":"2026-06-17T19:00:00-04:00","isDaytime":false,"startTime":"2026-06-17T18:00:00-04:00","windSpeed":"9 mph","temperature":87,"shortForecast":"Partly Cloudy","windDirection":"S","temperatureUnit":"F","detailedForecast":"","precipProbabilityPct":6},{"name":"","endTime":"2026-06-17T20:00:00-04:00","isDaytime":false,"startTime":"2026-06-17T19:00:00-04:00","windSpeed":"9 mph","temperature":86,"shortForecast":"Partly Cloudy","windDirection":"S","temperatureUnit":"F","detailedForecast":"","precipProbabilityPct":1},{"name":"","endTime":"2026-06-17T21:00:00-04:00","isDaytime":false,"startTime":"2026-06-17T20:00:00-04:00","windSpeed":"6 mph","temperature":85,"shortForecast":"Partly Cloudy","windDirection":"S","temperatureUnit":"F","detailedForecast":"","precipProbabilityPct":3},{"name":"","endTime":"2026-06-17T22:00:00-04:00","isDaytime":false,"startTime":"2026-06-17T21:00:00-04:00","windSpeed":"6 mph","temperature":80,"shortForecast":"Partly Cloudy","windDirection":"S","temperatureUnit":"F","detailedForecast":"","precipProbabilityPct":2},{"name":"","endTime":"2026-06-17T23:00:00-04:00","isDaytime":false,"startTime":"2026-06-17T22:00:00-04:00","windSpeed":"6 mph","temperature":78,"shortForecast":"Partly Cloudy","windDirection":"S","temperatureUnit":"F","detailedForecast":"","precipProbabilityPct":2},{"name":"","endTime":"2026-06-18T00:00:00-04:00","isDaytime":false,"startTime":"2026-06-17T23:00:00-04:00","windSpeed":"6 mph","temperature":76,"shortForecast":"Mostly Cloudy","windDirection":"S","temperatureUnit":"F","detailedForecast":"","precipProbabilityPct":1}],"total":7,"source":{"url":"https://www.weather.gov/","license":"US Government work — public domain (17 U.S.C. §105).","provider":"US National Weather Service — api.weather.gov"}},"meta":{"cost":{"usd":0.00144,"tier":0},"caller":"x402","version":null,"endpoint":"weather.forecast","settlement":{"txHash":"0x6843fcb032009c028f60981a3635e3c8a05d85b75a839d7f1aacc62ae344833a","network":"eip155:8453","success":true}}}},"exampleRequest":{"lat":38.8951,"lon":-77.0364,"limit":7,"hourly":false},"tags":["x402"],"displayCostAmount":"0.00144","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.00144/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TG7_0g0XUPT8efmWFoZ_w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0036","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the National Weather Service forecast (daily or hourly periods) for a given US latitude/longitude coordinate","exampleAgentPrompt":"What's the 7-day weather forecast for Washington DC — lat 38.8951, lon -77.0364 — including temperature, wind, and chance of rain for each day and night period?","exampleUseCases":null,"resultDescription":"A list of forecast periods (up to 14 day/night or 24 hourly) each containing: period name (e.g. 'Tonight'), temperature with unit, wind speed and direction, short forecast summary, detailed text forecast, and precipitation chance. Also includes the resolved city/state and the NWS issuing office.","failureModes":["Coordinates outside US land and territories return an error (NWS only covers US)","Invalid or missing lat/lon parameters return a 400-level error","NWS upstream API outage may cause 502/503 responses","Coordinates in US waters without a forecast grid may fail","Extreme lat/lon values (e.g. out of valid range) may return an error"],"whenToPreferThis":"Use this endpoint when you need official US government weather forecast data for a US location specified by latitude and longitude. Prefer this over commercial weather APIs when public-domain NWS accuracy and authority are required, or when cost per call matters. For weather alerts and warnings, use the companion weather.alerts endpoint instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T13:03:17.558Z","isFirstParty":false}