This project uses the API-Football open API to display soccer data. Users can:
- view a list of soccer leagues
- view a list of countries with football teams
- click a league to see the teams in that league I chose this API because I am a big soccer fan and wanted to practice working with real sports data.
- HTML
- CSS
- JavaScript
- Fetch API
- API-Football
-
Countries with teams
https://v3.football.api-sports.io/teams/countries -
Teams by league
https://v3.football.api-sports.io/teams?league={id}&season=2024
- Download or clone this repository
- Open the project folder
- Open the
index.htmlfile in your browser
Alternatively you can run the project using Live Server in VS Code.
- Navigation buttons to switch between API endpoints
- Data is retrieved using separate GET requests
- Leagues can be clicked to view teams in that league
- Responsive layout using CSS Grid