Air Quality Widget Generator

Create your own air quality widget and embed it directly into your website or blog. Choose any city worldwide and display live air quality index (AQI) information. The widget updates automatically with fresh data.




Preview

Embed Code

About the Air Quality Widget

The AirNearby air quality widget is a free tool that lets you embed real-time Air Quality Index (AQI) data on your own website or blog. It works for any city worldwide and updates automatically with live data from OpenWeather. Whether you run a travel blog, a local news portal, or a health information site, this widget makes your content more valuable by showing visitors the current air pollution levels where they live or travel.

Adding an environmental widget to your site also helps with SEO: search engines love fresh, dynamic content. Each time AQI data updates, your page remains relevant and useful for both users and Google.

How to Embed the Widget

  1. Use the generator above to select your city, width, and theme.
  2. Copy the HTML code from the Embed Code box.
  3. Paste the code into your website’s HTML where you want the widget to appear.

✅ Works on: WordPress, Blogger, Joomla, Drupal, Wix, Squarespace. ❌ Not supported on: Facebook, Instagram, LinkedIn, or X (Twitter) posts.

Why the Widget Does Not Work on Social Media

Social media sites block <iframe> and <script> tags for security reasons. You cannot embed live widgets in posts or comments.

✅ Instead, share a link to your widget page, e.g. “Check today’s air quality in New York” → your site’s page with the widget.

Benefits of Adding the Widget