# DopamineDesk Air Quality API

> DopamineDesk Air Quality API is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns real-time AQI, pollutant concentrations, category, and health recommendations for a given city or location

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/air_quality
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-air-quality-api-34101a11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CLT26AxVO1ywuz414ySh-

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 dopaminedesk-air-quality-api-34101a11
```

Example prompt: What's the current air quality in Beijing — give me the AQI, what the main pollutant is, and whether it's safe to be outside?

## When to prefer this

Choose this endpoint when an agent needs real-time AQI data with health context for a specific city, especially when the use case requires pollutant-level breakdowns (PM2.5, PM10, O3) and actionable health recommendations. It is pay-per-use via USDC x402, making it cost-effective for sporadic queries without subscription overhead. Prefer it over weather APIs that only provide a surface-level AQI indicator without pollutant detail or health advice.

## Known failure modes

- Unknown or misspelled city name returns an error or empty result
- Location coordinates outside supported regions may return no data
- Temporary upstream data provider outage may cause stale or missing readings
- Rate limiting or payment failure (x402) prevents the call from completing

## How this service works

Fetch current US AQI, European AQI, particulate, carbon monoxide, nitrogen dioxide, and ozone values for a geocoded location.

## Output

Returns a JSON object containing the location name, integer AQI score, air quality category (e.g. 'Unhealthy'), the primary pollutant, individual pollutant concentrations for PM2.5, PM10, and O3 with their units, and a plain-English health recommendation tailored to the air quality level.

## 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",
     "required": [
      "city"
     ],
     "properties": {
      "city": {
       "type": "string",
       "description": "City name or location coordinates."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "source",
      "fetched_at",
      "location",
      "current",
      "units",
      "marketplace_metadata"
     ],
     "properties": {
      "units": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "current": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "location": {
       "type": "string"
      },
      "fetched_at": {
       "type": "string"
      },
      "marketplace_metadata": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "units": "[object with keys: time, interval, us_aqi, european_aqi, pm2_5, pm10; full example in /openapi.json]",
  "source": "Open-Meteo Air Quality API",
  "current": "[object with keys: time, interval, us_aqi, european_aqi, pm2_5, pm10; full example in /openapi.json]",
  "success": true,
  "location": "[object with keys: name, admin1, country, latitude, longitude; full example in /openapi.json]",
  "fetched_at": "2026-08-07T07:32:46.555Z",
  "marketplace_metadata": "[object with keys: data_mode, billable, availability, source; full example in /openapi.json]"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-air-quality-api-34101a11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
