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

endzoneapi

v0.2.0

Published

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

Readme

endzoneapi

NFL data and odds API. JavaScript and TypeScript client for the EndzoneAPI NFL 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 ENDZONEAPI_API_KEY to your key (free at https://endzoneapi.com/signup) and run this. get_standings costs 2 credits.

import json, os, urllib.request

req = urllib.request.Request(
    "https://mcp.endzoneapi.com/v1/get_standings",
    data=json.dumps({"season": 2025, "division": "AFC West"}).encode(),
    headers={"x-api-key": os.environ["ENDZONEAPI_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.endzoneapi.com/v1/, JSON in, {"data": ...} out, with X-Credits-Used and X-Credits-Remaining headers.

EndzoneAPI at a glance

  • NFL data and odds API: NFL player props by sportsbook since 2023, plus play-by-play with EPA, stats and odds. REST and MCP.
  • 33 tools (32 on the free plan; get_prop_projections needs a paid 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.endzoneapi.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.endzoneapi.com/v1/ with your key in an x-api-key header and the arguments as a JSON body.
  • Python: pip install endzoneapi. JavaScript: npm install endzoneapi
  • Games: 7,400+. Every regular season and playoff game since 1999, with the consensus closing spread and total.
  • Plays: 1,200,000+. Play-by-play since 1999 with EPA, win probability, success rate, and CPOE.
  • Player stat lines: 470,000+. Weekly player box scores since 1999 across passing, rushing, receiving, defense, kicking, and returns.

| Credits | Tools | | --- | --- | | 1 | get_data_status, list_teams | | 2 | get_standings, get_schedule, search_players, get_injuries, get_depth_chart | | 5 | get_games, get_team_stats, get_player_stats, get_player_leaders, get_snap_counts, get_advanced_stats, get_line_at_time, get_rest_and_travel, get_fourth_down, get_playoff_projections, get_live_win_probability, get_game_probabilities | | 10 | get_plays, get_odds, get_game_detail, get_head_to_head, get_player_props, get_alt_lines, get_prop_history, get_prop_movement, get_alt_player_props, get_market_odds, get_prop_probabilities | | 25 | get_prop_projections (paid plans), get_line_movement, get_prop_backtest |

  • 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 endzoneapi

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

import { Client } from "endzoneapi"

const client = new Client() // reads ENDZONEAPI_API_KEY, or new Client({ apiKey: "..." })
const data = await client.getPlayerProps({"game_id":"2025_01_KC_LAC","market":"player_pass_yds","bookmaker":"draftkings"})
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("plays", 2025)   // first call: pages through the API
const again = await client.loadSeason("plays", 2025)  // second call: read from ~/.cache/endzoneapi/, no requests
await client.loadSeason("plays", 2025, { refresh: true }) // pull again

A season is the year the regular season starts: 2025 is the 2025-26 season.

| Dataset | Tool | What a row is | Requests for a typical season | Credits for a typical season | | --- | --- | --- | --- | --- | | games | getGames | one row per game with the consensus closing line | 1 | 5 | | plays | getPlays | every play with EPA and win probability, one pass per week (weeks 1 to 22) | 66 | 660 | | odds | getOdds | per-sportsbook lines for every game, billed per game returned | 1 | 2,850 | | props | getPlayerProps | every sportsbook prop line, one request per played game | 286 | 2,855 |

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("plays", 2025, { estimate: true }))
// { dataset: "plays", 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/endzoneapi/ (cacheDir or ENDZONEAPI_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 | | getStandings | Standings | 2 | | getTeamStats | Team stats | 5 | | getGames | Games | 5 | | getSchedule | Schedule | 2 | | getGameDetail | Game detail | 10 | | getHeadToHead | Head to head | 10 | | searchPlayers | Search players | 2 | | getPlayerStats | Player stats | 5 | | getPlayerLeaders | Player leaders | 5 | | getInjuries | Injuries | 2 | | getDepthChart | Depth chart | 2 | | getSnapCounts | Snap counts | 5 | | getPlays | Plays | 10 | | getAdvancedStats | Advanced stats | 5 | | getOdds | Odds | 10 | | getLineMovement | Line movement | 25 | | getLineAtTime | Line at time | 5 | | getRestAndTravel | Rest and travel | 5 | | getPlayerProps | Player props | 10 | | getPropHistory | Prop history | 10 | | getPropMovement | Prop movement | 10 | | getAltLines | Alt lines | 10 | | getAltPlayerProps | Alt player props | 10 | | getMarketOdds | Market odds | 10 | | getGameProbabilities | Game probabilities | 5 | | getPropProbabilities | Prop probabilities | 10 | | getPropBacktest | Prop backtest | 25 | | getPropProjections | Prop projections | 25 | | getFourthDown | Fourth down | 5 | | getLiveWinProbability | Live win probability | 5 | | getPlayoffProjections | Playoff projections | 5 | | getDataStatus | Data status | 1 |

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

MIT licensed.