Skip to content

Connectors / Data and analytics · HTTP Connector

Automate AirNow with 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…

Great — a couple more details

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

See all connectors

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.

Step 1

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.

Step 2

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.

Step 3

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.

Step 4

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.

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.

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.