# NBA Salaries Scraper - Player Contracts & Payrolls (`pshivam/nba-salaries-scraper`) Actor

NBA salary data from HoopsHype: every player's salary and cap hit by season, contract years with team and player options, and team payrolls with the salary cap, luxury tax line and aprons. All 30 teams, back to 1990. No proxy. Export to Excel, CSV or API.

- **URL**: https://apify.com/pshivam/nba-salaries-scraper.md
- **Developed by:** [Shivam Prajapati](https://apify.com/pshivam) (community)
- **Categories:** Sports
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 77.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## NBA Salaries Scraper - Player Contracts & Payrolls

**Scrape NBA salaries and contracts for all 30 teams: every player's current salary, years left on the contract, bird status and trade kicker, the salary of every season of his career, and the payroll of each team.** Pick teams, players and seasons, and get clean records you can export to Excel, CSV, JSON or the API. No login, no API key.

**Actively maintained.** Last update: 2026-11-20. Every release passes 90+ automated tests on real rosters of NBA teams.

### What can you use it for?

- **Fantasy, betting and analytics.** Salary next to age, position and team: who is paid what, and for how long.
- **Contract research.** Years remaining, salary still to be paid, trade kickers and minimum-salary contracts for every player on a roster.
- **Career earnings.** The salary of every season a player has been paid, and the total (`careerSalaries`).
- **Compare teams.** The payroll of each roster, its best paid player and the average salary, side by side.
- **Journalism and newsletters.** Salary tables for a team, a position or an age group, refreshed on a schedule with `onlyNew`.

### What data can you get?

Choose what to return. Three kinds of record come from the same roster data.

| You give | You get |
|---|---|
| `dataTypes`: players | One record per player: current contract, salary and salary history |
| `dataTypes`: salaries | One record per player and season of his career |
| `dataTypes`: teams | One payroll record per team |
| `teams`, `players`, `seasons`, `minSalary` | Only the records that match |

#### Fields

`recordType` tells the kind of record. A field that does not apply to a kind, such as the payroll of a player, is `null`.

##### Kind of record

| Field | What it is |
|---|---|
| `recordType` | player (a player with his current contract and salary history), salary (one season of one player) or team (a team's payroll for the season). |

##### The player

| Field | What it is |
|---|---|
| `playerId` | The player's id on ESPN. Empty for team records. |
| `playerName` | The player's name. |
| `position` | G, F, C, PG, SG, SF, PF as ESPN gives it. |
| `jersey` | The jersey number. |
| `age` | The player's age. |
| `birthDate` | The date of birth (YYYY-MM-DD). |
| `birthPlace` | The place of birth: city, state, country. |
| `college` | The college, when he went to one. |
| `heightInches` | The height in inches. |
| `weightLbs` | The weight in pounds. |
| `debutYear` | The year of his first NBA season. |
| `status` | The roster status, for example Active. |
| `profileUrl` | The player's page on ESPN. |

##### The team

| Field | What it is |
|---|---|
| `teamId` | The team's id on ESPN. |
| `team` | The team's name, for example Boston Celtics. |
| `teamAbbr` | The team's abbreviation as ESPN writes it: BOS, GS, NY, SA, UTAH, WSH, NO. |

##### Salary and contract

| Field | What it is |
|---|---|
| `season` | The season: 2026-27. For a player record it is the season of his current contract. |
| `seasonYear` | The year the season ends, as ESPN numbers it: 2027 for 2026-27. |
| `salary` | The salary in dollars. For a player record: the salary of the current season. Empty when none is listed (two-way and exhibit contracts, unsigned draft picks). |
| `yearsRemaining` | The years left on the current contract, this season included. |
| `salaryRemaining` | The salary still to be paid for the current season, in dollars. |
| `birdStatus` | The Bird rights status number ESPN gives: 0 for none. |
| `tradeKickerPercent` | The trade kicker of the contract in percent, when it has one. |
| `minimumSalaryException` | True when the contract was signed with the minimum salary exception. |
| `careerSalaries` | The sum of all the salaries ESPN lists for the player, in dollars. |
| `salaryHistory` | The salary of every season ESPN lists, newest first: a list of objects with season, seasonYear and salary. |

##### Team payroll

| Field | What it is |
|---|---|
| `playersOnRoster` | Team records: how many players are on the roster. |
| `playersWithSalary` | Team records: how many of them have a salary listed. |
| `payroll` | Team records: the sum of the listed salaries of the players on the roster, in dollars. It is not the official cap payroll: dead money and cap holds are not in it. |
| `highestPaidPlayer` | Team records: the best paid player of the roster. |
| `highestSalary` | Team records: his salary. |
| `averageSalary` | Team records: the average salary of the players with a salary. |

##### Where it came from

| Field | What it is |
|---|---|
| `sourceUrl` | The address the record was read from. |
| `scrapedAt` | When the record was collected (UTC). |

#### Example results

```json
{"recordType": "player", "playerId": "3975", "playerName": "Stephen Curry", "teamId": "9", "team": "Golden State Warriors", "teamAbbr": "GS", "position": "G", "jersey": "30", "age": 38, "birthDate": "1988-03-14", "birthPlace": "Akron, OH, USA", "college": "Davidson", "heightInches": 74.0, "weightLbs": 185.0, "debutYear": 2009, "status": "Active", "season": "2026-27", "seasonYear": 2027, "salary": 62587158, "yearsRemaining": 1, "salaryRemaining": 0, "birdStatus": 0, "minimumSalaryException": false, "careerSalaries": 538574476, "salaryHistory": [{"season": "2026-27", "seasonYear": 2027, "salary": 62587158}, {"season": "2025-26", "seasonYear": 2026, "salary": 59606817}], "profileUrl": "https://www.espn.com/nba/player/_/id/3975/stephen-curry", "sourceUrl": "https://site.api.espn.com/apis/site/v2/sports/basketball/nba/teams/9/roster", "scrapedAt": "2026-11-20T17:00:06Z"}
```

```json
{"recordType": "salary", "playerId": "3975", "playerName": "Stephen Curry", "teamId": "9", "team": "Golden State Warriors", "teamAbbr": "GS", "position": "G", "season": "2025-26", "seasonYear": 2026, "salary": 59606817, "sourceUrl": "https://site.api.espn.com/apis/site/v2/sports/basketball/nba/teams/9/roster", "scrapedAt": "2026-11-20T17:00:06Z"}
```

```json
{"recordType": "team", "teamId": "9", "team": "Golden State Warriors", "teamAbbr": "GS", "season": "2026-27", "seasonYear": 2027, "playersOnRoster": 18, "playersWithSalary": 8, "payroll": 178027757, "highestPaidPlayer": "Stephen Curry", "highestSalary": 62587158, "averageSalary": 22253470, "sourceUrl": "https://site.api.espn.com/apis/site/v2/sports/basketball/nba/teams/9/roster", "scrapedAt": "2026-11-20T17:00:06Z"}
```

### Input

| Input | What it does |
|---|---|
| `dataTypes` | players, salaries, teams |
| `teams` | Teams by abbreviation, nickname, city or full name |
| `players`, `seasons`, `minSalary` | Player names, seasons of the salary records, a minimum salary |
| `onlyNew` | Skip records that earlier runs of the same input returned |
| `maxItems` | Stop after this many records |
| `maxConcurrency`, `secondsBetweenRequests` | Speed |

### How much does it cost?

You pay per record returned. There is no start fee.

| Plan | Price per 1,000 records |
|---|---|
| Free | $2.00 |
| Bronze | $1.80 |
| Silver | $1.60 |
| Gold | $1.40 |

- All players of the league (about 530 records) cost about $1 on the Free plan. Every season of every current player (about 4,500 records) costs about $9.
- Use `maxItems` to cap the cost of a run, and `onlyNew` to pay only for new records on scheduled runs.

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/nba-salaries-scraper").call(run_input={
    "dataTypes": ["players", "teams"],
    "teams": ["Celtics", "Warriors"],
    "minSalary": 10000000,
})
for record in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(record["recordType"], record.get("playerName") or record["team"], record.get("salary") or record.get("payroll"))
```

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/nba-salaries-scraper` and an input like this:

```json
{"dataTypes": ["players"], "teams": [], "minSalary": 20000000}
```

### Good to know

- **Players on NBA rosters.** The Actor reads the rosters of the 30 teams: about 530 players. Free agents without a team and retired players are not in it. A player appears for the team he is on today.
- **Source.** The data is what ESPN publishes for its own site as JSON: each roster with every player's contract. It is as current as ESPN's roster pages.
- **Seasons.** A season is named by the years it spans: 2026-27, and `seasonYear` is the year it ends (2027). In `seasons`, give the year it starts: 2026 or 2026-27.
- **Salary history.** For each player: the salary of every season ESPN lists, which goes back to his first NBA season. Seasons without a salary are left out.
- **No salary listed.** Two-way contracts, Exhibit 10 deals and unsigned draft picks have no salary in ESPN's data: `salary` is empty.
- **Team payroll.** `payroll` is the sum of the listed salaries of the players on the roster. It is not the official cap number: dead money, cap holds, the salary cap, the tax line and the aprons are not in ESPN's data.
- **No contract options.** ESPN does not say which years of a contract are team or player options.
- **Speed.** All 30 teams take about 15 seconds: one request per team. A single team takes about 1 second.
- **Independent tool.** Not affiliated with the NBA, its teams or ESPN. Check a figure on an official source before you rely on it.

### FAQ

#### How do I get the salaries of an NBA team?

Put the team in `teams` (BOS, Celtics, Boston) and run. Each player is one record with his current salary.

#### Can I get a player's salary for every season?

Yes. Choose `dataTypes` salaries and put his name in `players`. Each season of his career is one record. The player record also has the whole history in `salaryHistory`.

#### Does it have team payrolls and the salary cap?

Team records give the payroll of the roster: the sum of the salaries ESPN lists. The salary cap, the tax line and the aprons are not in the data.

#### Does it show player options and team options?

No. ESPN's data has the salary of each season and the years remaining, not the type of each year.

#### How often is it updated?

It reads ESPN when you run it. Schedule it daily or weekly with `onlyNew` to catch new players and changes.

#### Is the data public?

Yes. ESPN publishes it as JSON for its own site. You are responsible for how you use it.

# Actor input Schema

## `dataTypes` (type: `array`):

players: one record per player. salaries: one record per player and season of his career. teams: one record per team with the payroll of its roster. Choose several to get all of them. Default: players.

## `teams` (type: `array`):

The teams to read, one per line: an abbreviation (BOS, GSW), a nickname (Celtics), a city (Boston) or the full name (Boston Celtics). Leave empty for all 30 teams.

## `players` (type: `array`):

Return only players whose name contains one of these words, for example Curry, Jokic, Anthony. Applies to players and salaries. Leave empty for all.

## `seasons` (type: `array`):

For salary records: the seasons to return, written by the year the season starts: 2025 or 2025-26 is the 2025-26 season. Leave empty for every season of each player's career.

## `minSalary` (type: `integer`):

Return only players and seasons paid at least this much, for example 20000000. Players without a listed salary are left out when this is set.

## `onlyNew` (type: `boolean`):

Skip records that earlier runs of this same input already returned, so you get and pay for new ones only. The first run works as usual and remembers what it returned, in your key-value store 'nba-salaries-scraper-only-new'.

## `maxItems` (type: `integer`):

Stop after this many records. You are charged per record returned.

## `maxConcurrency` (type: `integer`):

How many teams are read at the same time.

## `secondsBetweenRequests` (type: `number`):

Pause between requests. All 30 teams are 30 requests.

## Actor input object example

```json
{
  "dataTypes": [
    "players",
    "teams"
  ],
  "teams": [
    "Celtics",
    "Warriors"
  ],
  "onlyNew": false,
  "maxItems": 100,
  "maxConcurrency": 2,
  "secondsBetweenRequests": 0.5
}
```

# Actor output Schema

## `players` (type: `string`):

Players as a table.

## `payrolls` (type: `string`):

Team payrolls as a table.

## `runStats` (type: `string`):

Requests made, time spent and number of records for this run (RUN_STATS record).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "dataTypes": [
        "players",
        "teams"
    ],
    "teams": [
        "Celtics",
        "Warriors"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/nba-salaries-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "dataTypes": [
        "players",
        "teams",
    ],
    "teams": [
        "Celtics",
        "Warriors",
    ],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/nba-salaries-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "dataTypes": [
    "players",
    "teams"
  ],
  "teams": [
    "Celtics",
    "Warriors"
  ],
  "maxItems": 100
}' |
apify call pshivam/nba-salaries-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pshivam/nba-salaries-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/XjKy2YmX8x37dceKn/builds/V2ffYU4od26QPnlg6/openapi.json
