SportAPINHLGet SportAPI Key

Teams / Dallas Stars

Dallas Stars

Division
Central
Conference
Western
Head coach
Glen Gulutzan
Arena
American Airlines Center
36Points
17-9-2W-L-OTL
L1Streak

Roster

Forwards

#PlayerPosShootsHeightWeightAgeBorn
10Oskar BäckCL6′4″207 lb26Karlstad, Sweden
12Radek FaksaCL6′3″216 lb32Vitkov, Czechia
14Jamie BennLWL6′3″209 lb37Victoria, BC, Canada
15Colin BlackwellCR5′8″181 lb33North Andover, MA, USA
16David PerronLWR6′0″203 lb38Sherbrooke, QC, Canada
18Sam SteelCL6′0″185 lb28Ardrossan, AB, Canada
21Jason RobertsonLWL6′3″205 lb27Arcadia, CA, USA
22Joel KivirantaLWL5′11″185 lb30Vantaa, Finland
24Roope HintzCL6′3″216 lb30Nokia, Finland
25Arttu HyryRWR6′3″212 lb25Oulu, Finland
49Justin HryckowianCL5′11″198 lb25L'Ile-Bizard, QC, Canada
53Wyatt JohnstonCR6′1″187 lb23Toronto, ON, Canada
91Tyler SeguinCR6′2″205 lb34Brampton, ON, Canada
95Matt DucheneCL5′11″212 lb35Haliburton, ON, Canada
96Mikko RantanenRWL6′4″227 lb30Nousiainen, Finland

Defense

#PlayerPosShootsHeightWeightAgeBorn
4Miro HeiskanenDL6′2″196 lb27Espoo, Finland
5Nils LundkvistDR6′1″194 lb26Pitea, Sweden
6Lian BichselDL6′7″238 lb22Olten, Switzerland
20Kyle CapobiancoDL6′3″194 lb29Mississauga, ON, Canada
23Esa LindellDL6′3″216 lb32Vantaa, Finland
27Trey TaylorDL6′2″196 lb24Richmond, BC, Canada
28Kyle BurroughsDR6′0″194 lb31Vancouver, BC, Canada
55Thomas HarleyDL6′3″214 lb25Syracuse, NY, USA
57Tyler MyersDR6′8″229 lb36Houston, TX, USA

Goalies

#PlayerPosCatchesHeightWeightAgeBorn
1Casey DeSmithGL6′0″187 lb35Rochester, NH, USA
29Jake OettingerGL6′6″225 lb27Lakeville, MN, USA

Next games

All

Last results

All

Season

Games played
28
Goals for / against
83 / 74
Home
10-6-0
Away
7-3-2
Last 10
7-3-0
Regulation wins
11
League position
11

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/1/roster"
Response (shortened)
{
    "team": {
        "id": 1,
        "slug": "dallas-stars",
        "name": "Dallas Stars",
        "abbreviation": "DAL",
        "venue_name": "American Airlines Center",
        "coach_name": "Glen Gulutzan"
    },
    "data": [
        {
            "id": 15,
            "slug": "oskar-back",
            "name": "Oskar Bäck",
            "first_name": "Oskar",
            "last_name": "Bäck",
            "position": "C",
            "shoots_catches": "L",
            "jersey": "10",
            "height_cm": 193,
            "weight_kg": 94,
            "birth_date": "2000-03-12",
            "birth_place": "Karlstad, Sweden",
            "country": "Sweden",
            "team_id": 1,
            "draft": {
                "year": 2018,
                "team": "DAL",
                "round": 3,
                "pick": 75
            }
        },
        "…"
    ]
}
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/1/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.