An open API service indexing awesome lists of open source software.

https://github.com/amsa2002/public-api-weather

Display a weather using public API
https://github.com/amsa2002/public-api-weather

bootstrap css dom html javascript

Last synced: 3 months ago
JSON representation

Display a weather using public API

Awesome Lists containing this project

README

          

Restcountries & Weather Web Application

This web application uses the Restcountries API to display information about countries and allows users to get weather information for a selected country.

## Features

- Fetches country data from the Restcountries API (name, capital, region, subregion, population, flag, etc.).
- Displays country details in a card layout with an option to get weather information.
- Uses the OpenWeatherMap API to retrieve weather data for the selected country.
- Styled using Bootstrap and custom CSS.

## Usage

1. Open the `index.html` file in a web browser.
2. The application will fetch country data and display it in cards.
3. Click the "Click for Weather" button on a card to get weather information for the respective country.

## APIs Used

- [Restcountries API](https://restcountries.com/)
- [OpenWeatherMap API](https://openweathermap.org/)