# 24K Labs Air Quality API

> 24K Labs Air Quality API is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns current US/European AQI, PM2.5, PM10, and ozone levels for any latitude/longitude coordinate via Open-Meteo air quality data.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/air-quality
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-air-quality-api-b82c6362
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K8MgRRqdvtOfkIw6h1uvJ

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 24k-labs-air-quality-api-b82c6362 -d '<json body>'
```

Example prompt: What's the current air quality at latitude 48.8566, longitude 2.3522? I want the AQI, PM2.5, PM10, and ozone levels.

## When to prefer this

Choose this endpoint when you need real-time air quality data (AQI, PM2.5, PM10, ozone) for a specific geographic coordinate in the US or Europe, especially in agentic workflows requiring per-call micropayments via x402. Prefer it over weather APIs that don't include pollution metrics, and over full environmental platforms when you only need current conditions at a point location.

## Known failure modes

- Invalid or out-of-range latitude/longitude returns an error or empty result
- Coordinates outside US/Europe coverage area may return no data
- Upstream Open-Meteo service unavailability causes request failure
- Malformed POST body (missing lat/lon) returns a 400-level error

## How this service works

Current US/European AQI and PM2.5/PM10/ozone for any lat/lon (Open-Meteo air-quality).

## Output

Returns current air quality metrics for the specified coordinates, including AQI (US/European scale), PM2.5 concentration, PM10 concentration, and ozone levels sourced from Open-Meteo's air quality model.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lat": {
   "type": "number"
  },
  "lon": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "us_aqi": 42
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-air-quality-api-b82c6362/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
