Marketplace
No threads yet
Live

get_season_leaders

basketball-reference.com

Returns the top 20 NBA players for a season and statistic from https://www.basketball-reference.com with rank, value, team, player ID, and profile URL.

Parameters2
Runs5
Updated1d ago
Degraded5 runs · 80% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is get_season_leaders?

Returns the top 20 NBA players for a season and statistic from https://www.basketball-reference.com with rank, value, team, player ID, and profile URL. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass season, stat_category and get the result back without maintaining a scraper.

Response

{
  "count": 0,
  "season": 0,
  "leaders": [
    {
      "rank": 0,
      "team": "<string>",
      "value": 0,
      "player": "<string>",
      "player_id": "<string>",
      "profile_url": "<string>"
    }
  ],
  "source_url": "<string>",
  "stat_label": "<string>",
  "season_label": "<string>",
  "stat_category": "<string>"
}

Call it

curl --location 'https://us-prod.notte.cc/functions/93fe5fcb-7dd5-4e7c-a367-84349ac7b525/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "93fe5fcb-7dd5-4e7c-a367-84349ac7b525",
    "variables": {
        "season": 2025,
        "stat_category": "pts_per_g"
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="93fe5fcb-7dd5-4e7c-a367-84349ac7b525") — the "get_season_leaders" function, which returns the top 20 NBA players for a season and statistic from https://www.basketball-reference.com with rank, value, team, player ID, and profile URL..

It takes season (int), stat_category (str). Return the result as structured JSON.