# NHL — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access data from nhl.com.

**Category:** Sports | **Website:** [nhl.com/](https://nhl.com/) | **Docs:** [parse.bot/marketplace/fc536a51-ef60-4b2f-a7ae-78ea0fe6d4d9/nhl-com-api](https://parse.bot/marketplace/fc536a51-ef60-4b2f-a7ae-78ea0fe6d4d9/nhl-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_gamecenter_boxscore

Fetch detailed boxscore for a specific game including player stats (goals, assists, TOI, shots, hits, blocks) for both teams. Returns forwards, defense, and goalies arrays for each team with individual game statistics.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `game_id` | string | Yes | NHL game ID (e.g., 2024020705). Game IDs can be found in schedule or scores responses. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/get_gamecenter_boxscore \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"game_id":"<string>"}'
```

### get_player_landing

Fetch comprehensive player profile and summary stats including career totals, featured season stats, awards, and recent game log. Returns biographical details, draft info, current team, and full statistical breakdown for regular season and playoffs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `player_id` | string | Yes | NHL player ID (e.g., 8478402 for Connor McDavid, 8477939 for William Nylander, 8477934 for Leon Draisaitl). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/get_player_landing \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"player_id":"<string>"}'
```

### get_projected_lineups

Fetch recent NHL news articles related to projected lineups and game day content. Articles include headlines, summaries, team context, and thumbnail images. Returns paginated results from the NHL CMS.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Max number of articles to return. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/get_projected_lineups \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>"}'
```

### get_schedule

Fetch the full NHL game schedule for a given date. Returns a week of games centered around the requested date, including game details, broadcast info, and scores for completed games. The gameWeek array contains one entry per day with that day's games.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Date in YYYY-MM-DD format, or 'now' for current schedule. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/get_schedule \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>"}'
```

### get_scores

Fetch live and final scores for a given date. Returns games with scores, shots on goal, goal scorers, and broadcast information. The games array contains detailed scoring info including individual goals.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Date in YYYY-MM-DD format, or 'now' for current scores. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/get_scores \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>"}'
```

### get_standings

Fetch current or historical NHL standings. Returns all teams with points, wins, losses, and other statistics sorted by league standing. Each entry includes division, conference, home/road splits, and streak info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Date in YYYY-MM-DD format, or 'now' for current standings. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/get_standings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>"}'
```

### get_team_info_all

Fetch all NHL teams with metadata including abbreviation, full name, logo URL, conference, and division. Derived from current standings data. Returns all 32 teams.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/get_team_info_all \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_team_roster

Fetch a team's roster for a given season. Returns forwards, defensemen, and goalies with biographical information including height, weight, birthdate, birthplace, and sweater number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `season` | string | No | Season in format YYYYYYYY (e.g., 20242025). Omit for current season roster. |
| `team` | string | Yes | Three-letter team abbreviation (e.g., EDM, TOR, FLA, CAR, COL, NYR, BOS, WSH, WPG, VGK, MIN, TBL, BUF, MTL, OTT, PIT, PHI, DET, CBJ, NYI, NJD, ANA, LAK, STL, NSH, SJS, SEA, CGY, CHI, VAN, UTA). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/get_team_roster \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"season":"<string>","team":"<string>"}'
```

### search_players

Search for active NHL players by name. Returns matching players with their team, position, player ID, and physical attributes. Searches across first and last names.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Player name to search for (e.g., mcdavid, connor, ovechkin). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nhl-com-api-fc536a51/search_players \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
