Skip to main content
Connectors

OpenAQ connector

Set up the OpenAQ connector in Kaivo: authentication, configuration, the 16 BigQuery tables it syncs, and answers to common questions.

Written By Lauri Raivio

Last updated 16 days ago

Kaivo is a fully managed data platform that syncs your OpenAQ data into a Google BigQuery warehouse and keeps it up to date automatically. There is no pipeline to build and no infrastructure to run, so you can spend your time analysing your data from OpenAQ instead of moving it.

What is the OpenAQ connector

Sync your OpenAQ air-quality measurements, locations, and sensors into BigQuery with Kaivo to analyse pollution levels across sites and countries.

CategoryOther
AuthenticationAPI key
SetupSelf-service

Getting started with the OpenAQ connector

  1. Sign up for Kaivo and create a workspace.
  2. Connect your OpenAQ account.
  3. Choose which tables to sync.
  4. Wait for the initial sync to finish.
  5. Query your data in BigQuery or your favourite AI or BI tool.

Authenticating OpenAQ

Authenticate with your API Key.

FieldDescription
API Key

Your OpenAQ API key. Register for free at explore.openaq.org/register, then find or rotate your key under your account settings.

Configuring the OpenAQ connector

When you set up the connector, you provide:

FieldDescription
Country IDs

The numeric OpenAQ country IDs to fetch air quality data for (e.g. 42 for Kazakhstan). Look up IDs in the OpenAQ countries list.

Tables and columns synced from OpenAQ

Kaivo syncs 16 tables from OpenAQ into a dedicated dataset in your BigQuery warehouse. Click any table to see its columns and types.

ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
codeSTRING
datetime_firstSTRING
datetime_lastSTRING
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: countries__parameters

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
nameSTRING
unitsSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
is_monitorBOOL
manufacturer__idFLOAT64
manufacturer__nameSTRING
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
coordinates__latitudeFLOAT64
coordinates__longitudeFLOAT64
datetime__localSTRING
datetime__utcSTRING
locations_idFLOAT64
sensors_idFLOAT64
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
attribution_requiredBOOL
commercial_use_allowedBOOL
idFLOAT64
modification_allowedBOOL
nameSTRING
redistribution_allowedBOOL
share_alike_requiredBOOL
source_urlSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
attribution_requiredBOOL
commercial_use_allowedBOOL
idFLOAT64
modification_allowedBOOL
nameSTRING
redistribution_allowedBOOL
share_alike_requiredBOOL
source_urlSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
coordinates__latitudeFLOAT64
coordinates__longitudeFLOAT64
datetime__localSTRING
datetime__utcSTRING
locations_idFLOAT64
sensors_idFLOAT64
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
coordinates__latitudeFLOAT64
coordinates__longitudeFLOAT64
country__codeSTRING
country__idFLOAT64
country__nameSTRING
datetime_first__localSTRING
datetime_first__utcSTRING
datetime_last__localSTRING
datetime_last__utcSTRING
idFLOAT64
is_mobileBOOL
is_monitorBOOL
localitySTRING
nameSTRING
owner__idFLOAT64
owner__nameSTRING
provider__idFLOAT64
provider__nameSTRING
timezoneSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: locations__bounds

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: locations__instruments

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: locations__licenses

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
attribution__nameSTRING
date_fromSTRING
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: locations__sensors

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
nameSTRING
parameter__display_nameSTRING
parameter__idFLOAT64
parameter__nameSTRING
parameter__unitsSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
is_monitorBOOL
manufacturer__idFLOAT64
manufacturer__nameSTRING
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: manufacturers__instruments

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
coverage__datetime_from__localSTRING
coverage__datetime_from__utcSTRING
coverage__datetime_to__localSTRING
coverage__datetime_to__utcSTRING
coverage__expected_countFLOAT64
coverage__expected_intervalSTRING
coverage__observed_countFLOAT64
coverage__observed_intervalSTRING
coverage__percent_completeFLOAT64
coverage__percent_coverageFLOAT64
flag_info__has_flagsBOOL
parameter__idFLOAT64
parameter__nameSTRING
parameter__unitsSTRING
period__datetime_from__localSTRING
period__datetime_from__utcSTRING
period__datetime_to__localSTRING
period__datetime_to__utcSTRING
period__intervalSTRING
period__labelSTRING
summary__avgFLOAT64
summary__maxFLOAT64
summary__medianFLOAT64
summary__minFLOAT64
summary__q02FLOAT64
summary__q25FLOAT64
summary__q75FLOAT64
summary__q98FLOAT64
summary__sdFLOAT64
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
coverage__datetime_from__localSTRING
coverage__datetime_from__utcSTRING
coverage__datetime_to__localSTRING
coverage__datetime_to__utcSTRING
coverage__expected_countFLOAT64
coverage__expected_intervalSTRING
coverage__observed_countFLOAT64
coverage__observed_intervalSTRING
coverage__percent_completeFLOAT64
coverage__percent_coverageFLOAT64
flag_info__has_flagsBOOL
parameter__idFLOAT64
parameter__nameSTRING
parameter__unitsSTRING
period__datetime_from__localSTRING
period__datetime_from__utcSTRING
period__datetime_to__localSTRING
period__datetime_to__utcSTRING
period__intervalSTRING
period__labelSTRING
summary__avgFLOAT64
summary__maxFLOAT64
summary__medianFLOAT64
summary__minFLOAT64
summary__q02FLOAT64
summary__q25FLOAT64
summary__q75FLOAT64
summary__q98FLOAT64
summary__sdFLOAT64
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
descriptionSTRING
display_nameSTRING
idFLOAT64
nameSTRING
unitsSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
bbox__typeSTRING
datetime_addedSTRING
datetime_firstSTRING
datetime_lastSTRING
entities_idFLOAT64
export_prefixSTRING
idFLOAT64
nameSTRING
source_nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: providers__bbox__coordinates

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueJSON
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: providers__parameters

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
nameSTRING
unitsSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
coverage__datetime_from__localSTRING
coverage__datetime_from__utcSTRING
coverage__datetime_to__localSTRING
coverage__datetime_to__utcSTRING
coverage__expected_countFLOAT64
coverage__expected_intervalSTRING
coverage__observed_countFLOAT64
coverage__observed_intervalSTRING
coverage__percent_completeFLOAT64
coverage__percent_coverageFLOAT64
flag_info__has_flagsBOOL
parameter__idFLOAT64
parameter__nameSTRING
parameter__unitsSTRING
period__datetime_from__localSTRING
period__datetime_from__utcSTRING
period__datetime_to__localSTRING
period__datetime_to__utcSTRING
period__intervalSTRING
period__labelSTRING
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
coverage__datetime_from__localSTRING
coverage__datetime_from__utcSTRING
coverage__datetime_to__localSTRING
coverage__datetime_to__utcSTRING
coverage__expected_countFLOAT64
coverage__expected_intervalSTRING
coverage__observed_countFLOAT64
coverage__observed_intervalSTRING
coverage__percent_completeFLOAT64
coverage__percent_coverageFLOAT64
datetime_first__localSTRING
datetime_first__utcSTRING
datetime_last__localSTRING
datetime_last__utcSTRING
idFLOAT64
latest__coordinates__latitudeFLOAT64
latest__coordinates__longitudeFLOAT64
latest__datetime__localSTRING
latest__datetime__utcSTRING
latest__valueFLOAT64
nameSTRING
parameter__display_nameSTRING
parameter__idFLOAT64
parameter__nameSTRING
parameter__unitsSTRING
summary__avgFLOAT64
summary__maxFLOAT64
summary__minFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

How the OpenAQ sync works

After the first load, Kaivo keeps your BigQuery warehouse up to date for you. Where OpenAQ supports it, each sync pulls only new and changed records so it stays fast; otherwise it refreshes the whole table. Every record keeps its original ID, so you won't get duplicate rows.

Frequently asked questions

How long does the initial sync take for OpenAQ?

It depends on how much history is in your OpenAQ account. Most initial syncs finish within minutes, while large accounts can take a few hours. After that, syncs only fetch new and changed records, so they're much faster.

Can I sync only some tables or columns?

Yes. You pick which tables to sync when you set up the connection and can change the selection later. Tables you don't select are never copied to your warehouse.

What happens when OpenAQ's schema changes?

New fields are never added automatically. You choose which fields to sync, so data you haven't selected (sensitive personal data, for example) never lands in your warehouse. When a new field appears, it becomes available for you to add. What happens to removed or renamed fields depends on a table's sync mode: full-refresh tables always match what's currently in OpenAQ, so dropped fields disappear, while incremental tables keep their existing columns and history, so an old field stays and newly added fields fill in over time.

How do I handle GDPR or data deletion requests?

Your data lives in your own Kaivo-managed BigQuery warehouse, so the most direct option is to delete or anonymise specific records right in BigQuery. If you delete data in OpenAQ instead, full-refresh tables drop it on the next sync, while incremental tables keep it, so you would remove the row in BigQuery or ask us to run a full refresh. To remove everything, delete the OpenAQ connector in Kaivo and all of its synced data is deleted with it.

Common use cases for OpenAQ data

Use sensor_measurements and latest_parameters to track pollutant levels over time.

Location analysis

Join locations with sensors to compare air quality across sites.

Parameter coverage

Use parameters to see which pollutants are measured where.

Regional comparison

Group measurements by country to compare air quality across regions.

Use OpenAQ data in your AI and BI tools

Once OpenAQ data lands in your Kaivo-managed BigQuery warehouse, you can explore it with AI tools or any BI tool that connects to BigQuery. Here's how the most common destinations work with OpenAQ data.

Claude

Use Kaivo's MCP server to give Claude secure, workspace-scoped access to your data. Setup guide →

Power BI

Microsoft's BI tool with a native BigQuery connector. Supports direct query and scheduled refresh. Setup guide →

Data Studio

Free Google BI tool with native BigQuery support. One-click connection to your Kaivo warehouse; great for SMB teams on Google Workspace. Setup guide →

Tableau

The premium analytics standard, with native BigQuery integration. Setup guide →

Google Sheets

Use Connected Sheets to query BigQuery directly from a spreadsheet, with no SQL. Setup guide →

Excel

Connect via Power Query's BigQuery connector. Setup guide →

Metabase

Open-source BI tool with strong BigQuery support. Setup guide →

See our pricing page for OpenAQ connector pricing and plan details.

Was this helpful?

Still need help? Share an idea