World Air Quality Index (WAQI) · Example Payload

City Feed Response

Air QualityAQIEnvironmentPollutionReal-Time DataWeatherIoTOpen Data

City Feed Response is an example object payload from World Air Quality Index (WAQI), with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

statusdata

Example Payload

Raw ↑
{
  "status": "ok",
  "data": {
    "aqi": 68,
    "idx": 1437,
    "attributions": [
      {
        "url": "http://www.semc.gov.cn/aqi/",
        "name": "Shanghai Environmental Monitoring Center",
        "logo": "China-Shanghai-EPB.png"
      },
      {
        "url": "https://waqi.info/",
        "name": "World Air Quality Index Project"
      }
    ],
    "city": {
      "geo": [31.2047372, 121.4489017],
      "name": "Shanghai",
      "url": "https://aqicn.org/city/shanghai"
    },
    "dominentpol": "pm25",
    "iaqi": {
      "co": {"v": 4},
      "no2": {"v": 11.3},
      "o3": {"v": 38.3},
      "pm10": {"v": 56},
      "pm25": {"v": 68},
      "so2": {"v": 2.3},
      "t": {"v": 8},
      "h": {"v": 72},
      "p": {"v": 1021},
      "w": {"v": 3.1},
      "wg": {"v": 4.6}
    },
    "time": {
      "s": "2024-01-15 12:00:00",
      "tz": "+08:00",
      "v": 1705320000,
      "iso": "2024-01-15T12:00:00+08:00"
    },
    "forecast": {
      "daily": {
        "o3": [
          {"avg": 21, "day": "2024-01-14", "max": 29, "min": 17},
          {"avg": 18, "day": "2024-01-15", "max": 24, "min": 13},
          {"avg": 22, "day": "2024-01-16", "max": 31, "min": 16},
          {"avg": 25, "day": "2024-01-17", "max": 34, "min": 18}
        ],
        "pm10": [
          {"avg": 38, "day": "2024-01-14", "max": 47, "min": 30},
          {"avg": 56, "day": "2024-01-15", "max": 72, "min": 44},
          {"avg": 45, "day": "2024-01-16", "max": 58, "min": 35},
          {"avg": 33, "day": "2024-01-17", "max": 42, "min": 25}
        ],
        "pm25": [
          {"avg": 55, "day": "2024-01-14", "max": 68, "min": 44},
          {"avg": 68, "day": "2024-01-15", "max": 82, "min": 59},
          {"avg": 61, "day": "2024-01-16", "max": 75, "min": 50},
          {"avg": 47, "day": "2024-01-17", "max": 58, "min": 38}
        ],
        "uvi": [
          {"avg": 1, "day": "2024-01-14", "max": 2, "min": 0},
          {"avg": 1, "day": "2024-01-15", "max": 3, "min": 0},
          {"avg": 2, "day": "2024-01-16", "max": 4, "min": 0},
          {"avg": 1, "day": "2024-01-17", "max": 3, "min": 0}
        ]
      }
    },
    "debug": {
      "sync": "2024-01-15T12:05:00+09:00"
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/city-feed-response"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.