SportAPINHLGet SportAPI Key

Teams / Boston Bruins

Boston Bruins

Division
Atlantic
Conference
Eastern
Head coach
Marco Sturm
Arena
TD Garden
33Points
16-10-1W-L-OTL
L1Streak

Roster

Forwards

#PlayerPosShootsHeightWeightAgeBorn
10JJ PeterkaRWL6′0″183 lb24Munich, Germany
11Casey MittelstadtCL6′1″203 lb28Eden Prairie, MN, USA
18Pavel ZachaCL6′4″212 lb29Brno, Czechia
28Elias LindholmCR6′1″205 lb32Boden, Sweden
39Morgan GeekieCR6′3″212 lb28Strathclair, MB, Canada
44James HagensCL5′11″185 lb20Hauppauge, NY, USA
47Mark KastelicCR6′4″231 lb27Phoenix, AZ, USA
49Ivan IvanCL6′0″205 lb24Ostrava, Czechia
51Matthew PoitrasCR6′0″190 lb22Whitby, ON, Canada
52Sean KuralyCL6′2″214 lb33Niagara Falls, NY, USA
62Riley DuranCR6′2″209 lb24Boston, MA, USA
81Michael EyssimontCL6′0″196 lb30Littleton, CO, USA
84Tanner JeannotLWL6′2″223 lb29Estevan, SK, Canada
88David PastrnakRWR6′0″198 lb30Havirov, Czechia
92Marat KhusnutdinovCL5′10″190 lb24Moscow, Russia
93Fraser MintenCL6′2″207 lb22Vancouver, BC, Canada

Defense

#PlayerPosShootsHeightWeightAgeBorn
6Mason LohreiDL6′5″225 lb25Baton Rouge, LA, USA
17Will BorgenDR6′3″201 lb29Moorhead, MN, USA
27Hampus LindholmDL6′4″220 lb32Helsingborg, Sweden
42Frederic BrunetDL6′3″203 lb23Gatineau, QC, Canada
45Jonathan AspirotDL6′0″216 lb27Mascouche, QC, Canada
73Charlie McAvoyDR6′1″216 lb28Long Beach, NY, USA
75Connor CliftonDR6′0″201 lb31Matawan, NJ, USA
91Nikita ZadorovDL6′7″245 lb31Moscow, Russia

Goalies

#PlayerPosCatchesHeightWeightAgeBorn
1Jeremy SwaymanGL6′3″196 lb28Anchorage, AK, USA
30Michael DiPietroGL6′1″207 lb27Windsor, ON, Canada

Next games

All

Last results

All

Season

Games played
27
Goals for / against
93 / 77
Home
10-7-0
Away
6-3-1
Last 10
4-6-0
Regulation wins
12
League position
13

Get an NHL roster with the SportAPI hockey API

One request returns the team with its coach and arena, and every player with position, jersey number, shooting side, height, weight, birth date and draft.

Request
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://sportapi.ai/api/hockey/teams/12/roster"
Response (shortened)
{
    "team": {
        "id": 12,
        "slug": "boston-bruins",
        "name": "Boston Bruins",
        "abbreviation": "BOS",
        "venue_name": "TD Garden",
        "coach_name": "Marco Sturm"
    },
    "data": [
        {
            "id": 619,
            "slug": "jj-peterka",
            "name": "JJ Peterka",
            "first_name": "JJ",
            "last_name": "Peterka",
            "position": "RW",
            "shoots_catches": "L",
            "jersey": "10",
            "height_cm": 183,
            "weight_kg": 83,
            "birth_date": "2002-01-14",
            "birth_place": "Munich, Germany",
            "country": "Germany",
            "team_id": 12,
            "draft": {
                "year": 2020,
                "team": "BUF",
                "round": 2,
                "pick": 34
            }
        },
        "…"
    ]
}
PHP
<?php
$key = getenv('SPORTAPI_KEY');
$ctx = stream_context_create(['http' => ['header' => "X-API-Key: $key\r\n"]]);
$res = json_decode(file_get_contents('https://sportapi.ai/api/hockey/teams/12/roster', false, $ctx), true);

foreach ($res['data'] as $p) {
    printf("%3s %-24s %s\n", $p['jersey'], $p['name'], $p['position']);
}

Keep your API key on the server and never call the API from JavaScript in the browser. Save each answer for a few minutes too, so that page views don't use up your daily limit.

Endpoints, fields and status codes are in the API docs. A free key is on the hockey API page.