SportAPINHLGet SportAPI Key

Teams / Edmonton Oilers

Edmonton Oilers

Division
Pacific
Conference
Western
Head coach
Mike Babcock
Arena
Rogers Place
44Points
20-7-4W-L-OTL
W3Streak

Roster

Forwards

#PlayerPosShootsHeightWeightAgeBorn
10Trent FredericCL6′3″218 lb28St. Louis, MO, USA
13Mattias JanmarkCL6′1″205 lb33Danderyd, Sweden
16Jason DickinsonCL6′2″205 lb31Georgetown, ON, Canada
18Zach HymanLWR6′1″207 lb34Toronto, ON, Canada
19Filip HallanderCL6′2″207 lb26Sundsvall, Sweden
21Mathieu JosephRWL6′1″187 lb29Laval, QC, Canada
22Matt SavoieCR5′9″181 lb22St. Albert, AB, Canada
26Alex FormentonLWL6′3″194 lb27Barrie, ON, Canada
29Leon DraisaitlCL6′3″216 lb31Cologne, Germany
34Colton DachCL6′3″216 lb23Fort Saskatchewan, AB, Canada
42Kasperi KapanenRWR6′1″196 lb30Kuopio, Finland
43Owen MichaelsRWR6′1″183 lb24Detroit, MI, USA
46Max JonesLWL6′3″225 lb28Rochester, MI, USA
53Isaac HowardLWL5′10″185 lb22Hudson, WI, USA
92Vasily PodkolzinRWL6′1″212 lb25Moscow, Russia
93Ryan Nugent-HopkinsCL6′0″190 lb33Burnaby, BC, Canada
97Connor McDavidCL6′2″190 lb29Richmond Hill, ON, Canada

Defense

#PlayerPosShootsHeightWeightAgeBorn
2Evan BouchardDR6′2″196 lb27Oakville, ON, Canada
5Connor MurphyDR6′4″209 lb33Boston, MA, USA
6Ryan SheaDL6′1″194 lb29Milton, MA, USA
14Mattias EkholmDL6′4″212 lb36Borlange, Sweden
49Ty EmbersonDR6′1″203 lb26Eau Claire, WI, USA
75Alec RegulaDR6′4″216 lb26West Bloomfield, MI, USA
85Shakir MukhamadullinDL6′5″205 lb24Ufa, Russia
96Jake WalmanDL6′1″209 lb30Toronto, ON, Canada

Goalies

#PlayerPosCatchesHeightWeightAgeBorn
27Devon LeviGL6′0″187 lb24Dollard-des-Ormeaux, QC, Canada
30Frederik AndersenGL6′4″229 lb37Herning, Denmark
35Tristan JarryGL6′1″201 lb31Surrey, BC, Canada

Next games

All

Last results

All

Season

Games played
31
Goals for / against
116 / 92
Home
9-5-2
Away
11-2-2
Last 10
5-4-1
Regulation wins
15
League position
3

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/20/roster"
Response (shortened)
{
    "team": {
        "id": 20,
        "slug": "edmonton-oilers",
        "name": "Edmonton Oilers",
        "abbreviation": "EDM",
        "venue_name": "Rogers Place",
        "coach_name": "Mike Babcock"
    },
    "data": [
        {
            "id": 451,
            "slug": "trent-frederic",
            "name": "Trent Frederic",
            "first_name": "Trent",
            "last_name": "Frederic",
            "position": "C",
            "shoots_catches": "L",
            "jersey": "10",
            "height_cm": 191,
            "weight_kg": 99,
            "birth_date": "1998-02-11",
            "birth_place": "St. Louis, MO, USA",
            "country": "USA",
            "team_id": 20,
            "draft": {
                "year": 2016,
                "team": "BOS",
                "round": 1,
                "pick": 29
            }
        },
        "…"
    ]
}
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/20/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.