SmogRank / Widget

Put a city's air quality on your site

A free widget showing a city's PM2.5, its health band and its world rank, updated hourly. No script, no cookies, no tracking: one iframe that links back to the city's page here.

or open any city page and follow "Embed this".

Light

Copy this into your page's HTML:

Dark

For dark pages:

A badge for the year

The same widget with the city's line from the year's board: its rank among the world's cities, worst first, and in its country, always with its average PM2.5 beside the rank. A finished year also compares that average with the WHO annual guideline.

2025

Copy this into your page's HTML. The ranks are those of the year's board. Add ?theme=dark to the address for dark pages.

2026 so far

Copy this into your page's HTML. The ranks are those of the year's board. Add ?theme=dark to the address for dark pages.

Terms

  • Free for any site, including commercial news sites. Keep the widget as it is, including the SmogRank name and the link.
  • Any city on a year's board can show its badge. Being listed, and where, is never for sale: the ranks are the board's.
  • Values come from government monitors, low-cost sensors and, for cities without a usable monitor, a model estimate (sources) and follow our method. Not medical advice.
  • Questions or a size that doesn't fit: hello@smogrank.com.