Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fotmob-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fotmob-api

fotmob api wrapper , get all the data you need from fotmob

  • 0.0.7
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Fotmob-Api Package

The package is still in the development process.

Api Search Functions

FunctionParametersDescription
getTeam (async)teamId : string, full : booleanget any football team informations using fotmob team id
getPlayer (async)playerId : string, full : booleanget any football player/coach informations using fotmob team id
getSearchResult (async)keyword : string, optionssearch in fotmob for teams/players or coaches (squad)/news/matches/leagues
import { getTeam, getPlayer, getSearchResult } from "fotmob-api";

async function test(){
    try{
    let results=await getSearchResult("messi");//searching for a player
    /*

    advanced search
    let results = await getSearchResult("messi", {
    filter: "squadMember"
    });

    */
    console.log(results);

    } catch(err){
        console.log(err);
    }

}
test()

Note: The Fotmob API is public but without any official documentation.

Anyone who wants to contribute can open a pull request on GitHub.

Keywords

FAQs

Package last updated on 13 Mar 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc