A type-safe wrapper for the Fantasy Premier League API.
npm i fantasy-premier-league-api
Get the bootstrap-static endpoint data which returns:
- element_stats
- element_types
- elements
- events
- game_settings
- phases
- teams
- total_players
import { getBootstrapStatic } from "fantasy-premier-league-api";
const bootstrap = await getBootstrapStatic();
Get the fixtures for a specific event.
import { getEventFixtures } from "fantasy-premier-league-api";
const fixtures = await getEventFixtures({ event: 1 });
Faraz Patankar 💻 🖋 📖 🤔 🚇 🚧 📆 🔧 |
Josh Goldberg ✨ 🔧 |
💙 This package was templated with
create-typescript-app
.