ESPN FF API
What it is
A node package written for the purpose of retrieving ESPN fantasy football information from both private and public leagues
What it needs
Two cookie values from the ESPN site(espn_s2 and SWID) and a league id.
What it does
Hits the ESPN API and returns a promise that resolves to an object containing what league information you are querying for.
const espnFF = ;const cookies =espnS2 : '<your espn s2 cookie value>'SWID : '<your SWID cookie value>';//returns the entire league scoreboard objectespnFF;//returns all league matchups in a simplified objectespnFF;//returns a specific team matchupespnFF;//returns the entire league standings objectespnFF;//returns a simplified league standings object sorted by overallStandingespnFF;//returns team-level box score data along with a list of player objects for a specific team for a specific weekespnFF;//returns team-level box score data along with a list of player objects for a specific matchup for a specific weekespnFF;//returns simplified box score data for individual players of a specific team for a specific weekespnFF;