• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
eliot

eliot

F1Rankings

Public
Like
F1Rankings
Home
Code
2
README.md
H
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
10/10/2025
Viewing readonly version of main branch: v9
View latest version
README.md

F1 Rankings API

A simple REST API that provides current Formula 1 championship standings for both drivers and constructors.

Endpoints

GET /

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 ] }

GET /drivers

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 ] }

GET /constructors

Returns only the constructor championship standings.

Response:

{ "season": "2023", "standings": [ { "position": 1, "constructor": "Red Bull Racing", "nationality": "Austrian", "points": 860, "wins": 21 } // ... more constructors ] }

Data Structure

Driver Object

  • 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)

Constructor Object

  • 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)

Usage Examples

# 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

Implementation Notes

  • 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

Future Enhancements

  • 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
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.