# NHL Player Profile & Season Stats by Player ID

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

Returns NHL player profile information and current season stats (goals, assists, plus/minus) for a given player ID.

## Facts

- Endpoint: GET https://fanfare-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/fanfare-api-fly-dev-453e035f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kBJcS6fPh-Cp5rsnBeW6j

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 fanfare-api-fly-dev-453e035f
```

Example prompt: What are Connor McDavid's goals, assists, and plus/minus stats for this season? His NHL player ID is 8478402.

## When to prefer this

Use this endpoint when you need individual NHL player profiles and season stats — especially goals, assists, and plus/minus — and you already have the player's NHL numeric ID. Ideal for fantasy hockey apps, sports dashboards, or any agent task requiring per-player hockey performance data.

## Known failure modes

- Invalid or unknown player ID returns a 404 or error response
- Player ID for a non-NHL player or retired player may return no data
- Network timeout if the upstream NHL data source is unavailable
- Malformed player_id (e.g. non-numeric string) may return a validation error

## How this service works

NHL player profile and season stats by player ID — goals, assists, and plus/minus. Example: 8478402 = Connor McDavid.

## Output

Returns an NHL player's profile details along with their current season statistics including goals scored, assists, and plus/minus rating.

## 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 for 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/fanfare-api-fly-dev-453e035f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fanfare-api.fly.dev](https://www.zero.xyz/host/fanfare-api.fly.dev/llms.txt)
