ภาพรวม Air Quality API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Air Quality API ช่วยให้คุณขอข้อมูลคุณภาพอากาศสำหรับสถานที่ตั้งที่เฉพาะเจาะจงได้
รวมถึงดัชนีคุณภาพอากาศ (AQI) มลพิษ และคำแนะนำด้านสุขภาพกว่า 70 รายการ
โดยครอบคลุมกว่า 100 ประเทศด้วยความละเอียด 500 x 500 เมตร
เหตุใดจึงต้องใช้ Air Quality API
API มีปลายทางที่ให้คุณค้นหาข้อมูลต่อไปนี้
- สภาพอากาศปัจจุบัน: ข้อมูลคุณภาพอากาศแบบเรียลไทม์รายชั่วโมง
- ประวัติรายชั่วโมง: ประวัติคุณภาพอากาศของสถานที่หนึ่งๆ ในช่วงเวลาที่กำหนด โดยมีระยะเวลาสูงสุด 30 วัน
- ฮีตแมป: ไทล์ที่เข้ารหัสสีของดัชนีและสารมลพิษต่างๆ
- การพยากรณ์รายชั่วโมง: สภาพคุณภาพอากาศในอนาคตสำหรับสถานที่ที่เฉพาะเจาะจง
สูงสุด 96 ชั่วโมง (4 วัน)
ฟีเจอร์ของ Air Quality API
- ดัชนีและหมวดหมู่คุณภาพอากาศแบบเรียลไทม์: Air Quality API
จะคำนวณค่าดัชนีคุณภาพอากาศต่างๆ อย่างต่อเนื่องด้วยความละเอียด 500 x
500 เมตร
- คำแนะนำด้านสุขภาพ: คำแนะนำด้านสุขภาพที่อิงตามการวิจัยหลายร้อยรายการสำหรับบุคคลทั่วไปและกลุ่มที่ไวต่อมลพิษทางอากาศ ซึ่งรวมถึง
เด็ก ผู้สูงอายุ สตรีมีครรภ์ นักกีฬา และผู้ที่เป็นโรคหอบหืดหรือโรคหัวใจ
- รายละเอียดสารมลพิษ: ข้อมูลเชิงลึกเกี่ยวกับสารมลพิษต่างๆ
โดยเน้นสารมลพิษหลัก ความเข้มข้น แหล่งที่มา และผลกระทบ
- ประวัติรายชั่วโมง: ประวัติคุณภาพอากาศของสถานที่ที่เฉพาะเจาะจงในช่วงเวลาที่กำหนด การตอบกลับแต่ละครั้งอาจรวมถึงดัชนีคุณภาพอากาศรายชั่วโมง
ข้อมูลสารมลพิษ และคำแนะนำด้านสุขภาพเป็นเวลาสูงสุด 720 ชั่วโมง (30 วัน)
- ฮีตแมป: ฮีตแมปคือชุดของดัชนี AQ และภาพมลพิษ
ไทล์ที่แสดงบน Google Maps ได้
หากที่อยู่สำหรับการเรียกเก็บเงินอยู่ในเขตเศรษฐกิจยุโรป (EEA) คุณอาจ
แสดงฮีตแมปบนแผนที่ใดก็ได้
ดูข้อมูลเพิ่มเติม
- พยากรณ์อากาศรายชั่วโมง: สภาพคุณภาพอากาศในอนาคตสำหรับสถานที่ที่เฉพาะเจาะจง
และสำหรับช่วงเวลาที่กำหนดหรือสำหรับชั่วโมงใดชั่วโมงหนึ่งในอนาคต สูงสุด 96
ชั่วโมง (4 วัน) การตอบกลับแต่ละครั้งอาจมีดัชนีพยากรณ์คุณภาพอากาศรายชั่วโมง
ข้อมูลสารมลพิษ และคำแนะนำที่นำไปใช้ได้จริง
วิธีการทำงานของ Air Quality API
Air Quality API มีเมธอดต่อไปนี้
currentConditions: ปลายทาง currentConditions
ให้ข้อมูลคุณภาพอากาศรายชั่วโมงปัจจุบัน
history: ปลายทาง
history
ให้ข้อมูลคุณภาพอากาศรายชั่วโมงในอดีตสำหรับสถานที่ตั้งที่เฉพาะเจาะจงในช่วงเวลาที่กำหนด โดยมีระยะเวลาสูงสุด 30 วัน
heatmapTiles: heatmapTiles
ปลายทางจะแสดงฮีตแมปที่เกี่ยวข้องกับคุณภาพอากาศผ่านการวางซ้อนไทล์
พยากรณ์: ปลายทาง forecast
จะให้ข้อมูลคุณภาพอากาศในอนาคตรายชั่วโมงสำหรับ
สถานที่ตั้งที่เฉพาะเจาะจงในช่วงเวลาที่กำหนด โดยมีระยะเวลาสูงสุด 96 ชั่วโมง (4 วัน)
ความครอบคลุมของประเทศและภูมิภาคที่ใช้ Air Quality API
ดูรายละเอียดความครอบคลุมล่าสุดแบบทีละประเทศสำหรับข้อมูลคุณภาพอากาศ (AQI) และข้อมูลคุณภาพอากาศในพื้นที่ (LAQI) ที่พร้อมใช้งานได้ที่ประเทศที่รองรับ Air Quality API และ AQI ที่พร้อมใช้งาน
วิธีใช้ Air Quality API
ขั้นตอนถัดไป
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eThe Air Quality API provides access to real-time, historical, and forecasted air quality data for over 100 countries with a resolution of 500 x 500 meters.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve current conditions, hourly history (up to 30 days), heatmaps, and hourly forecasts (up to 96 hours) using the API.\u003c/p\u003e\n"],["\u003cp\u003eThe API includes various air quality indexes, health recommendations, pollutant details, and heatmap tile overlays.\u003c/p\u003e\n"],["\u003cp\u003eCoverage details and available air quality indexes vary by country and region, so refer to the provided resources for specific information.\u003c/p\u003e\n"],["\u003cp\u003eTo use the Air Quality API, you need to set up a Google Cloud project and then utilize the provided endpoints and documentation to retrieve air quality data.\u003c/p\u003e\n"]]],["The Air Quality API provides real-time and historical air quality data, forecasts, and heatmaps for over 100 countries with 500x500 meter resolution. Key actions include querying current conditions, accessing up to 30 days of hourly history, viewing color-coded heatmap tiles, and obtaining up to 96-hour hourly forecasts. The API delivers information on 70+ AQIs, pollutants, and health recommendations for various groups, leveraging methods such as `currentConditions`, `history`, `heatmapTiles`, and `forecast`.\n"],null,["The Air Quality API lets you request air quality data for a specific location,\nincluding over 70 air quality indexes (AQIs), pollutants, and health\nrecommendations. It covers over 100 countries with a resolution of 500 x 500\nmeters.\n\nWhy use the Air Quality API\n\nThe API provides endpoints that let you query:\n\n- **Current Conditions:** Real-time hourly air quality information.\n- **Hourly History:** Air quality history for a specific location, for a given time range, up to a maximum of 30 days.\n- **Heatmaps:** Color coded tiles of various indexes and pollutants.\n- **Hourly Forecast:** Future air quality conditions for a specific location, up to 96 hours (4 days).\n\nFeatures of the Air Quality API\n\n- **Real-time air quality indexes and categories:** The Air Quality API continuously calculates the value of various air quality indexes with 500 x 500 meters resolution.\n- **Health recommendations:** Hundreds of research-backed health recommendations for the general public and sensitivity groups including: children, elderly, pregnant women, athletes and those with asthma or heart conditions.\n- **Pollutant details:** In-depth information about different pollutants, highlighting the dominant pollutant, concentrations, sources and effects.\n- **Hourly history:** Air quality history for a specific location for a given time range. Each response potentially includes hourly air quality indexes, pollutant data, and health recommendations for a maximum of 720 hours (30 days).\n- **Heatmaps:** Heatmaps are a collection of AQ indexes and pollutants image tiles that can be displayed on top of a Google Map. If your billing address is in the European Economic Area (EEA), you may display heatmaps on top of any map. [Learn more](/maps/comms/eea/faq#tos-updates).\n- **Hourly forecast:** Future air quality conditions for a specific location, and for a given time range or for a particular hour in the future, up to 96 hours (4 days). Each response potentially includes hourly air quality forecast indexes, pollutant data and actionable recommendations.\n\nHow the Air Quality API works\n\nThe Air Quality API has the following methods:\n\n- **currentConditions** : The\n [`currentConditions`](/maps/documentation/air-quality/reference/rest/v1/currentConditions/lookup) endpoint\n provides current hourly air quality information.\n\n- **history** : The\n [`history`](/maps/documentation/air-quality/reference/rest/v1/history/lookup) endpoint provides\n historical hourly air quality information for a specific location, for a\n given time range, up to a maximum of 30 days.\n\n- **heatmapTiles** : The [`heatmapTiles`](/maps/documentation/air-quality/reference/rest/v1/mapTypes.heatmapTiles/lookupHeatmapTile)\n endpoint provides air quality related heatmaps through a tile overlay.\n\n- **forecast** : The [`forecast`](/maps/documentation/air-quality/reference/rest/v1/forecast/lookup)\n endpoint provides hourly future air quality information for a specific\n location, for a given time range, up to a maximum of 96 hours (4 days).\n\nAir Quality API country and region coverage\n\nSee [Air Quality API supported countries and available AQIs](/maps/documentation/air-quality/coverage) for the\nlatest coverage details, on a country-by-country basis, for which air quality\ninformation (AQI) and local air quality information (LAQI) is available.\n\nHow to use the Air Quality API\n\n|---|-------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Get set up** | Start with [Set up your Google Cloud project](/maps/documentation/air-quality/cloud-setup) and complete the instructions that follow. |\n| 2 | **Get current hourly air quality information** | See [Current conditions](/maps/documentation/air-quality/current-conditions). |\n| 3 | **Get hourly air-quality history** | See [History](/maps/documentation/air-quality/history). |\n| 4 | **Get air quality related heatmaps through a tile overlay** | See [Heatmaps](/maps/documentation/air-quality/heatmaps). |\n| 5 | **Get hourly air quality forecast information** | See [Forecast](/maps/documentation/air-quality/forecast). |\n\nWhat's next\n\n- [Set up your Google Cloud project](/maps/documentation/air-quality/cloud-setup)\n- [Get current conditions](/maps/documentation/air-quality/current-conditions)\n- [Get hourly history](/maps/documentation/air-quality/history)\n- [Get heatmaps](/maps/documentation/air-quality/heatmaps)\n- [Get hourly forecast](/maps/documentation/air-quality/forecast)"]]