âšī¸ About F1 Stats Platform
About This Platform
The F1 Stats Platform is a comprehensive, automated solution for collecting, analyzing, and visualizing Formula 1 data and statistics. Built with Python and powered by the FastF1 library, this platform provides real-time insights into every aspect of Formula 1 racing.
đ¯ Features
- â Free Practice Session Analysis
- â Qualifying & Sprint Qualifying Stats
- â Race Results & Classifications
- â Animated Race Position Charts
- â Tyre Strategy Visualization
- â Sector Time Comparisons
- â Teammate Analysis
- â RESTful API for WordPress Integration
- â Automated Cron Job Scheduling
- â Secure Admin Panel
đ§ Technology Stack
- Backend: Python 3.10, Flask
- Database: PostgreSQL
- Web Server: Apache with mod_wsgi
- Data Source: FastF1 Library
- Visualization: Matplotlib, Plotly, Seaborn
- Security: UFW, fail2ban, Cloudflare SSL
- Hosting: Contabo VPS
- Domain: tpc-data.com
đ API Documentation
This platform provides a RESTful API for accessing F1 statistics. To use the API, you need an API token.
Endpoints:
| Endpoint | Description |
|---|---|
/api/v1/health |
Health check (no auth required) |
/api/v1/teams |
Get all teams with metadata |
/api/v1/drivers |
Get all drivers with metadata |
/api/v1/stats/practice/<year>/<race> |
Get practice session statistics |
/api/v1/stats/qualifying/<year>/<race> |
Get qualifying statistics |
/api/v1/stats/race/<year>/<race> |
Get race statistics |
/api/v1/stats/latest |
Get latest statistics |
/api/v1/schedule |
Get upcoming race schedule |
Authentication: Include your API token in the Authorization header:
Authorization: Bearer YOUR_API_TOKEN
đĨ The Paddock Crew
This platform is proudly developed for The Paddock Crew - your source for Formula 1 news, analysis, and statistics.
Main Site: thepaddockcrew.com
Data API: tpc-data.com