Public
Like
F1Rankings
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v11View latest version
A simple REST API that provides current Formula 1 championship standings for both drivers and constructors.
Returns both driver and constructor standings in a single response.
Response:
{ "season": "2023", "drivers": [ { "position": 1, "driver": "Max Verstappen", "nationality": "Dutch", "team": "Red Bull Racing", "points": 575, "wins": 19 } // ... more drivers ], "constructors": [ { "position": 1, "constructor": "Red Bull Racing", "nationality": "Austrian", "points": 860, "wins": 21 } // ... more constructors ] }
Returns only the driver championship standings.
Response:
{ "season": "2023", "standings": [ { "position": 1, "driver": "Max Verstappen", "nationality": "Dutch", "team": "Red Bull Racing", "points": 575, "wins": 19 } // ... more drivers ] }
Returns only the constructor championship standings.
Response:
{ "season": "2023", "standings": [ { "position": 1, "constructor": "Red Bull Racing", "nationality": "Austrian", "points": 860, "wins": 21 } // ... more constructors ] }
position: Championship position (number)driver: Full name of the driver (string)nationality: Driver's nationality (string)team: Constructor/team name (string)points: Total championship points (number)wins: Number of race wins (number)
position: Championship position (number)constructor: Team/constructor name (string)nationality: Constructor's nationality (string)points: Total championship points (number)wins: Number of race wins (number)
# Get all standings curl https://your-val-url.web.val.run/ # Get only driver standings curl https://your-val-url.web.val.run/drivers # Get only constructor standings curl https://your-val-url.web.val.run/constructors
- Currently uses mock data for demonstration purposes
- Built with Hono framework for fast HTTP handling
- CORS enabled for cross-origin requests
- Error handling with appropriate HTTP status codes
- Can be easily extended to fetch real-time data from F1 APIs
- Integration with live F1 data APIs (Ergast, OpenF1, etc.)
- Historical season data endpoints
- Race results and calendar information
- Caching for improved performance
- Rate limiting for production use
