# NWS Weather Forecast by Coordinates

> NWS Weather Forecast by Coordinates is a paid API for AI agents from x402-seller.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the official U.S. National Weather Service next-period forecast for a given latitude/longitude within the US

## Facts

- Endpoint: GET https://x402-seller.onrender.com/weather/forecast
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nws-weather-forecast-by-coordinates-41ddc2ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ksD21f4kOU37lWwgg-mOe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nws-weather-forecast-by-coordinates-41ddc2ab
```

Example prompt: What's the official National Weather Service forecast for coordinates 40.7128° N, 74.0060° W right now — give me the temperature, conditions, and wind?

## When to prefer this

Use this endpoint when you need the authoritative, official U.S. government weather forecast for a specific US lat/lng coordinate and want structured next-period data including temperature, wind, and detailed narrative. Prefer this over commercial weather APIs when US government NWS sourcing is required. Use /geo/lookup first if you only have a street address and need to convert it to coordinates.

## Known failure modes

- Coordinates outside the US return an error — endpoint only supports US locations
- Invalid or malformed lat/lng strings cause a 400-level error
- NWS API upstream outages may cause timeouts or 5xx errors
- Coordinates in US waters or territories may not have NWS grid coverage
- Missing required lat or lng query parameters returns validation error

## How this service works

Official U.S. National Weather Service (NWS) forecast for the next period — the nearest upcoming forecast window, e.g. today, tonight, or tomorrow — at a given latitude/longitude. US locations only. Use /geo/lookup first if you only have an address.

## Output

Returns the next forecast period from NWS including: period name (e.g. 'Tonight'), temperature with unit, short forecast summary (e.g. 'Partly Cloudy'), detailed forecast text, wind speed and direction, and the data source attribution.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lng"
     ],
     "properties": {
      "lat": {
       "type": "string",
       "description": "Latitude (US locations only)"
      },
      "lng": {
       "type": "string",
       "description": "Longitude (US locations only)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "period": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "windSpeed": {
       "type": "string"
      },
      "temperature": {
       "type": "number"
      },
      "shortForecast": {
       "type": "string"
      },
      "windDirection": {
       "type": "string"
      },
      "temperatureUnit": {
       "type": "string"
      },
      "detailedForecast": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nws-weather-forecast-by-coordinates-41ddc2ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller.onrender.com](https://www.zero.xyz/host/x402-seller.onrender.com/llms.txt)
