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.
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.
✅ 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.
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.