Use when an agent needs air quality or pollen for a place (health, allergies, travel, outdoor activity)

$0.002 per call20 free calls/day via MCP

Use when an agent needs air quality or pollen for a place (health, allergies, travel, outdoor activity). Current US and European AQI with a plain-language level, PM2.5, PM10, ozone, NO2, CO, dust and UV, pollen levels (Europe), and the worst AQI expected in the next 24 h. City or lat/lon. Under 1 s.

air-qualityaqipollutionpollenhealthallergyenvironmenttravel

Call it from an AI agent (MCP)

Add the remote MCP server https://www.aypiai.online/mcp (Streamable HTTP, no auth) to Claude, Cursor, ChatGPT or any MCP client, then call the tool air_quality:

{
  "name": "air_quality",
  "arguments": {
    "location": "Delhi"
  }
}

Call it over HTTP

curl -X POST https://www.aypiai.online/api/air-quality \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: YOUR_CREDIT_KEY" \
  -d '{"location":"Delhi"}'

No key? Without one the endpoint answers 402 Payment Required with an x402 PAYMENT-REQUIRED header: any x402 client (USDC on Base, gasless) pays $0.002 and retries automatically. Works with any x402 wallet: Base MCP, Coinbase AgentKit, x402-fetch / x402-axios, Cloudflare Agents. Or buy card credits at /credits (from $5, valid on all tools). Failed calls are never charged.

Input

{
  "type": "object",
  "properties": {
    "location": {
      "type": "string",
      "description": "City or place name (e.g. Paris, Tokyo, Dublin IE)"
    },
    "lat": {
      "type": "number"
    },
    "lon": {
      "type": "number"
    }
  },
  "required": []
}

Example output

{
  "place": {
    "name": "Delhi",
    "country": "India"
  },
  "usAqi": 168,
  "level": "unhealthy",
  "pm2_5": 88.4,
  "next24hMaxUsAqi": 190,
  "pollen": {
    "grass": 0.3
  }
}

Related tools

Use when an agent needs current weather or a forecast for any place (trips, logistics, events, delivery, outdoor plans) ($0.002) · Use when an agent needs official US drug information ($0.005)

Rever: website intelligence for AI agents. MCP server: https://www.aypiai.online/mcp · x402 catalog: /.well-known/x402