fantasy-premier-league-api
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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
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.

Readme

Keywords

none

Package Sidebar

Install

npm i fantasy-premier-league-api

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

50.7 kB

Total Files

18

Last publish

Collaborators

  • farazpatankar