npm.io
0.6.0 • Published 8h ago

fantasy-premier-league-api

Licence
MIT
Version
0.6.0
Deps
2
Size
52 kB
Vulns
2
Weekly
0
Stars
1

Fantasy Premier League API

A type-safe wrapper for the Fantasy Premier League API.

 All Contributors: 2  Code of Conduct: Kept  Coverage  License: MIT  npm version  TypeScript: Strict

Usage

npm i fantasy-premier-league-api

getBootstrapStatic

Get the bootstrap-static endpoint data which returns:

  • element_stats
  • element_types
  • elements
  • events
  • game_settings
  • phases
  • teams
  • total_players
  • defensive_contribution
  • clearances_blocks_interceptions
  • recoveries
  • tackles
  • price_change_calibrating
  • price_change_hourly_rate
  • price_change_locked_until
  • price_change_percent
  • price_change_projections
import { getBootstrapStatic } from "fantasy-premier-league-api";

const bootstrap = await getBootstrapStatic();
getEventFixtures

Get the fixtures for a specific event.

import { getEventFixtures } from "fantasy-premier-league-api";

const fixtures = await getEventFixtures({ event: 1 });

Contributors

Faraz Patankar
Faraz Patankar

Josh Goldberg
Josh Goldberg

This package was templated with create-typescript-app.