# NOAA Weather Forecast by Coordinates

> NOAA Weather Forecast by Coordinates is a paid API for AI agents from x402-trends-server.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Returns current U.S. weather forecast data from NOAA/National Weather Service for a given latitude and longitude, including temperature, conditions, wind, and day/night forecast periods.

## Facts

- Endpoint: GET https://x402-trends-server.onrender.com/api/weather
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/noaa-weather-forecast-by-coordinates-9fcf7647
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uKeks6RC421SivdI33dwD

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 noaa-weather-forecast-by-coordinates-9fcf7647
```

Example prompt: What's the current weather forecast for latitude 40.7128, longitude -74.0060? I need the temperature, conditions, and wind info for the next day or two.

## When to prefer this

Choose this endpoint when you need official U.S. government NOAA/National Weather Service forecast data for a specific latitude/longitude point, including structured day/night periods, wind details, and both short and detailed forecast text. Prefer this over general weather APIs when accuracy, official sourcing, or detailed NWS forecast narratives are important. Note: only works for U.S. coordinates.

## Known failure modes

- Coordinates outside the United States (NOAA only covers U.S. territories) — returns an error or no forecast data
- Invalid latitude/longitude values outside the -90 to 90 / -180 to 180 ranges — validation error
- NOAA API upstream outage or rate limit — service may return an error or empty response
- Ocean or remote coordinates with no NWS office coverage — forecast may be unavailable
- Missing required lat or lon query parameters — returns a 400-level error

## How this service works

Get a current U.S. weather forecast from NOAA and the National Weather Service by latitude and longitude. Use this weather API when an agent needs forecast temperature, conditions, wind, day/night periods, or detailed local forecast text for U.S. coordinates.

## Output

Returns a JSON object with the queried coordinates, resolved city and state, a list of forecast periods (each including name, start/end time, isDaytime flag, temperature with unit, wind speed, wind direction, short forecast, and detailed forecast text), the data source (NOAA/NWS), and a retrievedAt timestamp.

## 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",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "description": "Latitude for the U.S. forecast location."
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "description": "Longitude for the U.S. forecast location."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "status",
      "source",
      "coordinates",
      "location",
      "periods",
      "retrievedAt"
     ],
     "properties": {
      "source": {
       "type": "string"
      },
      "status": {
       "type": "string"
      },
      "payment": {
       "type": "string"
      },
      "periods": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [],
        "properties": {
         "name": {
          "type": [
           "string",
           "null"
          ]
         },
         "endTime": {
          "type": [
           "string",
           "null"
          ]
         },
         "isDaytime": {
          "type": [
           "boolean",
           "null"
          ]
         },
         "startTime": {
          "type": [
           "string",
           "null"
          ]
         },
         "windSpeed": {
          "type": [
           "string",
           "null"
          ]
         },
         "temperature": {
          "type": [
           "number",
           "null"
          ]
         },
         "shortForecast": {
          "type": [
           "string",
           "null"
          ]
         },
         "windDirection": {
          "type": [
           "string",
           "null"
          ]
         },
         "temperatureUnit": {
          "type": [
           "string",
           "null"
          ]
         },
        
… (truncated)
```

## More

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