Skip to content

An API that retrieves the current Formula 1 drivers championship standings

Notifications You must be signed in to change notification settings

rodrigodasilv/f1-standings-api

Repository files navigation

F1 Standings API

A simple API written in Python that scraps the F1 website for the current year drivers championship standings.

Avaliable endpoints

GET /drivers

Returns all drivers in the FIA Formula 1 Championship of the current year with their position, points, name and surname, team, team color (updated 2024) and picture

Example:

GET /f1 return

Instalation

Via Docker

The installation via Docker is pretty easy:

  1. Make sure Docker is installed;
  2. Download the repository;
  3. Open a terminal on the root folder of the repository;
  4. Run docker compose up --build and the API should be ready to go;

Manually

The manual installation can be done following the steps below:

  1. Make sure pip is installed;
  2. Download the repository;
  3. Open a terminal on the root folder of the repository;
  4. Run pip install -r requirements.txt and then python app.py and the API should be working;