Skip to content

Connectors / Data and analytics · HTTP Connector

AirNow integration and API

AirNow is the US Environmental Protection Agency's air quality service, publishing real-time observations and forecasts of the Air Quality Index by ZIP…

What can you do with AirNow on Tray.ai?

AirNow is the US Environmental Protection Agency's air quality service, publishing real-time observations and forecasts of the Air Quality Index by ZIP code, location and reporting area. Tray.ai connects to AirNow through the HTTP Connector, so your workflows can call the AirNow API alongside the rest of your stack.

  • Get forecasts by ZIP code each morning and warn field crews in your team chat about poor air quality.
  • Get observations by coordinates for each work site and log readings in your safety records.
  • Get daily site observations near your offices for facilities to plan ventilation.
Connects through
HTTP Connector
Authentication
An API key in the query string

Set it up

Connect AirNow to Tray.ai

Each step uses AirNow's own API details, from its documentation.

Save AirNow's API key

Save the key as a Tray.ai authentication and add it to the query string from $.auth, so it never sits in the workflow itself.

Import a request from AirNow's docs

Add an HTTP Client step and paste a cURL example from AirNow's API docs. Tray.ai fills in the method, URL, headers, and query.

Start with “Get forecasts by ZIP code”

It's one of 10 documented actions, under Forecasts. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Get forecasts by coordinates” and “Get historical forecasts by reporting area” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with AirNow

Connect AirNow with Microsoft Teams and Google BigQuery

Each one uses actions and events from AirNow's own API documentation.

Post air quality alerts for each office to Microsoft Teams

When

On a schedule

Then

  1. Get forecasts by ZIP code for each office
  2. Post a message to the office channel in Microsoft Teams when air is unhealthy

With Microsoft Teams

Store air quality readings for each site in BigQuery

When

On a schedule

Then

  1. Get observations by ZIP code for each site
  2. Load the readings into Google BigQuery

With Google BigQuery

Apps you can build on AirNow data

Internal tools your team can build with an AI assistant, each one using AirNow calls from its API documentation.

Site air quality board

Shows the current AQI and forecast for each office ZIP code so facilities teams can plan outdoor work.

Field crew air quality check

Lets a crew lead enter coordinates and see the current AQI and forecast for that spot.

Air quality history report

Shows past forecasts and daily monitoring site readings for a reporting area.

AirNow MCP server for AI agents

Build an MCP server on AirNow in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Get forecasts by ZIP code
  • Get observations by ZIP code
  • Get hourly site observations
  • Get PM2.5 contour maps
  • Get forecasts by coordinates
  • Get historical forecasts by reporting area
  • Get observations by coordinates
  • Get observations by reporting area

What the AirNow API covers

4 resources and 10 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.

Forecasts

  • Get forecasts by ZIP code
  • Get forecasts by coordinates
  • Get historical forecasts by reporting area

Current observations

  • Get observations by ZIP code
  • Get observations by coordinates
  • Get observations by reporting area

Monitoring site observations

  • Get hourly site observations
  • Get daily site observations

Contour maps

  • Get PM2.5 contour maps
  • Get ozone contour maps

Checked against AirNow's own documentation on 2026-10-22

docs.airnowapi.org/webservices

Frequently asked questions

What can a Tray.ai workflow do in AirNow?

The AirNow API documents 10 actions across 4 resources (Forecasts, Current observations, Monitoring site observations, Contour maps). For example: Get forecasts by ZIP code; Get observations by ZIP code; Get hourly site observations. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with AirNow?

The AirNow API uses an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See AirNow working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.