AirNow

Providing the public national air quality information and real-time AQI conditions for over 400 cities across the US.

Integrate the AirNow API with the Formatting API

Setup the AirNow API trigger to run a workflow which integrates with the Formatting API. Pipedream's integration platform allows you to integrate AirNow and Formatting remarkably fast. Free for developers.

[Data] Convert JSON to String with the Formatting API

Convert an object to a JSON format string

 
Try it
[Data] Parse JSON with the Formatting API

Parse a JSON string

 
Try it
[Date/Time] Add/Subtract Time with the Formatting API

Add or subtract time from a given input

 
Try it
[Date/Time] Compare Dates with the Formatting API

Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.

 
Try it
[Date/Time] Format with the Formatting API

Format a date string to another date string

 
Try it

Overview of AirNow

The AirNow API provides access to real-time air quality data from across the United States, offering insights into the AQI (Air Quality Index) for various pollutants. With this data, developers can create applications that inform users about the air quality in their immediate environment or trigger actions based on changes in pollution levels. On Pipedream, one can leverage AirNow's data to automate notifications, integrate environmental data into smart home systems, or even drive data analysis and reporting for health and safety monitoring.

Connect AirNow

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    airnow: {
      type: "app",
      app: "airnow",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.airnowapi.org/aq/forecast/zipCode/`,
      params: {
        format: `application/json`,
        API_KEY: `${this.airnow.$auth.api_key}`,
        zipCode: `YOUR_ZIP_CODE`,
      },
    })
  },
})

Connect Formatting

1
2
3
4
5
6
export default defineComponent({
  async run({ steps, $ }) {
    const text = ' Hello world! ';
    return text.trim()
  },
})