Back to IQAir AirVisual in Google Sheets
SheetXAI logo
IQAir AirVisual logo
IQAir AirVisual · Google Sheets Guide

Fetch 72-Hour AQI Forecasts for Venue Locations Into a Google Sheet

2026-05-14
5 min read

The Scenario

Someone on the events team dropped a message in Slack at 4 PM: the air quality advisories for next weekend's outdoor festivals have not been drafted yet, and the venues span fifteen cities across three states. The advisories need to go to attendees by Thursday. You are the one with the spreadsheet.

The bad version:

  • Open IQAir's forecast interface, search each venue city one at a time, screenshot or manually transcribe the three-day AQI projections, and paste them into the sheet.
  • Realize halfway through that the forecast display resets after you navigate away, so you have to re-search the ones you did not copy completely.
  • Spend twenty minutes deciding whether the advisory threshold is 101 or 100 because you have three different values for the same city pulled at different times.

This is not analysis work. It is data entry that happens to involve weather data, and it needs to be done accurately enough that a health advisory can be based on it.

The Easy Way: One Prompt in SheetXAI

SheetXAI is an AI agent inside your Google Sheet. It reads the venue city list and pulls the IQAir AirVisual forecast data directly, landing the values in the columns you specify.

For every venue in my Events sheet (city, state, country in columns A-C), fetch the 3-day AQI forecast from IQAir and write the forecast values and dates into columns D through J.

What You Get

  • Columns D through J: three days of AQI forecast values with corresponding forecast dates in the header row.
  • Each row corresponds to one venue city from your Events sheet.
  • Venues where IQAir returns no forecast data get a flag in a status column rather than an ambiguous blank.

What If the Data Is Not Quite Ready

Some venue cities are listed by venue name rather than city name

Column A in my Events sheet has venue names like Madison Square Garden instead of city names. Look up the city for each venue from column B which has the full address, then fetch the 3-day AQI forecast from IQAir and write the results into columns D through J.

You need the worst single-day AQI across the forecast window

Look up the 72-hour air quality forecast for the 10 cities in my Venues tab and add a column showing the worst projected AQI and the date it peaks.

The advisory threshold varies by event type

For each venue in my Events sheet, fetch the 3-day AQI forecast from IQAir and write the values into columns D through J. Then in column K, apply the advisory label: No Action if all three days are below 101, Caution if any day hits 101 through 150, and Advisory if any day exceeds 150.

Pull the forecast, apply thresholds, and draft the advisory text in one shot

Fetch the 3-day AQI forecast for every venue in my Events sheet, write the daily values into columns D through J, and in column L generate a one-sentence advisory message for each venue based on the worst forecast day — using plain language an event attendee would understand.

The power is combining the data pull with the conditional logic in a single instruction.

Try It

Get the 7-day free trial of SheetXAI and open the sheet with your venue list, then ask it to populate the forecast columns and apply your advisory thresholds. For related reads, see the spoke on bulk-fetching current AQI for a city list, or the hub overview on connecting IQAir AirVisual to Google Sheets.

Stop memorizing formulas.
Tell your spreadsheet what to do.

Join 4,000+ professionals saving hours every week with SheetXAI.

Learn more