# 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-13).

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

## Facts

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

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-c637a738 -d '<json body>'
```

Example prompt: What's the current air quality at 40.7128° N, 74.0060° W — give me the AQI, PM2.5, PM10, and ozone levels.

## When to prefer this

Choose this endpoint when you need real-time air quality metrics (AQI, PM2.5, PM10, ozone) for a specific geographic coordinate in the US or Europe, especially in agentic workflows requiring pay-per-call pricing via x402 protocol without API key management.

## Known failure modes

- Coordinates outside supported US/European coverage area may return no data or errors
- Invalid latitude/longitude values (out of range) cause validation errors
- Upstream Open-Meteo service outage results in failed lookups
- Missing required lat/lon parameters returns a 400 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 data for the specified coordinates including AQI (Air Quality Index), PM2.5 (fine particulate matter), PM10 (coarse particulate matter), and ozone concentration levels, sourced from Open-Meteo's air quality service covering US and European regions.

## 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-c637a738/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)
