https://github.com/roimee6/fotmob
A JavaScript wrapper around the unofficial FotMob API
https://github.com/roimee6/fotmob
Last synced: 4 months ago
JSON representation
A JavaScript wrapper around the unofficial FotMob API
- Host: GitHub
- URL: https://github.com/roimee6/fotmob
- Owner: roimee6
- License: mit
- Created: 2025-02-20T15:12:17.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-20T15:15:54.000Z (4 months ago)
- Last Synced: 2025-02-20T16:19:12.922Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fotmob
[](LICENSE) [](https://github.com/RichardLitt/standard-readme)  [](https://www.npmjs.com/package/@max-xoo/fotmob)
A JavaScript wrapper around the unofficial [FotMob](https://www.fotmob.com/) API
Library based on an old library that is no longer operational and no longer maintained by [bgrnwd](https://github.com/bgrnwd)## Table of Contents
- [fotmob](#fotmob)
- [Table of Contents](#table-of-contents)
- [Install](#install)
- [Usage](#usage)
- [Contributing](#contributing)## Install
```sh
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.```ts
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](https://github.com/roimee6/fotmob/issues/new) or submit a pull request.