How k1yuse/fotdata-api works
FotData is a football analytics site and API. The main user journey is browser requests to the FastAPI service for match predictions and related league, schedule, and team information, which the site presents alongside forecast results. A daily data-and-model refresh supports those responses. The README documents additional capabilities, including pre-match prediction tracking, season simulations, player and club information, and sharing. Several API internals and frontend modules were not sampled; links to those features rely on README statements rather than inspected implementations.
Main entry points: main.py FastAPI service · update_data.py Data refresh and training · landing-story.js Landing story · FotData.html FotData site
Components 18
Web experience
- FotData site
FotData.html - Landing story
landing-story.js
API and football features
- FastAPI service
main.py - Match predictions
main.py - Schedules and tables
main.py - Season simulations
main.py - Prediction track record
main.py - Club and player data
main.py - Match details
main.py - Share previews
share_card.py
Data and modeling
- API-Football transforms
af_transform.py - Data refresh and training
update_data.py - Model and data cache
fotdata_model
Visual assets
- Ball geometry
ball-geometry.js - Background animation
bg-ball.js
Other components
- Site visitor
- Football-Data.org
- API-Football
Connections 18
- Site visitor → FotData site: browses
README.md - FotData site → FastAPI service: requests data
README.md - Landing story → FastAPI service: fetches predictions
landing-story.js - FastAPI service → Match predictions: serves
README.md - FastAPI service → Schedules and tables: serves
README.md - FastAPI service → Season simulations: serves
README.md - FastAPI service → Prediction track record: serves
README.md - FastAPI service → Club and player data: serves
README.md - FastAPI service → Match details: serves
main.py - FastAPI service → Share previews: renders previews
share_card.py - FastAPI service → Model and data cache: reads cached data
README.md - Data refresh and training → Model and data cache: updates models
README.md - Data refresh and training → Football-Data.org: collects fixtures
README.md - Data refresh and training → API-Football: collects player data
README.md - Data refresh and training → API-Football transforms: uses transforms
update_data.py - FastAPI service → API-Football transforms: uses transforms
main.py - Landing story → Ball geometry: uses geometry
landing-story.js - Background animation → Ball geometry: uses geometry
bg-ball.js