Skip to content
/ fotmob Public

A JavaScript wrapper around the unofficial FotMob API

License

Notifications You must be signed in to change notification settings

roimee6/fotmob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fotmob

license standard-readme compliant npm npm download month

A JavaScript wrapper around the unofficial FotMob API
Library based on an old library that is no longer operational and no longer maintained by bgrnwd

Table of Contents

Install

npm install @max-xoo/fotmob

Usage

This package is meant to be used in the backend (Node.js) due to CORS limitations. All methods return a promise that resolves to the JSON response from FotMob, with type definitions for the response included.

import Fotmob from "@max-xoo/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.

About

A JavaScript wrapper around the unofficial FotMob API

Resources

License

Stars

Watchers

Forks