# Synapse Air Quality API

> Synapse Air Quality API is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns current air quality metrics (PM2.5, PM10, US AQI) for a geographic location, paid per call via x402/USDC with no API key required.

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/air-quality?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synapse-air-quality-api-546c2bd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lUZTW1dv2_3jk0ZGV7dEa

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 synapse-air-quality-api-546c2bd4
```

Example prompt: What's the current air quality at latitude 52.5, longitude 13.4 in Berlin — give me the PM2.5, PM10, and US AQI readings?

## When to prefer this

Choose this endpoint when you need real-time air quality data (PM2.5, PM10, US AQI) for any global coordinate without setting up an API account or managing API keys — ideal for agents making one-off or infrequent calls paid in USDC via x402 on Base. Prefer alternatives if you need historical air quality time series, forecasted AQI, or if you require pollutants beyond PM2.5/PM10 such as ozone or NO2.

## Known failure modes

- Missing or invalid coordinates result in an error response
- Location outside supported geographic coverage may return null or error
- Payment failure (insufficient USDC balance) blocks the request with HTTP 402
- Network timeout if the upstream weather/air-quality provider is slow
- No query parameters provided returns a schema or default-location response

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object with current air quality data including PM10 (μg/m³), PM2.5 (μg/m³), and US AQI index value, along with the latitude and longitude of the queried location.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "current": {
   "pm10": 11.4,
   "pm2_5": 7.3,
   "us_aqi": 53
  },
  "latitude": 52.5,
  "longitude": 13.4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synapse-air-quality-api-546c2bd4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
