0.3.2 • Published 1 year ago

f1-api-node v0.3.2

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

Formula1 API

f1

The scraper scrapes this website: https://www.formula1.com

Installation

npm i f1-api-node

Example snippet

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()
    console.log(driverLineup)
}

myFunction()

Functions

1. getConstructorStandings

DescriptionNeeds Paramter ?Paramter DescriptionDefault Argument
Fetch Constructors standings from points tableYes - 1The year from which you want to extract points table for (1950 - current)current year

2. getDriverStandings

DescriptionNeeds Paramter ?Paramter DescriptionDefault Argument
Fetch F1 driver standings from points tableYes - 1The year from which you want to extract points table for (1950 - current)current year

3. getDriverLineup

DescriptionNeeds Paramter ?Paramter DescriptionDefault Argument
Fetch the current lineup of F1 driversNo--

4. getTeamLineup

DescriptionNeeds Paramter ?Paramter DescriptionDefault Argument
Fetch the current list of F1 teamsNo--

5. getWorldChampions

DescriptionNeeds Paramter ?Paramter DescriptionDefault Argument
Fetch all the world championsNo--

6. getRaceResults

DescriptionNeeds Paramter ?Paramter DescriptionDefault Argument
Fetch race results of all the grand prix in a given yearYes - 1The year from which you want to extract race results (1950 - current)-

Snapshots

If you want to have a look at the output from the given functions check this.

Usage

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

Report Problems

If you have any problems regarding this project, read the following disclaimer.

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago