npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iamglitch404/fotmob

v1.0.2

Published

Fotmob API wrapper

Downloads

241

Readme

@iamglitch404/fotmob

This is a complete, strongly-typed NPM package that gives you access to real-time football (soccer) data, live scores, match details, transfers, and news from all major leagues.

1. TV Listings

Endpoint: fetchTvListings({ countryCode: 'GB' }) Sample Data:

{
  "startTime": "/Date(1784408400000)/",
  "endTime": "/Date(-62135596800000)/",
  "station": {
    "name": "BBC Sport online"
  },
  "program": {
    "teams": [
      { "name": "France", "isHome": true },
      { "name": "England", "isHome": false }
    ]
  }
}

2. Trending News

Endpoint: fetchTrendingNews({ lang: 'en', ccode3: 'GBR' }) Sample Data:

{
  "imageUrl": "...",
  "title": "‘Whatever Happens’—Messi Sends Emotional Message",
  "sourceStr": "SI"
}

3. Timeline News

Endpoint: fetchTimelineNews({ id: 87, type: 'league', language: 'en' }) Description: Fetches paginated news timeline for a specific entity (league/team).

4. Top Transfers

Endpoint: fetchTopTransfers({ minFeeCurrency: 'EUR', page: 1 }) Sample Data:

{
  "name": "Trincão",
  "fromClub": "Sporting CP",
  "toClub": "Al Ahli",
  "fee": {
    "value": 39350000
  }
}

5. League Table

Endpoint: fetchLeagueTable({ leagueId: 87 }) Description: Returns the complete standings table for a league.

6. Matches (By Date)

Endpoint: fetchMatches({ date: '20260719', ccode3: 'NPL' }) Sample Data:

{
  "id": 894789,
  "name": "World Cup",
  "matches": [
    {
      "home": { "name": "France", "score": 4 },
      "away": { "name": "England", "score": 6 },
      "status": {
        "reason": { "long": "Full-Time" }
      }
    }
  ]
}

7. League Details

Endpoint: fetchLeagueDetails({ id: 87 }) Description: Retrieves deep details, stats, and ongoing rounds for a league.

8. Audio Matches

Endpoint: fetchAudioMatches() Description: Returns a list of active matches that feature live audio commentary.

9. All Leagues

Endpoint: fetchAllLeagues({ locale: 'en', country: 'NPL' }) Description: Returns categorized leagues (Popular, International, Countries).

10. All-Time Top Scorers

Endpoint: fetchTopScorers({ leagueId: 77 }) Description: Top historic scorers for a given league/tournament.

11. Team of the Week

Endpoint: fetchTeamOfTheWeek({ leagueId: 77, roundId: 'Semi Finals', season: '2026' }) Sample Data:

{
  "name": { "fullName": "Unai Simón" },
  "rating": { "num": "8.2" },
  "isTots": false
}

12. Team of the Week Rounds

Endpoint: fetchTeamOfTheWeekRounds({ leagueId: 77, season: '2026' }) Sample Data:

{
  "roundId": "Semi Finals",
  "isCompleted": true
}

13. Live Fixtures

Endpoint: fetchLiveFixtures({ leagueId: 77 }) Description: Real-time polling endpoint for active live matches.

14. Player Details

Endpoint: fetchPlayerDetails({ id: 30981 }) Sample Data:

{
  "name": "Lionel Messi",
  "primaryTeam": { "teamName": "Inter Miami CF" },
  "mainLeague": { "leagueName": "Major League Soccer" }
}

15. Search

Endpoint: fetchSearchData({ term: 'messi', hits: 50 }) Sample Data:

{
  "type": "player",
  "name": "Lionel Messi",
  "teamName": "Inter Miami CF"
}

16. Team Details

Endpoint: fetchTeamDetails({ id: 8633 }) Sample Data:

{
  "name": "Real Madrid",
  "squad": {
    "position": "coach",
    "members": [{ "name": "José Mourinho" }]
  }
}

18. Match Details

Endpoint: fetchMatch({ id: 4694664 }) Sample Data:

{
  "id": 4694664,
  "home": { "name": "New York City FC", "score": 1 },
  "away": { "name": "DC United", "score": 2 },
  "status": {
    "reason": { "long": "Full-Time" }
  },
  "stats": {
    "stats": [
      { "title": "Table position", "stats": [8, 9] }
    ]
  }
}