# NHL Player, Goalie & Team Stats by Season (`mrdoe/nhl-player-goalie-team-stats`) Actor

NHL season stats for skaters, goalies and teams: goals, assists, points, save percentage, goals against, faceoffs and more, for any season since 1917. Regular season, playoffs or preseason. Sort by any stat, filter by team or player. No login.

- **URL**: https://apify.com/mrdoe/nhl-player-goalie-team-stats.md
- **Developed by:** [MrDoe](https://apify.com/mrdoe) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 row returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

![NHL Player, Goalie & Team Stats by Season - NHL skater, goalie and team season stats for any season, ranked by the stat you choose.](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/nhl-player-goalie-team-stats--hero.png)

### What does NHL Player, Goalie & Team Stats by Season do?

NHL Player, Goalie & Team Stats returns National Hockey League season statistics as one row per skater, goalie or team. Choose the report, a season since 1917, and regular season, playoffs or preseason, then rank by any statistic such as points, goals, wins, save percentage or goals-against average. Each row has the rank, name, team, position, games played and a stats object with every published statistic as numbers. Filter by team or player name.

### Why use NHL Player, Goalie & Team Stats by Season?

- Skaters, goalies and teams in one Actor and one layout.
- Any season and any ranking stat.
- Playoff and preseason splits as well as the regular season.
- Every statistic as a number in one stats object.
- Works logged out; no key needed.

### What makes this different

NHL stat pages show one view at a time. This Actor returns skater, goalie and team season tables with every published statistic, ranked by the stat you pick and filtered by team or player, so a season model dataset is one run.

### How it works

![NHL Player, Goalie & Team Stats by Season workflow: your input, collection, output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/nhl-player-goalie-team-stats--how-it-works.png)

1. **Your input** — choose the report, season, game type and sort stat.
2. **The Actor collects it** — the Actor collects the full table and applies your filters.
3. **Your output** — you get one clean row per skater, goalie or team.

### What data can you extract?

The dataset has 12 fields per row:

| Field | Type | Description |
|---|---|---|
| `report` | string | skater, goalie or team. |
| `season` | number | NHL season id, for example 20252026. |
| `gameType` | string | regular, playoffs or preseason. |
| `rank` | number | Rank by the sort stat. |
| `playerId` | number | Player identifier (null for teams). |
| `name` | string | Player or team name. |
| `teamId` | number | Team identifier. |
| `team` | string | Team abbreviation or name. |
| `position` | string | Position (skaters). |
| `gamesPlayed` | number | Games played. |
| `stats` | object | Every statistic for the row. |
| `scrapedAt` | string | Collection time (ISO 8601). |

### How to use NHL Player, Goalie & Team Stats by Season

![NHL Player, Goalie & Team Stats by Season input form](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/nhl-player-goalie-team-stats--input.png)

1. Open the Actor and go to the **Input** tab.
2. Choose the **Report**, set the **Season start year** (or leave empty), optionally set **Sort by** and filters, and choose **Max rows**.
3. Optionally set filters and a **Max results** limit.
4. Click **Start**. A default run finishes in under a minute.
5. Open the **Output** tab, then download the dataset or connect it to your tools.

### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `report` | string | No | `"skater"` | Skater stats, goalie stats or team stats. |
| `season` | integer | No | — | The year the season starts, for example 2025 for 2025-26. Leave empty for the latest season with games. |
| `gameType` | string | No | `"regular"` | Regular season, playoffs or preseason. |
| `sortStat` | string | No | — | Statistic to rank by, for example points, goals, assists, wins, savePct, goalsAgainstAverage. Leave empty for points (skaters, teams) or wins (goalies). |
| `teams` | array | No | `[]` | Only rows for teams matching these abbreviations or names, for example EDM, Bruins. |
| `players` | array | No | `[]` | Only players whose name contains one of these words. |
| `maxRows` | integer | No | `5` | Maximum number of rows returned. Default is 5 for a quick test; set 0 to return everything available. |
| `proxyConfiguration` | object | No | `{"useApifyProxy":false}` | Optional. The data is public and works without a proxy. |

### Output Data

![NHL Player, Goalie & Team Stats by Season dataset table](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/nhl-player-goalie-team-stats--output.png)

`stats` holds every statistic as numbers, for example `goals`, `points`, `savePct` or `goalsAgainstAverage`. `season` is the NHL season id, such as 20252026. `rank` follows the stat you sorted by. Fields that do not apply are `null`.

![NHL Player, Goalie & Team Stats by Season field map of one record](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/nhl-player-goalie-team-stats--fields.png)

A real dataset item:

```json
{
  "report": "skater",
  "season": 20252026,
  "gameType": "regular",
  "rank": 1,
  "playerId": 8478402,
  "name": "Connor McDavid",
  "teamId": null,
  "team": "EDM",
  "position": "C",
  "gamesPlayed": 82,
  "stats": {
    "assists": 90,
    "evGoals": 34,
    "evPoints": 82,
    "faceoffWinPct": 0.49512,
    "gameWinningGoals": 4,
    "gamesPlayed": 82,
    "goals": 48,
    "otGoals": 1,
    "penaltyMinutes": 44,
    "plusMinus": 17,
    "points": 138,
    "pointsPerGame": 1.68292,
    "ppGoals": 13,
    "ppPoints": 54,
    "shGoals": 1,
    "shPoints": 2,
    "shootingPct": 0.15686,
    "shots": 306,
    "timeOnIcePerGame": 1379.1219
  },
  "scrapedAt": "2026-09-21T11:24:34.904Z"
}
```

### Usage Examples

#### Top 25 scorers of 2025-26

```json
{
  "report": "skater",
  "season": 2025,
  "sortStat": "points",
  "maxRows": 25
}
```

#### Every goalie by save percentage

```json
{
  "report": "goalie",
  "season": 2025,
  "sortStat": "savePct",
  "maxRows": 0
}
```

#### Team stats for the playoffs

```json
{
  "report": "team",
  "season": 2025,
  "gameType": "playoffs",
  "maxRows": 0
}
```

### Tips for Best Results

- Default is 5 results for a fast test. Set the max to 0 to return everything available.

### Known Limitations

- Season totals only; game logs and splits are not included.
- Sort stat names follow the source, such as savePct and goalsAgainstAverage.
- Preseason and the first days of a season have few rows.
- Current-season numbers change after every game.

### Integrations

Run it from the Apify API, on a schedule, or from a webhook. Send results straight to Google Sheets, Make, Zapier, Slack or your own database with Apify's built-in integrations.

### Export Formats

Download the dataset as JSON, CSV, Excel, XML, HTML table or RSS from the **Output** tab or the API.

### Frequently Asked Questions

#### Does it need an account or API key?

No. The Actor reads public data and needs no account or key.

#### Am I charged for failed results?

No. You are only charged for results that are written to the dataset.

#### Do I need an account or login?

No. The Actor reads public data and needs no account or key.

#### Am I charged for failed runs or empty results?

You are only charged for results that are actually written to the dataset.

#### Can I run it on a schedule?

Yes. Create a Task with your input and add a schedule in Apify Console. With monitor mode on, each scheduled run returns only what changed since the previous one.

### Support

Questions or a missing field? Open an issue from the **Issues** tab on this Actor's page and it will be looked at.

### Legal / Responsible Use

You are responsible for using the data in line with the source's terms and applicable law. The Actor collects publicly available data only and is not affiliated with the source.

# Actor input Schema

## `report` (type: `string`):

Skater stats, goalie stats or team stats.

## `season` (type: `integer`):

The year the season starts, for example 2025 for 2025-26. Leave empty for the latest season with games.

## `gameType` (type: `string`):

Regular season, playoffs or preseason.

## `sortStat` (type: `string`):

Statistic to rank by, for example points, goals, assists, wins, savePct, goalsAgainstAverage. Leave empty for points (skaters, teams) or wins (goalies).

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

Only rows for teams matching these abbreviations or names, for example EDM, Bruins.

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

Only players whose name contains one of these words.

## `maxRows` (type: `integer`):

Maximum number of rows returned. Default is 5 for a quick test; set 0 to return everything available.

## `proxyConfiguration` (type: `object`):

Optional. The data is public and works without a proxy.

## Actor input object example

```json
{
  "report": "skater",
  "gameType": "regular",
  "teams": [],
  "players": [],
  "maxRows": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "maxRows": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/nhl-player-goalie-team-stats").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 = { "maxRows": 5 }

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/nhl-player-goalie-team-stats").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 '{
  "maxRows": 5
}' |
apify call mrdoe/nhl-player-goalie-team-stats --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/nhl-player-goalie-team-stats"
        }
    }
}
```

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/vuxrHI8OG8QdulaTu/builds/tnDFE3TtNa8sjnsvt/openapi.json
