A modern Weather Application built using HTML, CSS, and JavaScript, integrated with a live Weather API (like OpenWeatherMap or WeatherAPI) to fetch and display real-time weather data for any city in the world.
- 🌍 Search Weather by City Name – Get real-time weather info for any location worldwide.
- 🌡️ Detailed Weather Info – Displays temperature, humidity, wind speed, and weather conditions.
- 🎨 Responsive & Clean UI – Works perfectly on desktop and mobile.
- 📡 Live API Integration – Uses a public weather API for real-time data fetching.
- 🌅 Dynamic Backgrounds / Icons – Background or icons change based on weather conditions.
- Frontend: HTML, CSS, JavaScript
- API: OpenWeatherMap API (or any other weather API you’re using)
- Version Control: Git & GitHub
Weather-App-with-API-Integration/
│
├── index.html # Main HTML file
├── style.css # Styling for the app
├── script.js # API calls and logic
├── assets/ # Icons or background images
└── README.md # Documentation
-
Clone the repository:
git clone https://github.com/<your-username>/Weather-App-with-API-Integration.git cd Weather-App-with-API-Integration
-
Get your API Key:
- Create an account at OpenWeatherMap.
- Navigate to API Keys in your profile and copy your key.
-
Add your API Key to the script: In
script.js, replace the placeholder with your actual key:const apiKey = "YOUR_API_KEY_HERE";
-
Run the app:
- Open
index.htmlin your browser, or - Use a local server (e.g., VS Code Live Server extension).
- Open
-
Enter the name of a city (e.g., New York, London, Tokyo).
-
Hit the Search button.
-
View live weather updates, including:
- Current temperature
- Weather description
- Humidity and wind speed
- Weather icon or background change
City: London Temperature: 15°C Condition: Cloudy ☁️ Humidity: 72% Wind: 8 km/h
(Add your app screenshots here for better presentation) Example:

- 📍 Detect user’s location automatically using Geolocation API.
- 📅 5-day weather forecast view.
- 🎨 Theme customization (dark/light mode).
- 📊 Graphical representation of temperature trends.
Contributions are welcome! To contribute:
- Fork this repository
- Create a new branch:
git checkout -b feature-name - Commit your changes:
git commit -m "Added new feature" - Push and open a Pull Request
This project is licensed under the MIT License – see the LICENSE file for details.