Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unofficial-f1-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unofficial-f1-api

![f1](https://assets.stickpng.com/images/61fc01fe3cf0e70004222071.png) The scraper scrapes this given https://www.formula1.com/

  • 0.1.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

F1 API

f1
The scraper scrapes this given https://www.formula1.com/

Functions

  • getConstructorStandings

    Fetch Constructors standings from points table.
    The function takes one argument: The year from which you want to extract points table for.
    Default argument is the current year.

  • getDriverStandings
    Fetch F1 driver standings from points table.
    The function takes one argument: The year from which you want to extract points table for.
    Default argument is the current year.

  • getDriverData
    Fetch the current lineup of F1 drivers.
    No arguments

  • getTeamsData
    Fetch the current list of F1 teams along with their information.
    No arguments

  • getWorldChampions
    Fetch all the world champions
    No arguments

Snapshots

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

Example snippet

Example on how to use one the given functions.
The following function will print the current lineup of F1 drivers.

const f1Api = require('f1-api') 

const myFunction = async () => {
    const driverLineup = await f1Api.getDriverData()
    console.log(driverLineup)
}

myFunction()

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.

Keywords

FAQs

Package last updated on 23 Oct 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc