Air Quality API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Air Quality API。
服务:airquality.googleapis.com
要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用需要使用您自己的库来调用此服务,则在发出 API 请求时应使用以下信息。
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://airquality.googleapis.com
方法 |
lookup |
POST /v1/currentConditions:lookup
“当前天气状况”端点提供 100 多个国家/地区的每小时空气质量信息,最高可达到 500 x 500 米的分辨率。 |
方法 |
lookup |
POST /v1/forecast:lookup
返回指定时间范围内特定位置的空气质量预报。 |
方法 |
lookup |
POST /v1/history:lookup
返回指定时间范围内特定位置的空气质量历史记录。 |
方法 |
lookupHeatmapTile |
GET /v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}
返回一个字节数组,其中包含图块 PNG 图片的数据。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[[["\u003cp\u003eThe Air Quality API provides access to current, forecast, and historical air quality data.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can retrieve hourly air quality information for numerous locations worldwide.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers endpoints for querying air quality forecasts and historical records within specific timeframes.\u003c/p\u003e\n"],["\u003cp\u003eIt includes functionality to access heatmap tiles for visualizing air quality data on maps.\u003c/p\u003e\n"],["\u003cp\u003eThe service is accessible through the endpoint \u003ccode\u003ehttps://airquality.googleapis.com\u003c/code\u003e and is best utilized with Google-provided client libraries.\u003c/p\u003e\n"]]],[],null,["# Air Quality API\n\nThe Air Quality API.\n\n- [REST Resource: v1.currentConditions](#v1.currentConditions)\n- [REST Resource: v1.forecast](#v1.forecast)\n- [REST Resource: v1.history](#v1.history)\n- [REST Resource: v1.mapTypes.heatmapTiles](#v1.mapTypes.heatmapTiles)\n\nService: airquality.googleapis.com\n----------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://airquality.googleapis.com`\n\nREST Resource: [v1.currentConditions](/maps/documentation/air-quality/reference/rest/v1/currentConditions)\n----------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [lookup](/maps/documentation/air-quality/reference/rest/v1/currentConditions/lookup) | `POST /v1/currentConditions:lookup` The Current Conditions endpoint provides hourly air quality information in more than 100 countries, up to a 500 x 500 meters resolution. |\n\nREST Resource: [v1.forecast](/maps/documentation/air-quality/reference/rest/v1/forecast)\n----------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [lookup](/maps/documentation/air-quality/reference/rest/v1/forecast/lookup) | `POST /v1/forecast:lookup` Returns air quality forecast for a specific location for a given time range. |\n\nREST Resource: [v1.history](/maps/documentation/air-quality/reference/rest/v1/history)\n--------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|\n| [lookup](/maps/documentation/air-quality/reference/rest/v1/history/lookup) | `POST /v1/history:lookup` Returns air quality history for a specific location for a given time range. |\n\nREST Resource: [v1.mapTypes.heatmapTiles](/maps/documentation/air-quality/reference/rest/v1/mapTypes.heatmapTiles)\n------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| [lookupHeatmapTile](/maps/documentation/air-quality/reference/rest/v1/mapTypes.heatmapTiles/lookupHeatmapTile) | `GET /v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}` Returns a bytes array containing the data of the tile PNG image. |"]]