Free AQI Widget for Your Website
Embed a real-time air quality widget on your website, blog, or app. Show live AQI, PM2.5, and ozone data for any city worldwide. Free, no API key needed — just copy and paste the embed code.
Widget Previews
Standard (200×200)
Dark Theme (200×200)
Compact Banner (300×60)
Embed Code
Replace CITY with the city name (e.g., delhi, london, beijing, los-angeles).
Standard widget (200×200)
<iframe src="https://www.aqi.in/embed?city=CITY" width="200" height="200" frameborder="0" scrolling="no" title="AQI Widget" ></iframe>
Dark theme (200×200)
<iframe src="https://www.aqi.in/embed?city=CITY&theme=dark" width="200" height="200" frameborder="0" scrolling="no" title="AQI Widget" ></iframe>
Compact banner (300×60)
<iframe src="https://www.aqi.in/embed?city=CITY&compact=1" width="300" height="60" frameborder="0" scrolling="no" title="AQI Widget" ></iframe>
Widget Parameters
cityAny city nameCity to display AQI for. Use lowercase. e.g., delhi, london, new-yorkthemelight (default) / darkWidget color themecompact0 (default) / 1Show compact banner layout (300×60) instead of squarePopular City Widget Codes
delhi
embed?city=delhibeijing
embed?city=beijinglondon
embed?city=londonlos angeles
embed?city=los-angelesdubai
embed?city=dubaicairo
embed?city=cairobangkok
embed?city=bangkokjakarta
embed?city=jakartaFrequently Asked Questions
Is the AQI widget free?
Yes, completely free. No API key, no account needed. Just copy the iframe code.
How often is the data updated?
Data is cached for 30 minutes and sourced from the World Air Quality Index (WAQI) network. Live AQI values may be up to 30 minutes behind real-time sensor data.
Which cities are supported?
Thousands of cities worldwide, wherever WAQI has monitoring stations. Major cities like Delhi, Beijing, London, New York, Tokyo, Jakarta, and more are fully supported.
Can I use the widget on a commercial website?
Yes. The widget is free for any use. We ask that you keep the 'Powered by aqi.in' attribution visible.
Can I customize the widget size?
Yes — change the width and height in the iframe tag. The standard square widget works best at 180×180 to 300×300. The compact banner works at 250×50 to 400×70.