1. Current weather
Compact 320x120 card with icon, temperature, condition and city.
city, lat+lon, theme=light|dark, units=metric|imperialEight ready-to-paste meteorology and hydrology widgets you can drop into any page through a single iframe. No API key, no signup, real-time data. The only condition: keep the small link to WhatAWeather visible.
Configure your widget and copy the HTML code ready to paste into any page, CMS or blog.
WhatAWeather widgets are self-contained micro web components, distributed as iframes, that any developer or page editor can drop into a site without managing API keys, signing up for external services, or writing additional JavaScript. Each widget is optimised to load in under a second, is responsive (adapting to mobiles and tablets), and consumes the same public data we already serve on WhatAWeather: Open-Meteo forecasts, MITECO hydrology, RainViewer radar, official AEMET alerts and placeholders for services such as wildfire risk (FWI/IRI) or snow line.
Integration is trivial: pick the widget you want in this catalog, copy the HTML snippet (which is simply an <iframe> with a src pointing to a URL under /widgets/) and paste it into your page, WordPress template, Webflow Embed module, Notion block or any other system that accepts iframes. There is no build step, no dependencies and no key needed because the URLs are public and open.
Parameters are passed via query string. For example /widgets/tiempo/?city=madrid&theme=dark&units=metric shows Madrid in dark theme with metric units. Most widgets accept city or the lat/lon pair, plus the theme=light|dark modifier and, where applicable, units=metric|imperial. Each widget includes a small "via WhatAWeather" link at the bottom: that is the only legal condition for using them. Hiding or covering this link via CSS is not allowed, but you may freely adjust the layout around it.
For professional sites we also offer a public JSON API that returns the same data without presentation, so you can build your own design on top. Widgets are the quick option; the API is the powerful option. Both are free and allow commercial use. If you are missing a specific widget (e.g. tides, swell, pollen) email [email protected] and we will add it.
Required attribution. Each widget includes a small "via WhatAWeather" link in the bottom corner. This attribution cannot be hidden, removed via CSS, covered by overlay elements or rewritten. The link must remain clickable.
X-Frame-Options is disabled on /widgets/* and we serve Content-Security-Policy: frame-ancestors *. You can embed from any domain.