/fotmob

:soccer: A JS/TS wrapper around the unofficial FotMob API

Primary LanguageTypeScriptMIT LicenseMIT

fotmob

license standard-readme compliant npm Node.js CI

A JavaScript wrapper around the unofficial FotMob API

Table of Contents

Install

npm install fotmob

Usage

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

(async() => { 
  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")
})();

Contributing

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

License

MIT © Brian Greenwood