# Global Weather Forecast API (Hourly, Pay-Per-Call)

> Global Weather Forecast API (Hourly, Pay-Per-Call) is a paid API for AI agents from built-with-productos-xszv.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Returns an hourly weather forecast for a given latitude/longitude coordinate, covering up to 24 hours ahead, payable per call via x402/MPP with no API key required.

## Facts

- Endpoint: GET https://built-with-productos-xszv.vercel.app/v1/weather-forecast?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/global-weather-forecast-api-hourly-pay-per-call-20f33b11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C86uJ_hUM9X1qZhw2drIU

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 global-weather-forecast-api-hourly-pay-per-call-20f33b11
```

Example prompt: What's the hourly weather forecast for the next 12 hours at latitude 51.5074, longitude -0.1278 (London)?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call hourly weather forecasts by GPS coordinate without needing a long-term API key subscription. Ideal for AI agents that need infrequent or ad-hoc weather lookups and can pay per call via x402 or MPP micropayments. Not suited for historical weather data, multi-day extended forecasts beyond 24 hours, or non-coordinate-based location lookups.

## Known failure modes

- Missing lat or lon parameters returns a 400-level error
- Hours value outside 1–24 range rejected by schema validation
- Payment not provided or insufficient triggers a 402 Payment Required response
- Invalid coordinate values (e.g. out-of-range lat/lon) may return empty or error response
- Network or upstream weather data unavailability may cause 5xx errors

## How this service works

Global current weather, hourly forecasts, foreign-exchange rates, EVM reads, and deterministic utilities for AI agents. Pay per call with MPP or x402; no API key.

## Output

A JSON object containing the requested latitude, longitude, the number of forecast hours, and a 'forecast' array with hourly weather data points for each hour requested up to 24 hours ahead.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "hours": {
       "type": "integer",
       "maximum": 24,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hours": 12,
  "forecast": [],
  "latitude": 51.5074,
  "longitude": -0.1278
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/global-weather-forecast-api-hourly-pay-per-call-20f33b11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from built-with-productos-xszv.vercel.app](https://www.zero.xyz/host/built-with-productos-xszv.vercel.app/llms.txt)
