Custom Connector

AirQuality Connector

Global

The AirQuality Connector facilitates seamless integration with the OpenAQ API, providing access to real-time and historical air quality data from sensors worldwide. It acts as a proxy supporting instruments, locations, manufacturers, licenses, parameters, countries, sensors, measurements, owners, providers, and flags.

Type
Virtual machines, Single VM, BYOL
Runs on
Google Compute Engine
Last update
24 Oct 2024
Category
Integration
Overview

Integration Overview

This document provides a detailed guide for each integration point, its purpose, configuration, and workflow support using the AirQuality Connector.

  • getInstrumentById. Retrieves a specific instrument by ID.
  • getInstruments. Retrieves a list of instruments.
  • getInstrumentsByManufacturerId. Retrieves instruments for a manufacturer.
  • getLocationById. Retrieves a specific location by ID.
  • getLocations. Retrieves locations with filtering (coordinates, radius, country).
  • getLicenseById. Retrieves a specific license by ID.
  • getLicenses. Retrieves a list of licenses.
  • getParameterById. Retrieves a specific parameter by ID.
  • getParameters. Retrieves parameters, filterable by type or location.
  • getCountryById. Retrieves a specific country by ID.
  • getCountries. Retrieves a list of countries.
  • getManufacturerById. Retrieves a specific manufacturer by ID.
  • getManufacturers. Retrieves a list of manufacturers.
  • getMeasurementsBySensorId. Retrieves measurements for a sensor.
  • getHourlyMeasurementsBySensorId. Retrieves hourly measurements for a sensor.
  • getDailyMeasurementsBySensorId. Retrieves daily measurements for a sensor.
  • getHourlyDataBySensorId. Retrieves hourly data for a sensor.
  • getDailySummariesFromHourlyBySensorId. Daily summaries of hourly data.
  • getMonthlySummariesFromHourlyBySensorId. Monthly summaries of hourly data.
  • getYearlySummariesFromHourlyBySensorId. Yearly summaries of hourly data.
  • getHourOfDaySummariesBySensorId. Measurements by hour of day.
  • getDayOfWeekSummariesBySensorId. Measurements by day of week.
  • getMonthOfYearSummariesBySensorId. Measurements by month of year.
  • getDayOfWeekSummariesFromDailyBySensorId. Day-of-week summaries from daily data.
  • getMonthOfYearSummariesFromDailyBySensorId. Month-of-year summaries from daily data.
  • getDailyDataBySensorId. Retrieves daily data for a sensor.
  • getMonthlySummariesFromDailyBySensorId. Monthly summaries of daily data.
  • getYearlySummariesFromDailyBySensorId. Yearly summaries of daily data.
  • getYearlyDataBySensorId. Retrieves yearly data for a sensor.
  • getOwnerById. Retrieves a specific owner by ID.
  • getOwners. Retrieves a list of owners.
  • getProviderById. Retrieves a specific provider by ID.
  • getProviders. Retrieves providers with filtering.
  • getSensorsByLocationId. Retrieves sensors for a location.
  • getSensorById. Retrieves a specific sensor by ID.
  • getLatestMeasurementsByParameterId. Latest measurements for a parameter.
  • getLatestMeasurementsByLocationId. Latest measurements for a location.
  • getFlagsByLocationId. Flags for a location.
  • getFlagsBySensorId. Flags for a sensor.
Documentation

Detailed Integration Documentation

Instrument Retrieval by ID

ActiongetInstrumentById
PurposeRetrieves detailed information about a specific instrument by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). instruments_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (id, name, isMonitor, manufacturer). Failure: error details (invalid-instrument-id, HTTP 422).
Workflow exampleExecute getInstrumentById with apiKey and the ID, then process the response for display or analysis.

Instruments Retrieval

ActiongetInstruments
PurposeRetrieves a list of instruments with optional sorting and pagination.
ParametersRequired:
apiKey. Optional:
order_by (default id), sort_order (asc/desc), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta (incl. found count) and a results array (id, name, isMonitor, manufacturer). Failure: error details (invalid-request, HTTP 422).
Workflow exampleExecute getInstruments with apiKey and pagination options, then process the list.

Instruments by Manufacturer ID

ActiongetInstrumentsByManufacturerId
PurposeRetrieves detailed information about a specific manufacturer’s instruments by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). manufacturers_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (instrument objects for the manufacturer). Failure: error details (invalid-manufacturer-id, HTTP 422).
Workflow exampleExecute getInstrumentsByManufacturerId with apiKey and the ID, then process the response for display or analysis.

Location Retrieval by ID

ActiongetLocationById
PurposeRetrieves detailed information about a specific location by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). locations_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (id, name, country, coordinates). Failure: error details (invalid-location-id, HTTP 422).
Workflow exampleExecute getLocationById with apiKey and the ID, then process the response for display or analysis.

Locations Retrieval

ActiongetLocations
PurposeRetrieves a list of locations with filtering options such as coordinates, radius, and country.
ParametersRequired:
apiKey. Optional:
coordinates (lat,lon), radius (m, default 1000, max 25000), providers_id, parameters_id, limit, page, owner_contacts_id, manufacturers_id, licenses_id, monitor, mobile, instruments_id, iso, countries_id, bbox.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta (found count) and a results array of location objects (id, name, coordinates, country). Failure: error details (invalid-coordinates, HTTP 422).
Workflow exampleExecute getLocations with apiKey, coordinates, and radius, then display locations within the radius for geospatial analysis.

License Retrieval by ID

ActiongetLicenseById
PurposeRetrieves detailed information about a specific license by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). licenses_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (id, name, commercialUseAllowed, attributionRequired). Failure: error details (invalid-license-id, HTTP 422).
Workflow exampleExecute getLicenseById with apiKey and the ID, then process the response for display or analysis.

Licenses Retrieval

ActiongetLicenses
PurposeRetrieves a list of licenses with optional sorting and pagination.
ParametersRequired:
apiKey. Optional:
order_by (default id), sort_order (asc/desc), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta (incl. found count) and a results array (id, name, commercialUseAllowed). Failure: error details (invalid-request, HTTP 422).
Workflow exampleExecute getLicenses with apiKey and pagination options, then process the list.

Parameter Retrieval by ID

ActiongetParameterById
PurposeRetrieves detailed information about a specific parameter by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). parameters_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (id, name, units, displayName). Failure: error details (invalid-parameter-id, HTTP 422).
Workflow exampleExecute getParameterById with apiKey and the ID, then process the response for display or analysis.

Parameters Retrieval

ActiongetParameters
PurposeRetrieves a list of parameters with filtering by parameter type or location.
ParametersRequired:
apiKey. Optional:
order_by, sort_order, parameter_type (pollutant/meteorological), coordinates, radius, bbox, iso, countries_id, limit, page.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of parameter objects (id, name, units, displayName). Failure: error details (invalid-request, HTTP 422).
Workflow exampleExecute getParameters with apiKey and parameter_type=pollutant, then display available parameters.

Country Retrieval by ID

ActiongetCountryById
PurposeRetrieves detailed information about a specific country by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). countries_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (id, code, name, parameters). Failure: error details (invalid-country-id, HTTP 422).
Workflow exampleExecute getCountryById with apiKey and the ID, then process the response for display or analysis.

Countries Retrieval

ActiongetCountries
PurposeRetrieves a list of countries with filtering options.
ParametersRequired:
apiKey. Optional:
order_by, sort_order, providers_id, parameters_id, limit, page.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of country objects (id, code, name, parameters). Failure: error details (invalid-request, HTTP 422).
Workflow exampleExecute getCountries with apiKey and parameters_id, then display countries with specific parameters.

Manufacturer Retrieval by ID

ActiongetManufacturerById
PurposeRetrieves detailed information about a specific manufacturer by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). manufacturers_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (id, name, instruments). Failure: error details (invalid-manufacturer-id, HTTP 422).
Workflow exampleExecute getManufacturerById with apiKey and the ID, then process the response for display or analysis.

Manufacturers Retrieval

ActiongetManufacturers
PurposeRetrieves a list of manufacturers with sorting and pagination.
ParametersRequired:
apiKey. Optional:
order_by (default id), sort_order (asc/desc), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta (incl. found count) and a results array (id, name, instruments). Failure: error details (invalid-request, HTTP 422).
Workflow exampleExecute getManufacturers with apiKey and pagination options, then process the list.

Measurements by Sensor ID

ActiongetMeasurementsBySensorId
PurposeRetrieves measurements for a specific sensor with an optional time range.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getMeasurementsBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Hourly Measurements by Sensor ID

ActiongetHourlyMeasurementsBySensorId
PurposeRetrieves hourly aggregated measurements for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getHourlyMeasurementsBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Daily Measurements by Sensor ID

ActiongetDailyMeasurementsBySensorId
PurposeRetrieves daily aggregated measurements for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getDailyMeasurementsBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Hourly Data by Sensor ID

ActiongetHourlyDataBySensorId
PurposeRetrieves hourly data for a specific sensor with an optional time range.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getHourlyDataBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Daily Summaries from Hourly Data by Sensor ID

ActiongetDailySummariesFromHourlyBySensorId
PurposeRetrieves daily summaries of hourly data for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getDailySummariesFromHourlyBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Monthly Summaries from Hourly Data by Sensor ID

ActiongetMonthlySummariesFromHourlyBySensorId
PurposeRetrieves monthly summaries of hourly data for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getMonthlySummariesFromHourlyBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Yearly Summaries from Hourly Data by Sensor ID

ActiongetYearlySummariesFromHourlyBySensorId
PurposeRetrieves yearly summaries of hourly data for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getYearlySummariesFromHourlyBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Hour of Day Summaries by Sensor ID

ActiongetHourOfDaySummariesBySensorId
PurposeRetrieves measurements aggregated by hour of day for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getHourOfDaySummariesBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Day of Week Summaries by Sensor ID

ActiongetDayOfWeekSummariesBySensorId
PurposeRetrieves measurements aggregated by day of week for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getDayOfWeekSummariesBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Month of Year Summaries by Sensor ID

ActiongetMonthOfYearSummariesBySensorId
PurposeRetrieves measurements aggregated by month of year for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
datetime_from / datetime_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getMonthOfYearSummariesBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Day of Week Summaries from Daily Data by Sensor ID

ActiongetDayOfWeekSummariesFromDailyBySensorId
PurposeRetrieves day-of-week summaries from daily data for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
date_from / date_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getDayOfWeekSummariesFromDailyBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Month of Year Summaries from Daily Data by Sensor ID

ActiongetMonthOfYearSummariesFromDailyBySensorId
PurposeRetrieves month-of-year summaries from daily data for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
date_from / date_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getMonthOfYearSummariesFromDailyBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Daily Data by Sensor ID

ActiongetDailyDataBySensorId
PurposeRetrieves daily data for a specific sensor with an optional time range.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
date_from / date_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getDailyDataBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Monthly Summaries from Daily Data by Sensor ID

ActiongetMonthlySummariesFromDailyBySensorId
PurposeRetrieves monthly summaries of daily data for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
date_from / date_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getMonthlySummariesFromDailyBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Yearly Summaries from Daily Data by Sensor ID

ActiongetYearlySummariesFromDailyBySensorId
PurposeRetrieves yearly summaries of daily data for a specific sensor.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
date_from / date_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getYearlySummariesFromDailyBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Yearly Data by Sensor ID

ActiongetYearlyDataBySensorId
PurposeRetrieves yearly data for a specific sensor with an optional time range.
ParametersRequired:
apiKey, sensors_id (integer). Optional:
date_from / date_to (e.g. 2023-01-01), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of summary objects (value, parameter, period). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getYearlyDataBySensorId with apiKey and sensors_id, then process the response for air quality analysis.

Owner Retrieval by ID

ActiongetOwnerById
PurposeRetrieves detailed information about a specific owner by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). owners_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (id, name). Failure: error details (invalid-owner-id, HTTP 422).
Workflow exampleExecute getOwnerById with apiKey and the ID, then process the response for display or analysis.

Owners Retrieval

ActiongetOwners
PurposeRetrieves a list of owners with sorting and pagination.
ParametersRequired:
apiKey. Optional:
order_by (default id), sort_order (asc/desc), limit (default 100), page (default 1).
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta (incl. found count) and a results array (id, name). Failure: error details (invalid-request, HTTP 422).
Workflow exampleExecute getOwners with apiKey and pagination options, then process the list.

Provider Retrieval by ID

ActiongetProviderById
PurposeRetrieves detailed information about a specific provider by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). providers_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (id, name, sourceName, parameters). Failure: error details (invalid-provider-id, HTTP 422).
Workflow exampleExecute getProviderById with apiKey and the ID, then process the response for display or analysis.

Providers Retrieval

ActiongetProviders
PurposeRetrieves a list of providers with filtering options.
ParametersRequired:
apiKey. Optional:
order_by, sort_order, parameters_id, monitor, iso, countries_id, bbox, coordinates, radius, limit, page.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of provider objects (id, name, sourceName, parameters). Failure: error details (invalid-request, HTTP 422).
Workflow exampleExecute getProviders with apiKey and iso=US, then display providers in a specific country.

Sensors by Location ID

ActiongetSensorsByLocationId
PurposeRetrieves detailed information about a specific location’s sensors by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). locations_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (sensor objects (id, name, parameter)). Failure: error details (invalid-location-id, HTTP 422).
Workflow exampleExecute getSensorsByLocationId with apiKey and the ID, then process the response for display or analysis.

Sensor Retrieval by ID

ActiongetSensorById
PurposeRetrieves detailed information about a specific sensor by its ID.
ParametersRequired:
apiKey – your API key (register at api.openaq.org). sensors_id – the ID (integer). Optional:
None.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array (id, name, parameter, latest). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getSensorById with apiKey and the ID, then process the response for display or analysis.

Latest Measurements by Parameter ID

ActiongetLatestMeasurementsByParameterId
PurposeRetrieves the latest measurements for a specific parameter.
ParametersRequired:
apiKey, parameters_id. Optional:
limit, page, datetime_min.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of latest measurement objects (datetime, value, coordinates). Failure: error details (invalid-parameter-id, HTTP 422).
Workflow exampleExecute getLatestMeasurementsByParameterId with apiKey and parameters_id for real-time monitoring.

Latest Measurements by Location ID

ActiongetLatestMeasurementsByLocationId
PurposeRetrieves the latest measurements for a specific location.
ParametersRequired:
apiKey, locations_id. Optional:
limit, page, datetime_min.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of latest measurement objects (datetime, value, coordinates). Failure: error details (invalid-location-id, HTTP 422).
Workflow exampleExecute getLatestMeasurementsByLocationId with apiKey and locations_id for location-specific real-time monitoring.

Flags by Location ID

ActiongetFlagsByLocationId
PurposeRetrieves flags associated with a specific location.
ParametersRequired:
apiKey, locations_id. Optional:
limit, page, datetime_from, datetime_to.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of flag objects (locationId, flagType, datetimeFrom). Failure: error details (invalid-location-id, HTTP 422).
Workflow exampleExecute getFlagsByLocationId with apiKey and locations_id for data quality assurance.

Flags by Sensor ID

ActiongetFlagsBySensorId
PurposeRetrieves flags associated with a specific sensor.
ParametersRequired:
apiKey, sensor_id. Optional:
limit, page, datetime_from, datetime_to.
ConfigurationConfigure the connector with the base URL via CONNECTOR_ENV_OPENAQ_BASE_URL (e.g. https://api.openaq.org).
OutputSuccessful: JSON with meta and a results array of flag objects (locationId, flagType, datetimeFrom). Failure: error details (invalid-sensor-id, HTTP 422).
Workflow exampleExecute getFlagsBySensorId with apiKey and sensor_id for sensor data quality assurance.

Example Workflow: Air Quality Monitoring and Analysis

Retrieve parametersUse getParameters with apiKey and parameter_type=pollutant to fetch pollutant parameters (e.g. PM2.5, NO2).
Query locationsExecute getLocations with apiKey, coordinates, and radius to fetch locations within an area.
Retrieve sensors by locationUse getSensorsByLocationId with apiKey and locations_id to fetch sensors at a location.
Fetch latest measurementsExecute getLatestMeasurementsByLocationId to display real-time air quality data in a dashboard.
Analyze historical dataExecute getDailyMeasurementsBySensorId and getMonthlySummariesFromDailyBySensorId for trend analysis.
Check data qualityExecute getFlagsBySensorId to review flags and ensure data reliability.
Support

For technical support, contact custom-connectors-support@isolutions.sa.

free consultation

Schedule a Free Consultation With Our Specialists

Book a free demo
request

Begin Your Adventure With Experienced Professionals

Send request
help desk

Do You Have Questions or Want More Information? Call Now.

Contact support