# 2s.io Air Quality by Coordinate

> 2s.io Air Quality by Coordinate is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-14).

Returns current US AQI, European AQI, category label, and pollutant concentrations (PM2.5, PM10, O3, NO2, SO2, CO) for any lat/lon worldwide

## Facts

- Endpoint: GET https://2s.io/api/weather/air-quality
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-air-quality-by-coordinate-631e70dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7ZKA5RHwIReEMY_H6tlaC

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 2s-io-air-quality-by-coordinate-631e70dd
```

Example prompt: What's the current air quality at latitude 40.7128, longitude -74.0060 — give me the US AQI category and the PM2.5 and ozone concentrations.

## When to prefer this

Choose this endpoint when you need real-time air quality data (AQI + pollutant breakdown) for any arbitrary geographic coordinate worldwide, without requiring an API key. It provides both US and European AQI standards in a single call, making it ideal for international applications. Prefer over weather-only APIs when pollutant-level granularity (PM2.5, NO2, SO2, CO, O3) is required.

## Known failure modes

- Missing lat or lon parameter returns a 400 bad request error
- Coordinates outside valid range (-90 to 90 lat, -180 to 180 lon) may return an error or empty result
- Upstream Open-Meteo/CAMS outage may cause 503 or empty data
- Payment failure (x402) returns 402 Payment Required if USDC balance is insufficient

## How this service works

Current air quality for any coordinate worldwide. Pass lat + lon. Returns the US AQI (+ category Good/Moderate/Unhealthy…), the European AQI, and pollutant concentrations: PM2.5, PM10, ozone, nitrogen dioxide, sulphur dioxide, carbon monoxide. Source: Open-Meteo / CAMS (keyless).

## Output

A JSON object containing the current US AQI value and category (e.g. Good, Moderate, Unhealthy), the European AQI value, and individual pollutant concentrations for PM2.5, PM10, ozone (O3), nitrogen dioxide (NO2), sulphur dioxide (SO2), and carbon monoxide (CO) for the requested coordinate.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lat": 40.7128,
   "lon": -74.006
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-air-quality-by-coordinate-631e70dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
