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

fpl-api-node

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fpl-api-node

A simple node wrapper for the fantasy.premierleague restful web api

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

fpl-api-node

A simple node wrapper for the fantasy.premierleague.com restful web api

Usage

const fplapi = require('fpl-api-node');

fplapi.getEntry(123456).then((data) => {

    // do something with our data
    console.log(data);

}).catch((err) => {
    // something went wrong
});

API

fplApiNode.getAllStaticData() ⇒ Promise

All static game data. A promise that if fullfilled returns a json object mapped to: https://fantasy.premierleague.com/drf/bootstrap-static

Kind: static method of fplApiNode

fplApiNode.getTeams() ⇒ Promise

Teams (Premier Leaugue clubs) A promise that if fullfilled returns a json object mapped to: https://fantasy.premierleague.com/drf/teams

Kind: static method of fplApiNode

fplApiNode.getElements() ⇒ Promise

Elements (players) A promise that if fullfilled returns a json object mapped to: https://fantasy.premierleague.com/drf/elements

Kind: static method of fplApiNode

fplApiNode.getEvent(eventNumber) ⇒ Promise

Event /gameweek details A promise that if fullfilled returns a json object mapped to: https://fantasy.premierleague.com/drf/event/${eventNumber}/live

Kind: static method of fplApiNode

ParamDescription
eventNumberThe event / gameweek number

fplApiNode.getEntry(id) ⇒ Promise

Entry (FPL team) A promise that if fullfilled returns a json object mapped to: https://fantasy.premierleague.com/drf/entry/${id}

Kind: static method of fplApiNode

ParamDescription
idEntry id

fplApiNode.getEntryHistory(id) ⇒ Promise

Entry history. An expanded entry view with additional objects. A promise that if fullfilled returns a json object mapped to: https://fantasy.premierleague.com/drf/entry/${id}/history

Kind: static method of fplApiNode

ParamDescription
idEntry id

fplApiNode.getEntryEvent(id, eventNumber) ⇒ Promise

Entry event. Details of a particular event (or gameweek) A promise that if fullfilled returns a json object mapped to: https://fantasy.premierleague.com/drf/entry/${id}/event/${eventNumber}

Kind: static method of fplApiNode

ParamDescription
idEntry id
eventNumberThe event / gameweek number

fplApiNode.getEntryTransfers(id) ⇒ Promise

Entry transfers. A promise that if fullfilled returns a json object mapped to: https://fantasy.premierleague.com/drf/entry/${id}/transfers

Kind: static method of fplApiNode

ParamDescription
idEntry id

fplApiNode.getClassicLeagueStandings(id) ⇒ Promise

Classic league standings A promise that if fullfilled returns a json object mapped to: https://fantasy.premierleague.com/drf/leagues-classic-standings/${id}

Kind: static method of fplApiNode

ParamDescription
idLeague id

FAQs

Package last updated on 07 Dec 2016

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