Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Live data · IQAir

City Air Quality

Paste an IQAir city link to read the live AQI, main pollutant and concentrations, weather and the hourly and daily air quality forecast.

  • $0.01 mỗi lần chạy
  • Dữ liệu trực tiếp
  • Không cần tài khoản IQAir
  • Bao gồm JSON thô

Live data · IQAir

Một bản ghi, mọi trường công khai

Bản ghi được trình bày như một hồ sơ, với mọi trường dạng scalar mà API trả về. Mỗi lần chạy cũng trả về phản hồi thô của API và bản xuất JSON.

Cách hoạt động

  1. 01

    Paste an IQAir city link

    Paste a city address from iqair.com into IQAir city link, such as iqair.com/usa/new-york/new-york-city. You can also type the last three parts as country/state/city. The tool needs exactly a country, state and city in the path; other text is rejected before sending.

  2. 02

    Look up iqair/city-air-quality

    SandBase splits the link into country, state and city slugs and sends them to iqair/city-air-quality, with no other parameters. The run is billed to your SandBase account once your organization's daily free quota has been used.

  3. 03

    Read AQI, pollutants and forecast

    The page shows the live AQI, main pollutant and concentrations, weather and the hourly and daily air quality forecast as labelled fields, with a field count. The complete iqair/city-air-quality JSON is under Raw API response.

Ai sử dụng

  • Runners

    Pick a clean-air hour.

  • Parents

    Check before school pickup.

  • Travelers

    Compare cities.

Dữ liệu IQAir với một API

Công cụ này gọi một SandBase API. Gọi cùng API đó từ code hoặc Agent của bạn bằng khóa SandBase của bạn, tính phí theo mỗi lần gọi ($0.01 giá niêm yết).

cURL

curl -X POST https://api.sandbase.ai/v1/api/iqair/city-air-quality \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "country": "usa",
  "state": "new-york",
  "city": "new-york-city"
}'

Câu hỏi thường gặp

Which link do I paste into City Air Quality?

An iqair.com city address. Search the city on iqair.com and copy it, such as iqair.com/usa/new-york/new-york-city.

What AQI scale does City Air Quality use?

The US EPA AQI. On that scale, City Air Quality readings from 0 to 50 are good, 51 to 100 moderate, and above 150 unhealthy.

Can City Air Quality look up a city by name?

No. City Air Quality needs the country, state and city slugs from an IQAir link.

Does City Air Quality include a forecast?

Yes. City Air Quality shows the hourly and daily air quality forecast with the current reading.

Is City Air Quality free on iqair/city-air-quality?

Partly. City Air Quality spends the shared daily free quota first: 100 calls per organization per day, reset at 00:00 UTC. Then iqair/city-air-quality runs are billed to your SandBase account at the price on the page and in sandbase inspect. Pricing: https://www.sandbase.ai/pricing

Can I get IQAir city data from the iqair/city-air-quality API?

Yes. Send POST /v1/api/iqair/city-air-quality with a SandBase API key and country, state and city. City Air Quality shows the request example.