
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
f1-api-node
Advanced tools
Completely Updated and Adjusted according to the New Changes in Formula 1's Website ~ 2025!

The scraper scrapes this website: https://www.formula1.com
npm i f1-api-node
The following function will print the current lineup of F1 drivers.
const f1Api = require("f1-api-node");
const myFunction = async () => {
const driverLineup = await f1Api.getDriverData(); // replace this function
console.log(driverLineup);
};
myFunction();
| Description | Needs Paramter ? | Paramter Description | Default Argument |
|---|---|---|---|
| Fetch Constructors standings from points table | Yes - 1 | The year from which you want to extract points table for (1950 - current) | current year |

| Description | Needs Paramter ? | Paramter Description | Default Argument |
|---|---|---|---|
| Fetch F1 driver standings from points table | Yes - 1 | The year from which you want to extract points table for (1950 - current) | current year |

| Description | Needs Paramter ? | Paramter Description | Default Argument |
|---|---|---|---|
| Fetch the current lineup of F1 drivers | No | - | - |

| Description | Needs Paramter ? | Paramter Description | Default Argument |
|---|---|---|---|
| Fetch the current list of F1 teams | No | - | - |

| Description | Needs Paramter ? | Paramter Description | Default Argument |
|---|---|---|---|
| Fetch all the world champions | No | - | - |

| Description | Needs Paramter ? | Paramter Description | Default Argument |
|---|---|---|---|
| Fetch race results of all the grand prix in a given year | Yes - 1 | The year from which you want to extract race results (1950 - current) | - |

| Description | Needs Paramter ? | Paramter Description | Default Argument |
|---|---|---|---|
| Fetch race schedule for an entire year | Yes - 1 | The year from which you want to extract race schedule | current year |

| Description | Needs Paramter ? | Paramter Description | Default Argument |
|---|---|---|---|
| Fetch fastest laps for all races in a year | Yes - 1 | The year from which you want to extract fastest laps | current year |

If you want to have a look at the output from the given functions check this.
The docker image of the rest api can be found on Docker Hub
docker pull katheyash/f1-api-node:tagname
docker pull ghcr.io/yashkathe/f1-api-node:2
docker run -p 80:80 --name f1-api-node-test-1 katheyash/f1-api-node:1
docker run --env-file ./.env -p 3001:3001 --name f1-api-node-test-1 f1-api-node:1
WARNING: Abusing this library may result in an IP ban from the host website.
Please use with caution and try to limit the rate and amount of your requests if you value your access to formula1.com
If you have any problems regarding this project, read the following disclaimer.
FAQs
A simple library written in typescript to fetch Formula-1 data
We found that f1-api-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.