# NHL Player Profile & Season Stats

> NHL Player Profile & Season Stats is a paid API for AI agents from mlb-stats-api.fly.dev, paid per call via x402, $0.001000/call, status unknown (last checked 2026-09-15).

Returns NHL player profile information and season statistics for a given player ID

## Facts

- Endpoint: GET https://mlb-stats-api.fly.dev/nhl/player/:player_id
- Price: $0.001000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mlb-stats-api-fly-dev-9c7d0c12
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vo21tzFlrLLNLThg76x0Q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mlb-stats-api-fly-dev-9c7d0c12
```

Example prompt: Can you pull up Connor McDavid's player profile and this season's stats? His NHL player ID is 8478402.

## When to prefer this

Use this endpoint when you need individual NHL player profile data or season statistics by player ID. Ideal for fantasy hockey lookups, sports trivia, player comparisons, or building NHL dashboards. Prefer this over generic sports APIs when you already have the NHL player ID (e.g., from a team roster or player search endpoint).

## Known failure modes

- Invalid or unknown player_id returns 404 or empty result
- Non-numeric or malformed player_id causes a 400 bad request
- Service unavailable on fly.dev returns 503
- Player ID that exists in other leagues but not NHL returns no data

## How this service works

NHL player profile and season stats by player_id. Example: 8478402 = Connor McDavid.

## Output

Returns an NHL player's profile details and season statistics including goals, assists, points, games played, and other performance metrics for the current or most recent season.

## Example request

```json
{
 "player_id": 8478402
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "player_id"
 ],
 "properties": {
  "player_id": {
   "type": "integer",
   "description": "NHL player ID (e.g. 8478402 = Connor McDavid)"
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "request_id",
  "sport",
  "league",
  "retrieved_at",
  "data",
  "warnings",
  "errors"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "id",
    "first_name",
    "last_name",
    "full_name",
    "position",
    "jersey_number",
    "team_id",
    "team_abbrev",
    "stats"
   ],
   "properties": {
    "id": {
     "type": "string"
    },
    "stats": {
     "type": "object",
     "required": [
      "season",
      "regularSeason",
      "playoffs"
     ],
     "properties": {
      "season": {
       "type": "number"
      },
      "playoffs": {
       "type": "object",
       "required": [
        "subSeason",
        "career"
       ],
       "properties": {
        "career": {
         "type": "object",
         "required": [
          "assists",
          "gameWinningGoals",
          "gamesPlayed",
          "goals",
          "otGoals",
          "pim",
          "plusMinus",
          "points",
          "powerPlayGoals",
          "powerPlayPoints",
          "shootingPctg",
          "shorthandedGoals",
          "shorthandedPoints",
          "shots"
         ],
         "properties": {
          "pim": {
           "type": "number"
          },
          "goals": {
           "type": "number"
          },
          "shots": {
           "type": "number"
          },
          "points": {
           "type": "number"
          },
          "assists": {
           "type": "number"
          },
          "otGoals": {
           "type": "number"
          },
          "plusMinus": {
           "type": "number"
          },
          "gamesPlayed": {
           "type": "number"
          },
          "shootingPctg": {
           "type": "number"
          },
          "powerPlayGoals": {
           "type": "number"
          },
          "powerPlayPoints": {
           "type": "number"
          },
          "gameWinningGoals": {
           "type": "number"
          },
          "shorthandedGoals": {
           "type": "number"
          },
          "shorthandedPoints": {
           "type": "number"
          }
         }
        },
        "subSeason": {
         "type": "object",
         "required": [
          "assists",
          "gameWinningGoals",
          "gamesPlayed",
          "goals",
          "otGoals",
          "pim",
          "plusMinus",
          "points",
          "powerPlayGoals",
          "powerPlayPoints",
          "shootingPctg",
          "shorthande
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mlb-stats-api-fly-dev-9c7d0c12/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mlb-stats-api.fly.dev](https://www.zero.xyz/host/mlb-stats-api.fly.dev/llms.txt)
