A simple weather app that shows live temperature and weather description for any city using the WeatherAPI.
- Get a free API key from weatherapi.com
- Open
script.jsand replace the key in line 1 with your own key - Open
index.htmlin your browser — that's it!
| File | What it does |
|---|---|
index.html |
Page structure |
style.css |
All the styling |
script.js |
Weather logic + API call |
- Provider: WeatherAPI.com
- Endpoint:
https://api.weatherapi.com/v1/current.json - Data shown: City name, temperature (°C), weather condition
Note: No install needed. No server needed. Just a browser and an API key.