Weather Gov

    by Khristian Kopachelli

    1

    Technical reference for US National Weather Service API integration including gridpoint lookups and active alerts.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Weather Gov

    Example session with this skill installed

    Show me how to get a 7-day forecast for a specific lat/lon coordinate using the weather.gov API and what the caching rules are.

    • Read your context and instructions
    • Compiled the weather gov

    To get a forecast for a specific location, you must first resolve the coordinates to an NWS gridpoint before calling the forecast endpoint.

    Weather.gov Implementation Guide

    TaskEndpoint PatternCache TTL
    1. Metadata LookupGET /points/{lat},{lon}60 minutes
    2. Active AlertsGET /alerts/active?point={lat},{lon}5 minutes
    3. Grid ForecastGET /gridpoints/{office}/{gridX},{gridY}/forecast30 minutes

    Implementation Example (Node.js)

    // Step 1: Get the grid metadata
    const pointRes = await fetch('https://api.weather.gov/points/40.7128,-74.0060');
    const pointData = await pointRes.json();
    
    // Extract office and grid coordinates
    const { gridId, gridX, gridY } = pointData.properties;
    
    // Step 2: Get the 7-day forecast
    const forecastUrl = `https://api.weather.gov/gridpoints/${gridId}/${gridX},${gridY}/forecast`;
    const forecastRes = await fetch(forecastUrl, {
      headers: { 'User-Agent': '(myweatherapp.com, contact@example.com)' }
    });
    const forecastData = await forecastRes.json();
    
    console.log(forecastData.properties.periods);
    

    Next steps

    1. Implement a caching layer using the 30-minute TTL hint for gridpoint forecasts.
    2. Add a User-Agent header to your requests as required by NWS "polite use" policy.
    3. Add a check for empty arrays in the /alerts response to handle "no active alerts" states.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Integrating public weather data into an application often involves navigating inconsistent endpoints and cryptic grid coordinates. This skill provides a technical reference for the US National Weather Service (api.weather.gov) API to ensure accurate data retrieval.

    What it does

    • Coordinate Mapping provides the specific gridpoint metadata required for location-based forecast queries.
    • Alert Monitoring retrieves active weather warnings and alerts filtered by geographic coordinates.
    • Forecast Extraction fetches detailed 7-day weather forecasts using NWS office and grid identifiers.
    • Rate Management implements patterns for handling public-sector API rate limits and 429 status codes.
    • Cache Optimization applies specific TTL hints for different data types to reduce redundant API calls.

    How it works

    1. Resolve Coordinates by querying the points endpoint with latitude and longitude to find the local weather office and grid X/Y.
    2. Retrieve Forecasts using the resolved office and grid values to access the 7-day forecast data.
    3. Check Active Alerts to pull real-time weather warnings for specific geographic areas.
    4. Normalize Response by handling empty arrays and public-data formats before passing data to your application.

    Frameworks & tools

    This skill focuses on the api.weather.gov REST API. It is compatible with any stack capable of making HTTP requests, such as Node.js, Python, or Go.

    Why this beats prompting it yourself

    Generic prompts often hallucinate the correct URL structure for NWS gridpoints or ignore the required metadata step. This skill enforces the exact three-step lookup pattern needed to get valid forecast data without trial-and-error.

    Use cases

    • Build a weather alert system that triggers notifications based on active NWS warnings.
    • Integrate hyper-local 7-day forecasts into a dashboard using latitude and longitude.
    • Scaffolding a backend service that caches NWS metadata to minimize external API latency.

    Known limitations

    Coverage is limited to what the upstream NWS API exposes. You must discover jurisdiction-specific identifiers like FIPS codes via catalog endpoints for certain queries.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Permissions

    Terminal / Shell
    Network Access
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill provides the specific logic and workflows needed to correctly navigate the National Weather Service's multi-step gridpoint system, preventing the common URL errors and hallucinations that occur when prompting an AI for weather data manually.

    The skill is designed as a technical reference for the api.weather.gov REST API and is compatible with any AI agent or development environment capable of executing HTTP requests, including Node.js, Python, and Go frameworks.

    You receive a structured implementation guide that covers coordinate mapping, forecast extraction, alert monitoring, and specific patterns for handling NWS-specific rate limits and caching.

    Yes, the skill includes specific workflows for the Alerts endpoint, allowing you to filter real-time weather warnings and notifications by geographic coordinates.

    No API key is required as the NWS API is a public service; however, the skill provides the necessary patterns for including the required User-Agent headers and managing public-sector rate limits effectively.

    This skill is specifically optimized for the US National Weather Service, meaning it provides coverage for the United States, including coastal and offshore territories supported by the NWS.

    New in APIs & Backend

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.