Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

IQAir Live City Ranking

APIドキュメント
https://api.sandbase.ai/v1/api/iqair/live-city-ranking

Real-time global city air quality rankings sorted by AQI descending. Returns up to 122 major cities with current AQI values, geographic metadata, and follower counts.

料金
$0.01USD / 回
メソッド
POST
レスポンス
非同期 JSON
パラメータ
必須 0 件 · 任意 0 件

プレイグラウンド

入力
利用可能な入力スキーマがありません
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

IQAir Live City Ranking

Returns a ranked list of major cities with their current air quality index (AQI), sorted from highest AQI to lowest. The API takes no input. Each row includes the city, state, country, follower count and a page path for the city.

Use cases

  • Show a live list of the most polluted cities in a dashboard or news widget.
  • Compare the current AQI of cities in different countries in one call.
  • Pick the most followed cities to decide which ones to track in more detail.
  • Build a list of city page paths to pass to a city-level air quality lookup.

Request

curl -X POST "https://api.sandbase.ai/v1/api/iqair/live-city-ranking" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "citiesData": [
      {
        "aqi": 236,
        "city": "Lahore",
        "country": "Pakistan",
        "flagURL": "https://cdn.airvisual.net/flags/pakistan.jpg",
        "followersCount": 1139595,
        "id": "Dt8HhEj6mC2eatyBr",
        "rank": 1,
        "state": "Punjab",
        "updatedAt": "2026-11-03T07:00:00.000Z",
        "url": "/pakistan/punjab/lahore"
      }
    ],
    "updatedAt": "2026-11-03T07:00:00.000Z"
  },
  "status": "success"
}

Response fields

FieldMeaning
data.citiesData[].rankPosition of the city in the list. Rank 1 has the highest aqi.
data.citiesData[].aqiCurrent air quality index value for the city. A higher number means worse air.
data.citiesData[].city / data.citiesData[].state / data.citiesData[].countryName of the city, its state or region, and its country.
data.citiesData[].idIdentifier of the city record.
data.citiesData[].urlPath of the city page, built as /country/state/city in lowercase with dashes.
data.citiesData[].followersCountNumber of followers the city has.
data.citiesData[].flagURLLink to the country flag image.
data.citiesData[].updatedAt / data.updatedAtTimestamp of the reading for the city and for the whole list. Both are ISO 8601 strings in UTC.
statusShows success when the call worked.

Notes

  • The request body is an empty object {}. There is no pagination parameter.
  • The url value gives the country, state and city slugs. Use them with IQAir City Air Quality for a single city.
  • For a map-based view of stations, see IQAir Map Data.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
IQAir$0.01 / 回非同期 JSON
IQAir$0.01 / 回非同期 JSON
IQAir$0.01 / 回非同期 JSON
IQAir$0.01 / 回非同期 JSON

質問

FAQ

IQAir Live City Ranking API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/iqair/live-city-ranking に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

IQAir Live City Ranking API の料金はいくらですか?

1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

IQAir Live City Ranking API はどのパラメータを受け付けますか?

IQAir Live City Ranking は入力パラメータを取りません。空の JSON ボディを送信してください。

IQAir Live City Ranking API は何を返しますか?

JSON 結果です。このエンドポイントは非同期で実行されるため、レスポンスには完了した結果の取得方法が含まれます。 このページの README にサンプルレスポンスがあります。

IQAir の開発者アカウントまたは API key は必要ですか?

いいえ。IQAir Live City Ranking は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。IQAir の API アクセスを別途申請する必要はありません。