The Air Quality API lets you request air quality information including indexes, pollutants, and health recommendations for a specific location. The API provides endpoints that let you query:
This example shows a request to get the current air quality conditions for central Paris (48.857456, 2.354611) using the default request parameters settings.
Both request made with default and customized settings are counted as a single object, regardless of the number of features included in the original query.
Dictionary of available pollutants at the requested location.
Note:
This dictionary will be returned only for requests specifies the features parameter, and set it up with at least one of these options:
sources_and_effects
dominant_pollutant_concentrations
pollutants_concentrations
pollutants_aqi_information and breezometer_aqi
The specific pollutants returned under this dictionary, are based on the logic of the features specified in the request.
For the logic of each of the features, see Features List
Show child fields
display_name
string
The pollutant name as an acronym. For chemical compounds, this is the chemical formula (Example: SO2 )
full_name
string
Full pollutant name. For chemical compounds, this is the IUPAC name (Example: Sulfur Dioxide)
aqi_information
object
Dictionary containing BreezoMeter Air Quality Index (baqi) data for each of the six returned pollutants, that the index is based on.
For the list of the pollutants the index is based on, see Pollutants List
Note:Data provided for six common pollutants. If other pollutants are included in the response, this field returns null
Show child fields
display_name
string
Index name
aqi
integer
Index numeric score
Note:
This field should be used for calculations, graph display, etc. While for displaying the index score, you should use the aqi_display field
aqi_display
string
Textual representation of the index numeric score
Note:
This field should be used when you want to display the index score
color
string
Hexadecimal color code representing the index numeric score
category
string
Textual interpretation of the index numeric score
concentration
object
Concentration information for each pollutant in the returned response
Show child fields
value
float
Value of pollutant concentration
units
string
Units for measuring this pollutant concentration
sources_and_effects
object
Sources and effects information for each pollutant in the returned response
Show child fields
sources
string
Text representing the pollutant main emission sources
effects
string
Text representing the pollutant main health effects
health_recommendations
object
Object containing BreezoMeter health advice and recommended actions relates to the reported air quality conditions. Recommendations are tailored for at risk populations and groups with greater sensitivities to pollutants than the general population
Show child fields
general_population
string
No specific sensitivities
elderly
string
Retirees and people older than the general population
lung_diseases
string
Respiratory related problems and asthma suffers
heart_diseases
string
Heart and circulatory system diseases
active
string
Sports and other strenuous outdoor activities
pregnant_women
string
Women at all stages of pregnancy
children
string
Younger populations including children,toddlers, and babies
Returns hourly air-quality forecasts for the specified location. Each forecast includes hourly air quality indexes, pollutant data, and health recommendations for a maximum of 96 hours (4 days).
To request hourly forecasts over a defined time period, use this URL and set the start_datetime and end_datetime to indicate the time and dates the period starts and ends:
The URLs in the following examples do not include the feature parameter, therefore the default dataset is returned in the API response.
TIP
Notes:
Each example request is being sent now, on UTC, they request data for central Paris (Latitude:48.857456, Longitude: 2.354611).
The resolution of requests to these endpoint is hourly. This means that received requests round the specified datetime to the previous exact hour. For example a request sent where the datetime parameter is set to will be rounded down to
The response data field is an object or an array of objects, where each of them include the following fields:
TIP
Note:
As in requests to the hourly forecasts endpoint, there is no concern for a missing forecast data, the data_available field is always returned with true value for any of the objects in the response.
datetime
string
ISO 8601 UTC timestamp indicating the time the data refers to
data_available
boolean
True/false indicating whether the expected data is available
indexes
object
Dictionary of two air quality indexes:
BreezoMeter AQI (baqi)
Local AQI set to be the default index for requested location (country)
Dictionary of available pollutants at the requested location.
Note:
This dictionary will be returned only for requests specifies the features parameter, and set it up with at least one of these options:
sources_and_effects
dominant_pollutant_concentrations
pollutants_concentrations
pollutants_aqi_information and breezometer_aqi
The specific pollutants returned under this dictionary, are based on the logic of the features specified in the request.
For the logic of each of the features, see Features List
Show child fields
display_name
string
The pollutant name as an acronym. For chemical compounds, this is the chemical formula (Example: SO2 )
full_name
string
Full pollutant name. For chemical compounds, this is the IUPAC name (Example: Sulfur Dioxide)
aqi_information
object
Dictionary containing BreezoMeter Air Quality Index (baqi) data for each of the six returned pollutants, that the index is based on.
For the list of the pollutants the index is based on, see Pollutants List
Note:Data provided for six common pollutants. If other pollutants are included in the response, this field returns null
Show child fields
display_name
string
Index name
aqi
integer
Index numeric score
Note:
This field should be used for calculations, graph display, etc. While for displaying the index score, you should use the aqi_display field
aqi_display
string
Textual representation of the index numeric score
Note:
This field should be used when you want to display the index score
color
string
Hexadecimal color code representing the index numeric score
category
string
Textual interpretation of the index numeric score
concentration
object
Concentration information for each pollutant in the returned response
Show child fields
value
float
Value of pollutant concentration
units
string
Units for measuring this pollutant concentration
sources_and_effects
object
Sources and effects information for each pollutant in the returned response
Show child fields
sources
string
Text representing the pollutant main emission sources
effects
string
Text representing the pollutant main health effects
health_recommendations
object
Object containing BreezoMeter health advice and recommended actions relates to the reported air quality conditions. Recommendations are tailored for at risk populations and groups with greater sensitivities to pollutants than the general population
Show child fields
general_population
string
No specific sensitivities
elderly
string
Retirees and people older than the general population
lung_diseases
string
Respiratory related problems and asthma suffers
heart_diseases
string
Heart and circulatory system diseases
active
string
Sports and other strenuous outdoor activities
pregnant_women
string
Women at all stages of pregnancy
children
string
Younger populations including children,toddlers, and babies
Returns historical hourly air-quality information for the specified location. Each request includes hourly air quality indexes, pollutant data, and health recommendations for a maximum of 720 hours (30 days).
To request hourly historical data over a defined time period, use this URL and set the start_datetime and end_datetime to indicate the time and dates the period starts and ends:
The URLs in the following examples do not include the feature parameter, therefore the default dataset is returned in the API response.
TIP
Notes:
Each example request is being sent now, on UTC, they request data for central Paris (Latitude:48.857456, Longitude: 2.354611).
The resolution of requests to these endpoint is hourly. This means that received requests round the specified datetime to the previous exact hour. For example a request sent where the datetime parameter is set to will be rounded down to
The response data field is an object or an array of objects, where each of them include the following fields:
TIP
Note:
In case there is a missing data for a specific object (which represents a specific hour), the data_available field in that specific object returns with false, and the rest of the expected root level elements (Indexes, pollutants, and Health_recommendations) returns null
datetime
string
ISO 8601 UTC timestamp indicating the time the data refers to
data_available
boolean
True/false indicating whether the expected data is available
indexes
object
Dictionary of two air quality indexes:
BreezoMeter AQI (baqi)
Local AQI set to be the default index for requested location (country)
Dictionary of available pollutants at the requested location.
Note:
This dictionary will be returned only for requests specifies the features parameter, and set it up with at least one of these options:
sources_and_effects
dominant_pollutant_concentrations
pollutants_concentrations
pollutants_aqi_information and breezometer_aqi
The specific pollutants returned under this dictionary, are based on the logic of the features specified in the request.
For the logic of each of the features, see Features List
Show child fields
display_name
string
The pollutant name as an acronym. For chemical compounds, this is the chemical formula (Example: SO2 )
full_name
string
Full pollutant name. For chemical compounds, this is the IUPAC name (Example: Sulfur Dioxide)
aqi_information
object
Dictionary containing BreezoMeter Air Quality Index (baqi) data for each of the six returned pollutants, that the index is based on.
For the list of the pollutants the index is based on, see Pollutants List
Note:Data provided for six common pollutants. If other pollutants are included in the response, this field returns null
Show child fields
display_name
string
Index name
aqi
integer
Index numeric score
Note:
This field should be used for calculations, graph display, etc. While for displaying the index score, you should use the aqi_display field
aqi_display
string
Textual representation of the index numeric score
Note:
This field should be used when you want to display the index score
color
string
Hexadecimal color code representing the index numeric score
category
string
Textual interpretation of the index numeric score
concentration
object
Concentration information for each pollutant in the returned response
Show child fields
value
float
Value of pollutant concentration
units
string
Units for measuring this pollutant concentration
sources_and_effects
object
Sources and effects information for each pollutant in the returned response
Show child fields
sources
string
Text representing the pollutant main emission sources
effects
string
Text representing the pollutant main health effects
health_recommendations
object
Object containing BreezoMeter health advice and recommended actions relates to the reported air quality conditions. Recommendations are tailored for at risk populations and groups with greater sensitivities to pollutants than the general population
Show child fields
general_population
string
No specific sensitivities
elderly
string
Retirees and people older than the general population
lung_diseases
string
Respiratory related problems and asthma suffers
heart_diseases
string
Heart and circulatory system diseases
active
string
Sports and other strenuous outdoor activities
pregnant_women
string
Women at all stages of pregnancy
children
string
Younger populations including children,toddlers, and babies
You can customize any API request to only include the data you need for your software. This allows you to save bandwidth and decrease response time by requesting less information. You customize request data returned using the features parameter to define the feature or list of features to include in the response.
Here are the various supported features and details on each of them.
Feature
Description
breezometer_aqi
BreezoMeter air quality index, including its value, color, category, and the dominant pollutant according to that index.
This data is located in the data > indexes > baqi object
The response includes these fields: display_name, aqi, aqi_display, color, category, and dominant_pollutant
Note: BreezoMeter Air Quality Index (BAQI), is a globally unified index that uses a scale of 0 (Poor) to 100 (Excellent). BAQI simplifies comparing air quality between countries. For more information, see BreezoMeter AQI(opens new window)
local_aqi
Local (national) air quality index for the requested location (country), including its value, color, category, and the dominant pollutant according to that index.This data is located in the data > indexes > {index code} object
The response includes these fields: display_name, aqi, aqi_display, color, category, and dominant_pollutant
Note: BreezoMeter supports more than 55 official local indexes.
health_recommendations
BreezoMeter health advice and recommended actions for current AQI conditions. Recommendations are tailored for the general population, and six at risk populations and groups with greater sensitivities to pollutants than the general population
This data is located in the data > indexes > health_recommendations object
The response includes these recommendations: general_population, elderly, lung_diseases, heart_diseases, active, pregnant_women, and children
Here are the rest of the features, all of which return information on pollutants
TIP
Note:
If you include in your request any of the following features, the display_name and full_name data fields will also be returned under each of the relevant pollutants as part of the response
Feature
Description
sources_and_effects
Sources and effects for each of the pollutants returned in the response
This data is located in the data > pollutants > {pollutant code} > sources_and_effects object
The response includes these fields: sources, effects
dominant_pollutant_concentrations
Concentrations of the dominant pollutants measured according to BreezoMeter and/or local indexes
This data is located in the data > pollutants > {pollutant code} > concentration object
The response includes these fields: value, units
Note: If the request specified both the breezometer_aqi and the local_aqi features, there may be upto two {pollutant code} returned with concentration object
pollutants_concentrations
Concentrations of all pollutants with available measurements according to BreezoMeter and/or local indexes
This data is located in the data > pollutants > {pollutant code} > concentration object
The response includes these fields: value, units
pollutants_aqi_information
Detailed BreezoMeter index information for each of the six common pollutants the index is based on. It describes the severity of each pollutants with the relevant value, color, and category.
This data is located in the data > pollutants > {pollutant code} > aqi_information > baqi object
The response includes these fields: display_name, aqi, aqi_display, color, and category
Note: This feature can only be used for requests that specified the breezometer_aqi feature as well
Any request to an API endpoint can return metadata that describes the original request. You request metadata by including the metadata parameter in your request with the value true. When excluding the metadata parameter, or setting it to false, the metadata field returns null.
When requested, it has slightly different structure, depending on the request type.
Requests for a specific date and time return a single object, and a metadata object with a single timestamp. This example shows a request to the hourly forecast endpoint for a specific date and time that returns metadata:
Requests for the next number of hours or time period return an array of objects, and a metadata object with a range of timestamps. This example shows a request to the hourly forecast API endpoint for the next three hours that returns metadata:
The BreezoMeter API supports various pollutants, which it make accessible through the different air quality endpoints. Pollutants availability is subject to actual measurements and reports available for BreezoMeter to use, and is changing between different locations.
Here are the various pollutants codes and their metadata we might return:
The BreezoMeter API supports over 50 different air quality indexes, including its own BreezoMeter Air Quality Index.
Here are the various indexes codes and their metadata we might return:
Code
Display Name
Best Value
Worst Value
Categories
Pollutants
For your convenience, you can download a JSON file with the above indexes metadata. The metadata available in
any of the languages supported by the BreezoMeter API.
The Breezometer AQI color value supports multiple palettes, while the returned value will be set according to one of the following:
red_green (default)
indiper_dark - Our new indiper color palette, adapted for dark color backgrounds.
indiper_light - Our new indiper color palette, adapted for light color backgrounds.
The required palette can be set as an additional parameter within the different air quality endpoints.
For example, to get the Current Conditions air quality with the “indiper_dark” color palette, concatenate the following API request: https://api.breezometer.com/air-quality/v2/current-conditions?lat={latitude}&lon={longitude}&key=YOUR_API_KEY&features={Features_List}&breezometer_aqi_color=indiper_dark