# OpenAQ Air Quality Lookup via AgentToll

> OpenAQ Air Quality Lookup via AgentToll is a paid API for AI agents from tollbooth.memerhuwhite.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-12).

Fetches air quality measurements from the OpenAQ global database, filterable by country and result count

## Facts

- Endpoint: POST https://tollbooth.memerhuwhite.workers.dev/paid/osint/openaq-air?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openaq-air-quality-lookup-via-agenttoll-23c419a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G4R1tKxGA5IG2AfjqS6Nd

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 openaq-air-quality-lookup-via-agenttoll-23c419a9 -d '<json body>'
```

Example prompt: Pull air quality measurements for Germany from OpenAQ — give me the top 20 results.

## When to prefer this

Use this endpoint when you need programmatic, pay-per-call access to OpenAQ air quality data without managing API keys or rate limits, especially in an AI agent workflow that already uses x402/USDC micropayments on Base. Prefer this over direct OpenAQ API calls when you want a managed, cached, low-friction integration.

## Known failure modes

- Invalid country code returns empty data array
- Limit value too high may cause timeout or partial results
- Payment failure (402) if USDC balance is insufficient
- OpenAQ upstream unavailable returns error in meta or empty data
- Malformed request body returns validation error

## How this service works

100+ paid x402 MCP tools for AI agents. Prediction markets, SEC filings, federal data, OSINT, academic research, health, environmental. Pay per call in USDC on Base.

## Output

Returns an array of air quality measurement objects from OpenAQ along with metadata including total count, data source name, and generation timestamp. Also includes a boolean indicating whether the response was served from cache and a success flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer"
  },
  "country": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "oneOf": [
    {
     "type": "array"
    },
    {
     "type": "object"
    }
   ]
  },
  "meta": {
   "type": "object",
   "properties": {
    "count": {
     "type": "integer"
    },
    "source": {
     "type": "string"
    },
    "generated_at": {
     "type": "string",
     "format": "date-time"
    }
   }
  },
  "cached": {
   "type": "boolean"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openaq-air-quality-lookup-via-agenttoll-23c419a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tollbooth.memerhuwhite.workers.dev](https://www.zero.xyz/host/tollbooth.memerhuwhite.workers.dev/llms.txt)
