New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fotmob

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fotmob

A JavaScript wrapper around the unofficial FotMob API

latest
Source
npmnpm
Version
2.4.1
Version published
Weekly downloads
311
241.76%
Maintainers
0
Weekly downloads
 
Created
Source

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

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

Keywords

fotmob

FAQs

Package last updated on 18 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts