Football Multi League Data Streamlit

Build a Football Dashboard with Streamlit and API-Football

If you’re looking for a practical Python project that combines REST APIs, football data, and cloud deployment, building a Streamlit Football Dashboard is an excellent choice. In this project, we Build a Football Dashboard with Streamlit and API-Football.

Try the live application here:

Football League Data App

Whether you’re a Python developer, football enthusiast, or someone learning REST API integration, this project demonstrates how to build and deploy a production-ready dashboard with minimal frontend code.


Why Build a Streamlit Football Dashboard?

Sports data is available through many APIs, but consuming that data efficiently and presenting it in an interactive interface is where the real challenge lies.

This Streamlit Football Dashboard solves that problem by bringing multiple football leagues together into a single application.

Instead of visiting several different websites, users can explore league information from one place.


Live Demo

🚀 Explore the dashboard here:

Football League Data App

The application is deployed on Streamlit Community Cloud, making it accessible from any browser without installing any software.


Features of the Streamlit Football Dashboard

The dashboard allows users to explore football data from multiple leagues, including:

  • League Information
  • League Standings
  • Teams
  • Fixtures
  • Top Goal Scorers
  • Top Assist Providers
  • Player Information
  • API Usage (Quota)

All information is retrieved in real time using API-Football while keeping API usage efficient through intelligent caching.


Supported Football Leagues

One of the biggest advantages of this project is support for multiple football competitions.

Currently, the dashboard supports:

  • 🇬🇧 Premier League (England)
  • 🇩🇪 Bundesliga (Germany)
  • 🇪🇸 La Liga (Spain)
  • 🇫🇷 Ligue 1 (France)
  • 🇹🇷 Süper Lig (Türkiye)
  • 🇸🇦 Saudi Pro League
  • 🇮🇳 Indian Super League (ISL)
  • 🇺🇸 Major League Soccer (MLS)

Adding additional leagues is straightforward because league configuration is centralized in the project.


Technology Stack

This project uses modern Python technologies that are easy to learn and maintain.

TechnologyPurpose
PythonBackend Programming
StreamlitInteractive Web UI
API-FootballFootball Data Provider
RequestsREST API Calls
Streamlit CachePerformance Optimization
Streamlit Community CloudDeployment

This combination makes it possible to build professional dashboards without writing HTML, CSS, or JavaScript.


Project Structure

The application follows a clean project structure.

football_league_app/
├── app.py
├── pages/
│ └── API_Football_Data.py
├── utils/
│ ├── api_football.py
│ └── styles.py
├── requirements.txt
└── README.md

Separating the API client, styling, caching, and UI makes the project easier to maintain and extend.


Football Data Available

The dashboard consumes several API-Football endpoints to display comprehensive football information.

FeatureAPI Endpoint
League Information/leagues
Standings/standings
Teams/teams
Fixtures/fixtures
Top Scorers/players/topscorers
Top Assists/players/topassists
Players/players
API Status/status

The application authenticates securely using an API-Football API key.


Intelligent Caching Improves Performance

The free API-Football plan includes a limited number of daily requests.

To reduce unnecessary API calls, the application caches all responses for 12 hours. Users can also manually refresh the cache whenever they need the latest data, although doing so consumes API requests.

This approach keeps the dashboard fast while preserving the available API quota.


Deploying the Dashboard on Streamlit Community Cloud

One of the best parts of this project is its simple deployment process.

After pushing your code to GitHub:

  1. Open Streamlit Community Cloud.
  2. Connect your GitHub repository.
  3. Select your repository.
  4. Choose app.py as the entry point.
  5. Add your API key as a Streamlit Secret.
  6. Deploy.

Within minutes, your dashboard is available online.

This is exactly how this application has been deployed.

👉 Live Demo

Football League Data App


Why Choose Streamlit?

Streamlit has become one of the most popular frameworks for Python developers because it dramatically reduces frontend development time.

Some of its advantages include:

  • Rapid application development
  • Interactive widgets
  • Excellent REST API integration
  • Built-in caching
  • Easy deployment
  • Minimal code
  • Beautiful UI with pure Python

If your goal is to build dashboards quickly, Streamlit is one of the best frameworks available.


Try the Live Streamlit Football Dashboard

Want to explore the project?

👉 Live Application

Football League Data App

Browse league standings, fixtures, teams, player statistics, and more—all from a single Streamlit application.


Conclusion

Building a Streamlit Football Dashboard is an excellent way to combine Python, REST APIs, and interactive data visualization into a real-world project.

Using API-Football as the data source and Streamlit Community Cloud for deployment, this application delivers live football information for multiple leagues, including the Premier League, Bundesliga, La Liga, Ligue 1, Süper Lig, Saudi Pro League, MLS, and the Indian Super League.

Whether you’re learning Python, building your portfolio, or experimenting with sports analytics, this project provides a strong foundation that can easily be extended with live scores, advanced statistics, and visual analytics.


Discover more from Rotebit

Subscribe to get the latest posts sent to your email.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply