IQAir World Air Quality
https://api.sandbase.ai/v1/api/iqair/world-air-qualityGlobal air quality overview returning the top 15 most polluted and top 15 cleanest major cities worldwide. Each city entry includes current AQI, geographic identifiers, and a URL slug path usable with.
- ราคา
- $0.01USD / คำขอ
- Method
- POST
- การตอบกลับ
- Async JSON
- พารามิเตอร์
- 0 จำเป็น · 0 ไม่บังคับ
Playground
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
API README
IQAir World Air Quality
Global air quality overview returning the top 15 most polluted and top 15 cleanest major cities worldwide. Each city entry includes current AQI, geographic identifiers, and a URL slug path usable with.
Request
curl -X POST "https://api.sandbase.ai/v1/api/iqair/world-air-quality" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
This API runs asynchronously. The call returns a task id with status pending; poll GET https://api.sandbase.ai/v1/run/{id} until status is completed and read the result from outputs[0].data.
Parameters
This API takes no parameters.
Pricing
Flat price per call. Failed calls are not charged.
เริ่มสร้าง
ส่งคำขอแรกของคุณ
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/iqair/world-air-quality" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. การยืนยันตัวตน
ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
3. พารามิเตอร์
ยังไม่มีการเผยแพร่ schema ของพารามิเตอร์สำหรับ API นี้
4. การตอบกลับ
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
APIs ที่เกี่ยวข้อง
| API | ราคา | การตอบกลับ |
|---|---|---|
IQAir World Air QualityAPI นี้ IQAir | $0.01 ต่อการเรียก | Async JSON |
IQAir | $0.01 ต่อการเรียก | Async JSON |
IQAir | $0.01 ต่อการเรียก | Async JSON |
IQAir | $0.01 ต่อการเรียก | Async JSON |
คำถาม
คำถามที่พบบ่อย
ฉันจะใช้ IQAir World Air Quality API ได้อย่างไร?
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/iqair/world-air-quality โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
IQAir World Air Quality API ราคาเท่าไร?
$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
IQAir World Air Quality API รับพารามิเตอร์อะไรบ้าง?
IQAir World Air Quality ไม่รับพารามิเตอร์อินพุต ส่ง JSON body ว่างเปล่า
IQAir World Air Quality API ส่งคืนอะไร?
ผลลัพธ์ JSON จุดเชื่อมต่อนี้ทำงานแบบอะซิงโครนัส ดังนั้นการตอบกลับจะบอกวิธีดึงผลลัพธ์ที่เสร็จแล้ว
ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ IQAir ไหม?
ไม่จำเป็น IQAir World Air Quality ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง IQAir API แยกต่างหาก
