2.4.0 • Published 3 months ago

fotmob v2.4.0

Weekly downloads
8
License
MIT
Repository
github
Last release
3 months ago

fotmob

license standard-readme compliant npm npm download month Node.js CI

A JavaScript wrapper around the unofficial FotMob API

Table of Contents

Install

npm install fotmob

Usage

All methods return a promise that resolves to the JSON response from FotMob, with type definitions for the response included.

import Fotmob from "fotmob";
const fotmob = new Fotmob();

let matches = await fotmob.getMatchesByDate("20201020");
let league = await fotmob.getLeague("42", "overview", "league", "America/New_York")
let team = await fotmob.getTeam("6017", "overview", "team", "America/New_York")
let player = await fotmob.getPlayer("1071179")
let details = await fotmob.getMatchDetails("3399269")
let worldNews = await fotmob.getWorldNews()
let transfers = await fotmob.getTransfers();
let AllLeagues = await fotmob.getAllLeagues();
let teamSeasonStats = await fotmob.getTeamSeasonStats()
let myCustomRequest = await fotmob.request("matches", { date: "20201020" })

Contributing

Feel free to open an issue or submit a pull request.

License

MIT © Brian Greenwood

2.4.0

3 months ago

2.3.1

3 months ago

2.3.0

4 months ago

2.2.1

4 months ago

2.1.1

4 months ago

2.1.0

4 months ago

2.0.0

4 months ago

1.1.0

10 months ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago