AQICN

AQICN — free tier with API key

🌦 WeatherREACHABLEchecked 7h ago
AUTH APIKEYCORS AGENT HTTPS COMMERCIAL ?

AQICN exposes a free-tier JSON API. Register for an API key if required; we verified a public or demo endpoint.

100REACHABILITY SCORE ⓘ
Status badge · for your READMEshipapis health badge: — · healthy
CHECK TIER · REACHABILITY

We probe without your API key. A 401/403 auth wall means the server is up — not a full health pass.

Uptime history
100%90d reachable
100%30d reachable
7hLast check · since JUL 8 · server OK
operationalpartialdownno data
Live response samplecaptured by our last successful check
GET http://api.waqi.info/feed/shanghai/?token=demo

{
  "status": "ok",
  "data": {
    "aqi": 55,
    "idx": 1437,
    "attributions": [
      {
        "url": "https://sthj.sh.gov.cn/",
        "name": "Shanghai Environment Monitoring Center(上海市环境监测中心)"
      },
      {
        "url": "http://106.37.208.233:20035/emcpublish/",
        "name": "China National Urban air quality real-time publishing platform (全国城市空气质量实时发布平台)"
      }
    ],
    "city": {
      "geo": [
        31.2047372,
        121.4489017
      ],
      "name": "Shanghai (上海)",
      "url": "https://aqicn.org/city/shanghai",
      "location": ""
    },
    "dominentpol": "pm25",
    "iaqi": {
      "co": {
        "v": 4.6
      },
      "h": {
        "v": 85.5
      },
      "no2": {
        "v": 9.2
      },
      "o3": {
        "v": 16.3
      },
      "p": {
        "v": 1004
      },
      "pm10": {
        "v": 20
      },
      "pm25": {
        "v": 55
      },
      "so2": {
        "v": 4.1
      }
    },
    "time": {
      "s": "2026-07-06 02:00:00",
      "tz": "+08:00",
      "v": 1783303200,
      "iso": "2026-07-06T02:00:00+08:00"
    },
    "forecast": {
      "daily": {
        "o3": [
          {
            "avg": 1,
            "day": "2025-04-05",
            "max": 1,
            "min": 1
          }
        ],
        "pm10": [
          {
            "avg": 67,
            "day": "2026-07-05",
            "max": 123,
            "min": 42
          },
          {
            "avg": 94,
            "day": "2026-07-06",
            "max": 123,
            "min": 42
          }
        ],
        "pm25": [
          {
            "avg": 168,
            "day": "2026-07-05",
            "max": 252,
            "min": 127
          },
          {
            "avg": 205,
            "day": "2026-07-06",
            "max": 252,
            "min": 138
          }
        ],
        "uvi": [
          {
            "avg": 1,
            "day": "2026-07-05",
            "max": 7,
            "min": 0
          },
          {
            "avg": 2,
            "day": "2026-07-06",
            "max": 8,
            "min": 0
          }
        ]
      }
    }
  }
}
Call itcurl · fetch · python
curl "http://api.waqi.info/feed/shanghai/?token=demo"
const res = await fetch("http://api.waqi.info/feed/shanghai/?token=demo");
const data = await res.json();
console.log(data);
import requests

res = requests.get("http://api.waqi.info/feed/shanghai/?token=demo")
print(res.json())

BROWSER CALLS BLOCKED (NO CORS/HTTPS) — USE THE CURL SNIPPET

Endpoints · 6ReachableFULL DOCS ↗
Auth wall reachable — GET /feed/shanghai/?token=demo (key stripped)224 mschecked 7h ago
GET/feed/shanghai/?token=demoPROBED

AQICN — free tier with API key

GET/feed

Activity or news feed.

GET/feed/1

Feed details by ID (example: 1).

GET/feed?limit=10

Activity or news feed.

GET/feed/search?q=test

Search by query parameters.

GET/feed/shanghai/?limit=5

Activity or news feed.

Machine-readable spec

We probe without your API key. A 401/403 auth wall means the server is up — not a full health pass. Export includes every documented route below.

Response-shape history

Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.

AQICN: common questions

Is AQICN free to use?

Yes — AQICN is a free weather API. Free tier: Free tier — API key required. Whether the free tier allows commercial use is unclear — check the provider docs.

Does AQICN need an API key?

Yes — AQICN needs a free API key, which you pass on each request. Rate limits: Unpublished.

Can I call AQICN from the browser?

Not directly — AQICN doesn't send browser-friendly CORS headers, so call it from a server or proxy instead. Copy the curl or Python snippet on this page to get started.

Is AQICN up right now?

As of our last scheduled check, AQICN is healthy with 100% uptime over 90 days and a 224 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.