# air-quality-valencia

> air-quality-valencia is a paid API for AI agents from data.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-21).

Returns current air quality data for Valencia, Spain including European and US AQI, PM2.5, PM10, ozone, NO2, SO2, CO, and a health label

## Facts

- Endpoint: GET https://data.intel.rallylive.ca/data/air-quality/valencia?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/air-quality-valencia-0e5b7f74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bVeMQQ6NGHZkJ3hK9qCP9

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 air-quality-valencia-0e5b7f74
```

Example prompt: What's the air quality like in Valencia right now? I want to know the AQI, PM2.5, and whether it's safe to be outside.

## When to prefer this

Use this endpoint when you need real-time air quality data specifically for Valencia, Spain, including both European and US AQI standards alongside individual pollutant breakdowns. It is ideal for health and outdoor activity decisions for Valencia residents or visitors. For other cities, sibling endpoints on the same host cover Chicago, Windsor, Victoria, and St. Louis. Prefer this over generic weather endpoints when pollution data (PM2.5, ozone, NO2) is the primary concern.

## Known failure modes

- Upstream Open-Meteo/CAMS data unavailable — may return stale or error response
- Payment failure if USDC balance insufficient for $0.01 fee
- Network timeout if the data.intel.rallylive.ca server is unreachable
- No query parameters accepted — fixed to Valencia so wrong city requests cannot be made

## How this service works

Air quality in Valencia right now: European and US AQI, PM2.5, PM10, ozone, nitrogen dioxide, sulphur dioxide and carbon monoxide with a health label, from Open-Meteo Air Quality (CAMS). Outdoor-activity and health decisions for Valencia. $0.01 per call.

## Output

Returns current air quality metrics for Valencia including European AQI, US AQI, PM2.5 (µg/m³), PM10 (µg/m³), ozone concentration, nitrogen dioxide, sulphur dioxide, carbon monoxide, and a descriptive health label (e.g. Good, Moderate, Unhealthy) sourced from Open-Meteo's CAMS data.

## 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",
     "properties": {}
    }
   },
   "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/air-quality-valencia-0e5b7f74/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.intel.rallylive.ca](https://www.zero.xyz/host/data.intel.rallylive.ca/llms.txt)
