Allergy Info Using Free Google Pollen API

EDITED ON 1-Apr-2026: I failed to account for pollen-free days. (Who knew they existed??) So I modified the link to the shortcut for a version that allows for no results. I did NOT update the screenshots of the shortcut steps. (I’m old. šŸ˜„)

It's allergy season, and I'm a tree pollen allergy sufferer. To get pollen info displayed for my location via a shortcut, I found the best way is to sign up for a free Google API key (https://console.cloud.google.com/), call the API with the API key, parse the returned json, and display the data.

You need to allow location access when prompted. I have it set to "nearest kilometer".

At the end of this post is a long screenshot of the shortcuts steps, some sample json, and info about the parsing choices I made.

Here's the shortcut (which can't run without an API key):

https://www.icloud.com/shortcuts/fe542b60ed994b0096cb5dcdf16af1f7

WARNING: If you don't supply a valid Google API key to the shortcut, you'll get blank pollen data like this:


Here is an image of the shortcut steps:

Here is the sample json returned:

Sample Pollen Allergy from Google API.json

About the returned json:

- It has two dailyInfo keys and values: one for today and one for tomorrow.

- The main pollen data is in two keys: plantInfo and pollenTypeInfo.

- plantInfo has the specific tree, weed, and grass name, along with the value and category of the pollen amount.

- pollenTypeInfo has generic pollen info about about the main categories of Grass, Weed, and Tree.

The parsing logic is in two big loops:

- The today and tomorrow logic loop

- The plantInfo/pollenTypeInfo loop

- For data in plantInfo/pollenTypeInfo, I look for the inSeason key. If that's missing or false, I ignore the data. I also ignore pollen value amounts of 0.

- I grab the generic pollen count first (pollenTypeInfo), then plantInfo.

Hope someone finds it useful!