Pollen API quick reference

The Pollen API returns pollen data for a specific location, including regional plant species, pollen types, pollen index, and health recommendations. It has a forecast endpoint (up to 5 days of daily data) and a heatmap tiles endpoint, covers over 65 countries, and has a resolution of 1 x 1 km.

Pollen API: key facts

  • Product: Pollen API
  • Category: Environment
  • Platform: Web service (REST)
  • Runs on: Server (backend code)
  • Launch stage: GA
  • Lifecycle: Active
  • Overview: Pollen API overview
  • Regional availability: Limited. Pollen data is available in over 65 countries; supported pollen types and plants vary by country. (coverage details)

Pollen API: when to use it

Use Pollen API when:

  • You need a daily pollen forecast (up to 5 days) with pollen index values for tree, grass, and weed types at a latitude and longitude.
  • You need plant species details for a location, such as season, appearance, cross-reactions, and plant pictures.
  • You need health recommendations based on the pollen index level at a location.
  • You need color-coded pollen heatmap tiles (tree, grass, weed) to overlay on a Google map, including in a browser with a browser-restricted API key.

Don't use Pollen API when:

  • You need air quality index (AQI) or pollutant data rather than pollen data. Use Air Quality API instead.
  • You need weather conditions or forecasts such as temperature or precipitation, not pollen levels. Use Weather API instead.
  • You need rooftop solar energy potential for buildings. Use Solar API instead.

Pollen API: setup

Pollen API: common mistakes

  • Problem: When a pollen type or plant is out of season and the pollen count is low, the response omits the indexInfo object. Code that expects indexInfo can fail. Fix: Treat indexInfo as optional and handle the case where it's missing. See /maps/documentation/pollen/forecast.
  • Problem: Locations outside the supported country list return a 400 error with the message 'Information is unavailable for this location.' Fix: Check the coverage page before you send a request, and handle 400 responses for unsupported locations. See /maps/documentation/pollen/faq.
  • Problem: When a supported location has no pollen data for the date, pollenTypeInfo and plantInfo contain only code and displayName, with no other data fields. Fix: Don't assume index or description fields exist. Check for each field before you use it. See /maps/documentation/pollen/faq.
  • Problem: Heatmap tile X and Y values that aren't valid for the zoom level (for example, (10,10) at zoom 2) return an error. Zoom must be 0-16. Fix: Normalize tile coordinates to the range 0 to 2^zoom - 1 before you request a tile. See /maps/documentation/pollen/heatmap-tiles.
  • Problem: Although the forecast endpoint is called from a server, heatmapTiles requests can also run directly in browser JavaScript (for example, in a Maps JavaScript API overlayMapTypes tile layer). Fix: When loading heatmapTiles URLs directly in a browser, you can use an API key with browser (HTTP referrer) restrictions. See /maps/documentation/pollen/embed-heatmaps.

What you can do with Pollen API

See the guides linked below for each task, or compare across products in the Capabilities Explorer.