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 (Text/HTML block), Blogger, Joomla, Drupal, Wix, Squarespace, and any CMS that allows custom HTML. ❌ Does not work on: Facebook, Instagram, LinkedIn, or Twitter posts – see below.

Why the Widget Does Not Work on Social Media

Social media platforms like Facebook, Twitter, Instagram, and LinkedIn do not allow <iframe> or <script> tags in posts or comments for security reasons. This is why you cannot paste the widget code directly into a social media post.

✅ Solution: Instead of embedding the widget itself, share a link to your page where the widget is installed. For example: “Check today’s air quality in Stockholm” → link to your site’s widget page.

Benefits of Adding the Widget