# TBS Weather & Climate API – Air Quality

> TBS Weather & Climate API – Air Quality is a paid API for AI agents from x402.tbs-digital.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Returns real-time air quality index (European and US AQI), particulate matter (PM2.5, PM10), ozone, NO2, SO2, and CO for any city or lat/lon coordinate.

## Facts

- Endpoint: GET https://x402.tbs-digital.com/weather/air-quality?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tbs-weather-climate-api-air-quality-3349efd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0QNuaTBpK4ByqOa_M-ipW

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 tbs-weather-climate-api-air-quality-3349efd2
```

Example prompt: What's the current air quality in Chicago — give me the US AQI, PM2.5, PM10, and ozone levels?

## When to prefer this

Choose this endpoint when you need real-time, structured air quality and pollution data (AQI, particulates, gases) for any global city or coordinate, especially when building health, allergy, environmental monitoring, or outdoor-activity recommendation agents. It provides both European and US AQI standards in a single call, making it suitable for international applications. Prefer over general weather endpoints when pollution-specific metrics (PM2.5, PM10, NO2, SO2, CO, O3) are the primary requirement.

## Known failure modes

- Invalid or unresolvable city name returns an error or empty location
- Lat/lon out of range (-90..90, -180..180) returns a validation error
- Missing both city and lat/lon returns a required parameter error
- Coverage gaps for remote areas may return null or missing pollutant values
- Network or upstream data source outages may return a 5xx error

## How this service works

Air quality, pollution and environmental data for any city or lat/lon. Returns European and US AQI (air quality index), particulate matter PM2.5 and PM10, ozone (O3), nitrogen dioxide (NO2), sulphur dioxide (SO2), and carbon monoxide (CO). Real-time index for health, allergy, pollution-monitoring and environmental agents.

## Output

Returns a JSON object with the location (name, country, lat/lon), a timestamp, and an air_quality block containing European AQI, US AQI, PM2.5, PM10, O3, NO2, SO2, and CO values. Also includes request metadata such as request_id and payer address.

## 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": {
      "lat": {
       "type": "number",
       "description": "Latitude -90..90 (requires lon)"
      },
      "lon": {
       "type": "number",
       "description": "Longitude -180..180 (requires lat)"
      },
      "city": {
       "type": "string",
       "description": "City name (alternative to lat/lon)"
      },
      "timezone": {
       "type": "string",
       "description": "Optional IANA timezone"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "payer": {
       "type": "object",
       "properties": {
        "address": {
         "type": "string",
         "nullable": true
        },
        "network": {
         "type": "string"
        }
       }
      },
      "source": {
       "type": "string"
      },
      "location": {
       "type": "object",
       "properties": {
        "lat": {
         "type": "number"
        },
        "lon": {
         "type": "number"
        },
        "name": {
         "type": "string"
        },
        "country": {
         "type": "string"
        }
       }
      },
      "request_id": {
       "type": "string"
      },
      "air_quality": {
       "type": "object"
      },
      "generated_at": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "payer": {
   "address": "0x0000000000000000000000000000000000000000",
   "network": "base"
  },
  "source": "open-meteo",
  "location": {
   "lat": 48.85,
   "lon": 2.35,
   "name": "Paris",
   "country": "FR"
  },
  "request_id": "0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55",
  "air_quality": {
   "co": 140,
   "no2": 12,
   "so2": 1.2,
   "pm10": 9.4,
   "ozone": 68,
   "pm2_5": 5.1,
   "aqi_us": 35,
   "aqi_european": 20
  },
  "generated_at": "2026-08-09T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tbs-weather-climate-api-air-quality-3349efd2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tbs-digital.com](https://www.zero.xyz/host/x402.tbs-digital.com/llms.txt)
