# Weather Forecast & Air Quality API

> Weather Forecast & Air Quality API is a paid API for AI agents from api.kadec0.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Returns current weather conditions, a 16-day daily forecast, and air quality metrics (AQI, PM2.5, ozone) for any latitude/longitude coordinate.

## Facts

- Endpoint: GET https://api.kadec0.xyz/v1/weather
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weather-forecast-air-quality-api-a8fea28d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xg7xBJvEQvnRle03NuwDS

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 weather-forecast-air-quality-api-a8fea28d
```

Example prompt: What's the current weather and air quality — including AQI and PM2.5 — at latitude 40.7128, longitude -74.0060, and give me a 10-day forecast?

## When to prefer this

Use this endpoint when you need both weather forecast and air quality data (AQI, PM2.5, ozone) together for any global coordinate, especially when a 16-day forecast window is needed. Prefer this over generic weather APIs when air quality metrics are also required alongside meteorological data.

## Known failure modes

- Missing lat or lng parameters returns a 400 error
- Latitude out of -90..90 range returns a validation error
- Longitude out of -180..180 range returns a validation error
- forecast_days exceeding 16 returns a validation error
- Network or upstream provider outage may return 502/503
- Payment not provided or insufficient returns a 402 Payment Required error

## How this service works

Weather forecast and air quality for any location worldwide. Returns current conditions plus a 16-day daily weather forecast - temperature highs and lows, precipitation, and wind - alongside air-quality readings including AQI, PM2.5, PM10, and ozone, for any latitude and longitude. Daily forecast resolution. Keyless, via Open-Meteo.

## Output

Returns current weather conditions (temperature, wind, humidity, etc.), a daily forecast for up to 16 days, and air quality metrics including AQI, PM2.5, and ozone levels for the specified latitude and longitude.

## 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",
      "lng"
     ],
     "properties": {
      "lat": {
       "type": "string",
       "description": "latitude -90..90"
      },
      "lng": {
       "type": "string",
       "description": "longitude -180..180"
      },
      "forecast_days": {
       "type": "string",
       "default": "7",
       "description": "1-16"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weather-forecast-air-quality-api-a8fea28d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.kadec0.xyz](https://www.zero.xyz/host/api.kadec0.xyz/llms.txt)
