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

strikerapi

v0.2.0

Published

JavaScript and TypeScript client for the StrikerAPI Soccer data API: stats, play-by-play, odds and player props. No dependencies.

Readme

strikerapi

Soccer data and odds API. JavaScript and TypeScript client for the StrikerAPI Soccer data API. No dependencies; Node 18+, Deno, Bun, and edge runtimes with fetch.

First call in plain Python

No package needed: standard library only. Set STRIKERAPI_API_KEY to your key (free at https://strikerapi.com/signup) and run this. get_standings costs 2 credits.

import json, os, urllib.request

req = urllib.request.Request(
    "https://mcp.strikerapi.com/v1/get_standings",
    data=json.dumps({"season": 2025}).encode(),
    headers={"x-api-key": os.environ["STRIKERAPI_API_KEY"], "content-type": "application/json"},
)
with urllib.request.urlopen(req) as resp:
    data = json.load(resp)["data"]
    print("credits left:", resp.headers["x-credits-remaining"])
rows = next(v for v in data.values() if isinstance(v, list))
for row in rows[:5]:
    print(row)

Every tool works the same way: POST https://mcp.strikerapi.com/v1/, JSON in, {"data": ...} out, with X-Credits-Used and X-Credits-Remaining headers.

StrikerAPI at a glance

  • Soccer data and odds API: Player prop odds by sportsbook, lineups, shot maps, xG and lines for 17 soccer leagues. REST, MCP.
  • 31 tools, every one on the free plan. Each call costs 1 to 25 credits; the table below has every price.
  • Free: 500 credits every month, no card. Plans: Starter $19/month (10,000 credits), Pro $49/month (30,000 credits), Scale $149/month (125,000 credits), Business $299/month (300,000 credits). Top-ups: 400 credits per $1, from $5.
  • MCP server: https://mcp.strikerapi.com/mcp?key=YOUR_API_KEY (or the key in an x-api-key header; Claude and ChatGPT connect with a sign-in instead)
  • REST: POST https://mcp.strikerapi.com/v1/ with your key in an x-api-key header and the arguments as a JSON body.
  • Python: pip install strikerapi. JavaScript: npm install strikerapi
  • Shot locations: Complete from 2013-14 in most leagues.
  • Sportsbook lines: Three-way, by book.
  • Leagues: Seventeen competitions.

| Credits | Tools | | --- | --- | | 1 | get_data_status, list_teams, search_players | | 2 | get_squad, list_games, get_schedule, get_standings, get_ratings, get_head_to_head | | 5 | get_availability, get_season_projections, get_game, get_lineups, get_player, get_player_games, get_leaders, get_team_stats, get_odds, get_line_at_time, get_rest_and_travel, get_game_probabilities | | 10 | get_scoring_projections, get_events, get_shot_map, get_line_movement, get_player_props, get_prop_history, get_prop_movement, get_market_odds, get_prop_probabilities | | 25 | get_prop_backtest |

  • get_squad: 2 credits a call, 10 for its bulk form (a whole day, card or league).
  • get_availability: 5 credits a call, 10 for its bulk form (a whole day, card or league).
  • get_odds: 5 credits a call, 10 for its bulk form (a whole day, card or league).
  • get_player_props: 10 credits a game before it starts and 20 once it has been played (accounts opened before October 30 2026 pay 10 for every game).
  • get_prop_history: 10 credits for every 25 games already played that a call covers, and at least 10 a call (accounts opened before November 1 2026 pay 10 a call).

Install

npm install strikerapi

Get a free key (500 credits every month, no card) at https://strikerapi.com/signup?utm_source=npm&utm_medium=readme&utm_campaign=strikerapi-js and set STRIKERAPI_API_KEY.

import { Client } from "strikerapi"

const client = new Client() // reads STRIKERAPI_API_KEY, or new Client({ apiKey: "..." })
const data = await client.getStandings({"league":"mls"})
console.log(data)
console.log("credits left:", client.lastCreditsRemaining)

Every method takes one object with the API's parameter names and returns the unwrapped data. client.call("tool_name", {...}) reaches any tool newer than this package. Errors are typed: AuthError (401), InsufficientCreditsError (402), NotFoundError (404), RateLimitError (429, with retryAfter), APIError otherwise. 429 and 5xx responses are retried with backoff.

Load a whole season

client.loadSeason(dataset, season) pulls every page of one dataset for a season and returns an array of row objects. Nested fields become dotted keys (home.abbrev).

const rows = await client.loadSeason("games", 2025)   // first call: pages through the API
const again = await client.loadSeason("games", 2025)  // second call: read from ~/.cache/strikerapi/, no requests
await client.loadSeason("games", 2025, { refresh: true }) // pull again

Seasons are named by the year they start (2025 is 2025-26; MLS, NWSL, Liga MX, Brazil and Argentina use the calendar year). The default league is the Premier League; pass params: { league: "mls" } and so on.

| Dataset | Tool | What a row is | Requests for a typical season | Credits for a typical season | | --- | --- | --- | --- | --- | | games | listGames | one row per match (league defaults to the Premier League; pass league=) | 2 | 4 | | events | getEvents | every match event with shot locations and xG, one run of requests per played match | 1,142 | 11,404 | | odds | getOdds | sportsbook lines for every priced match, billed per match returned | 4 | 760 | | props | getPlayerProps | every sportsbook prop line, one request per played game | 382 | 3,804 |

Price a big pull first

Every request costs the tool's normal credits. Per-game datasets (plays, odds and props by game) make one request per played game, so a full season is thousands of credits. Ask first:

console.log(await client.loadSeason("events", 2025, { estimate: true }))
// { dataset: "events", season: ..., calls: ..., credits: ..., basis: ..., data_calls: 0 }

estimate: true makes no data requests and spends nothing. Where the tool accepts estimate_only (season-wide odds, props) it asks the server for the price; it uses the games already in your cache when there are some, and typical season sizes otherwise. The numbers in the table are the same typical sizes: they are approximate, an order of magnitude and not a quote.

  • maxCalls (default 100) stops a pull that turns out larger than expected. It throws LoadLimitError, which holds the rows fetched so far (err.rows), and caches nothing. Raise it deliberately for a big pull.
  • Extra tool arguments go in params ({ team: "BOS" }, { league: "mls" }). Do not pass the season, paging or date arguments: loadSeason sets them.
  • In Node the result is cached as JSON lines under ~/.cache/strikerapi/ (cacheDir or STRIKERAPI_CACHE_DIR moves it, cache: false skips it). Browsers and other runtimes without node:fs have no cache.
  • client.lastLoad reports the last load: rows, calls, creditsUsed and cached.
  • Per-game datasets skip games that start today or later.

Tools

| Method | What it returns | Credits | | --- | --- | --- | | listTeams | List teams | 1 | | listGames | List games | 2 | | getSchedule | Schedule | 2 | | getGame | Game | 5 | | getLineups | Lineups | 5 | | getStandings | Standings | 2 | | getRatings | Ratings | 2 | | getHeadToHead | Head to head | 2 | | searchPlayers | Search players | 1 | | getAvailability | Availability | 5 | | getSquad | Squad | 2 | | getPlayer | Player | 5 | | getPlayerGames | Player games | 5 | | getLeaders | Leaders | 5 | | getTeamStats | Team stats | 5 | | getEvents | Events | 10 | | getShotMap | Shot map | 10 | | getOdds | Odds | 5 | | getLineMovement | Line movement | 10 | | getLineAtTime | Line at time | 5 | | getRestAndTravel | Rest and travel | 5 | | getPlayerProps | Player props | 10 | | getPropHistory | Prop history | 10 | | getPropMovement | Prop movement | 10 | | getMarketOdds | Market odds | 10 | | getGameProbabilities | Game probabilities | 5 | | getPropProbabilities | Prop probabilities | 10 | | getPropBacktest | Prop backtest | 25 | | getScoringProjections | Scoring projections | 10 | | getSeasonProjections | Season projections | 5 | | getDataStatus | Data status | 1 |

Full reference with response shapes: https://strikerapi.com/docs?utm_source=npm&utm_medium=readme&utm_campaign=strikerapi-js. The same data is available as a hosted MCP server for Claude, ChatGPT and Cursor: https://strikerapi.com/mcp. A Python client is on PyPI: pip install strikerapi.

MIT licensed.