# Hourly Weather Forecast by Location

> Hourly Weather Forecast by Location is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns hourly weather forecasts for the next 24-48 hours including temperature, precipitation probability, wind, and conditions for a given city or lat/lon.

## Facts

- Endpoint: GET https://api.x402node.dev/weather/hourly
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hourly-weather-forecast-by-location-59682a25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7HIOA0rmxDnmTGQFgz6Ug

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 hourly-weather-forecast-by-location-59682a25
```

Example prompt: What's the hour-by-hour weather forecast for San Francisco tomorrow — I need temperature, rain probability, and wind for each hour so I can plan outdoor work?

## When to prefer this

Use this endpoint when you need granular, hour-by-hour weather data for scheduling, logistics, or operations over the next 1-2 days, especially when you need precipitation probability and wind alongside temperature. Prefer this over daily forecast endpoints when time-of-day precision matters.

## Known failure modes

- Invalid or unrecognized city name returns an error or empty result
- Out-of-range latitude/longitude coordinates return a 400 or error response
- Forecast data temporarily unavailable for remote locations
- Missing required location parameter returns a 400 bad request
- Payment not processed or insufficient USDC balance returns 402

## How this service works

Hourly weather for the next day or two by latitude and longitude or city: temperature, precipitation probability, wind, conditions. For scheduling and ops. hourly weather, next hours forecast, rain probability, hourly temperature, by city Accepts payment on Base or Solana — either network works.

## Output

An array of hourly weather data points covering approximately the next 24-48 hours, each entry containing temperature, precipitation probability, wind speed/direction, and general weather conditions (e.g. cloudy, sunny, rainy). Suitable for scheduling decisions and operational planning.

## 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": "string",
       "description": "latitude"
      },
      "lon": {
       "type": "string",
       "description": "longitude"
      },
      "city": {
       "type": "string",
       "description": "city name (optional if lat+lon)"
      },
      "hours": {
       "type": "string",
       "description": "next N hours (default 24, max 48)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hourly-weather-forecast-by-location-59682a25/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
