Air Quality API
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
API качества воздуха.
Сервис: airquality.googleapis.com.
Для вызова этой службы мы рекомендуем использовать клиентские библиотеки Google. Если вашему приложению необходимо использовать собственные библиотеки для вызова этой службы, используйте следующую информацию при отправке запросов API.
Конечная точка службы
Конечная точка службы — это базовый URL-адрес, указывающий сетевой адрес службы 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. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 UTC.
[null,null,["Последнее обновление: 2025-07-29 UTC."],[[["\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. |"]]