SportAPINHLGet SportAPI Key

Teams / New York Rangers

New York Rangers

Division
Metropolitan
Conference
Eastern
Head coach
Mike Sullivan
Arena
Madison Square Garden
31Points
15-12-1W-L-OTL
W1Streak

Roster

Forwards

#PlayerPosShootsHeightWeightAgeBorn
10J.T. MillerCL6′1″218 lb33East Palestine, OH, USA
13Alexis LafrenièreLWL6′1″194 lb25St-Eustache, QC, Canada
14Taylor RaddyshRWR6′2″205 lb28Caledon, ON, Canada
15Glenn GawdinCR6′1″203 lb29Richmond, BC, Canada
16Pavel DorofeyevRWL6′1″194 lb26Nizhny Tagil, Russia
17Eeli TolvanenRWL5′11″183 lb27Vihti, Finland
24Tye KartyeLWL6′0″196 lb25Kingston, ON, Canada
25Anton BlidhLWL6′1″196 lb31Molnlycke, Sweden
28Oliver BjorkstrandRWR6′0″176 lb31Herning, Denmark
38Adam SykoraLWL5′11″192 lb22Piestany, Slovakia
42Noah LabaCR6′3″218 lb23Northville, MI, USA
49Jaroslav ChmelarRWR6′5″238 lb23Nove Mesto nad Metuji, Czechia
50Will CuylleLWL6′3″216 lb24Toronto, ON, Canada
63Max SassonCL6′1″181 lb26Birmingham, MI, USA
71Juuso ParssinenCL6′2″212 lb25Hameenlinna, Finland
73Matt RempeCR6′9″269 lb24Calgary, AB, Canada
90Joseph VelenoCL6′1″207 lb26Montréal, QC, Canada
93Mika ZibanejadCR6′2″207 lb33Stockholm, Sweden
94Gabe PerreaultRWL5′11″179 lb21Sherbrooke, QC, Canada

Defense

#PlayerPosShootsHeightWeightAgeBorn
4Braden SchneiderDR6′3″214 lb25Prince Albert, SK, Canada
5Sean DurziDR6′0″198 lb28Mississauga, ON, Canada
12Alberts SmitsDL6′3″207 lb19Valmiera, Latvia
23Adam FoxDR5′11″183 lb28Jericho, NY, USA
26Marcus PetterssonDL6′4″179 lb30Skelleftea, Sweden
29Matthew RobertsonDL6′4″218 lb25Edmonton, AB, Canada
44Vladislav GavrikovDL6′3″223 lb31Yaroslavl, Russia
60Scott MorrowDR6′2″212 lb24Darien, CT, USA

Goalies

#PlayerPosCatchesHeightWeightAgeBorn
31Igor ShesterkinGL6′1″198 lb30Moscow, Russia
33Dylan GarandGL6′1″183 lb24Victoria, BC, Canada
70Joonas KorpisaloGL6′3″205 lb32Pori, Finland

Next games

All

Last results

All

Season

Games played
28
Goals for / against
82 / 78
Home
11-4-0
Away
4-8-1
Last 10
5-5-0
Regulation wins
15
League position
18

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/4/roster"
Response (shortened)
{
    "team": {
        "id": 4,
        "slug": "new-york-rangers",
        "name": "New York Rangers",
        "abbreviation": "NYR",
        "venue_name": "Madison Square Garden",
        "coach_name": "Mike Sullivan"
    },
    "data": [
        {
            "id": 1178,
            "slug": "j-t-miller",
            "name": "J.T. Miller",
            "first_name": "J.T.",
            "last_name": "Miller",
            "position": "C",
            "shoots_catches": "L",
            "jersey": "10",
            "height_cm": 185,
            "weight_kg": 99,
            "birth_date": "1993-03-14",
            "birth_place": "East Palestine, OH, USA",
            "country": "USA",
            "team_id": 4,
            "draft": {
                "year": 2011,
                "team": "NYR",
                "round": 1,
                "pick": 15
            }
        },
        "…"
    ]
}
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/4/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.