Title 1

Sportalytics - API docs and info

We tried to design the API so that it is dead simple to use. Many requests build upon other requests. The are at least six endpoints for each sport. All the sample calls on this page use 12345 as the API key.

1. records: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/records/year

2. players: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/players/year/abbrev

2a. games: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/games/year/abbrev

3. stats: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/stats/year/abbrev/player_name

3d. playoff stats: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/stats/year/abbrev/player_name/playoffs

3a. boxscores: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/boxscores/year/abbrev/date

3b. vs: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/vs/year/abbrev1/abbrev2

3c. matchup: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/matchup/year/abbrev1/player_name/abbrev2

4. leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/leaders/year/stat

4a. playoff leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/leaders/year/stat.playoffs

5. leaders (teams): curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/teams/leaders/year/stat

6. oddss: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/odds

MLB

current year: 2023    previous years: 2022, 2021

1. records: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/records/year

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/records/2024

example response: [ { "team": "Arizona Diamondbacks", "wins": "49", "losses": "47", "abbrev": "ARI" }, { "team": "Atlanta Braves", "wins": "52", "losses": "42", "abbrev": "ATL" }, { "team": "Baltimore Orioles", "wins": "57", "losses": "38", "abbrev": "BAL" }, { "team": "Boston Red Sox", "wins": "52", "losses": "42", "abbrev": "BOS" }, { "team": "Chicago Cubs", "wins": "46", "losses": "51", "abbrev": "CHC" }, { "team": "Chicago White Sox", "wins": "27", "losses": "70", "abbrev": "CHW" }, { "team": "Cincinnati Reds", "wins": "47", "losses": "49", "abbrev": "CIN" }, { "team": "Cleveland Guardians", "wins": "58", "losses": "36", "abbrev": "CLE" }, { "team": "Colorado Rockies", "wins": "33", "losses": "63", "abbrev": "COL" }, { "team": "Detroit Tigers", "wins": "46", "losses": "50", "abbrev": "DET" }, { "team": "Houston Astros", "wins": "50", "losses": "45", "abbrev": "HOU" }, { "team": "Kansas City Royals", "wins": "52", "losses": "44", "abbrev": "KCR" }, { "team": "Los Angeles Angels", "wins": "40", "losses": "55", "abbrev": "LAA" }, { "team": "Los Angeles Dodgers", "wins": "56", "losses": "40", "abbrev": "LAD" }, { "team": "Miami Marlins", "wins": "32", "losses": "63", "abbrev": "MIA" }, { "team": "Milwaukee Brewers", "wins": "54", "losses": "42", "abbrev": "MIL" }, { "team": "Minnesota Twins", "wins": "54", "losses": "41", "abbrev": "MIN" }, { "team": "New York Mets", "wins": "49", "losses": "45", "abbrev": "NYM" }, { "team": "New York Yankees", "wins": "58", "losses": "39", "abbrev": "NYY" }, { "team": "Oakland Athletics", "wins": "36", "losses": "61", "abbrev": "OAK" }, { "team": "Philadelphia Phillies", "wins": "62", "losses": "33", "abbrev": "PHI" }, { "team": "Pittsburgh Pirates", "wins": "47", "losses": "48", "abbrev": "PIT" }, { "team": "San Diego Padres", "wins": "50", "losses": "48", "abbrev": "SDP" }, { "team": "San Francisco Giants", "wins": "46", "losses": "50", "abbrev": "SFG" }, { "team": "Seattle Mariners", "wins": "52", "losses": "45", "abbrev": "SEA" }, { "team": "St. Louis Cardinals", "wins": "50", "losses": "45", "abbrev": "STL" }, { "team": "Tampa Bay Rays", "wins": "47", "losses": "48", "abbrev": "TBR" }, { "team": "Texas Rangers", "wins": "45", "losses": "50", "abbrev": "TEX" }, { "team": "Toronto Blue Jays", "wins": "43", "losses": "52", "abbrev": "TOR" }, { "team": "Washington Nationals", "wins": "44", "losses": "52", "abbrev": "WAS" } ]

Once you have a list of abbrevs you can then get a list of players OR a list of games

2. players: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/players/year/abbrev

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/players/2024/ATL

example response: ["A.J._Minter", "AJ_Smith-Shawver", "Aaron_Bummer", "Adam_Duvall", "Allan_Winans", "Austin_Riley", "Brian_Anderson", "Bryce_Elder", "Chadwick_Tromp", "Charlie_Morton", "Chris_Sale", "Darius_Vines", "David_Fletcher", "Daysbel_Hernández", "Dylan_Lee", "Eddie_Rosario", "Eli_White", "Forrest_Wall", "Grant_Holmes", "Hurston_Waldrep", "J.P._Martínez", "Jackson_Stephens", "Jarred_Kelenic", "Jesse_Chavez", "Jimmy_Herget", "Joe_Jiménez", "Luis_Guillorme", "Luke_Williams", "Marcell_Ozuna", "Matt_Olson", "Max_Fried", "Michael_Harris_II", "Orlando_Arcia", "Ozzie_Albies", "Pierce_Johnson", "Raisel_Iglesias", "Ramón_Laureano", "Ray_Kerr", "Reynaldo_López", "Ronald_Acuña_Jr.", "Sean_Murphy", "Spencer_Schwellenbach", "Spencer_Strider", "Travis_dArnaud", "Tyler_Matzek", "Zack_Short"]

Once you have a list of players you can then get stats for a player

3. stats: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/stats/year/abbrev/player

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/stats/2024/ATL/Bryce_Elder

example response: [{ "team": "Atlanta Braves", "player_name": "Bryce Elder", "games": "17", "pa": "0", "ab": "0", "r": "0", "h": "0", "hr": "0", "rbi": "0", "sb": "0", "bb": "0", "k": "0", "ba": "0", "obp": "0", "slg": "0", "wins": "7", "losses": "1", "era": "2.45", "gs": "17", "gf": "0", "cg": "0", "sho": "0", "sv": "0", "ip": 102.2, "hp": 87.0, "rp": "29", "er": "28", "hrp": "8", "bbp": 30.0, "so": "80", "hbp": "6", "wp": "9", "whip": 1.14 }]

pa - plate appearance
ab - at bat
r - runs scored
h - hits
hr - home runs
rbi - runs batted in
sb - stolen bases
bb - walks
k - strikeouts
ba - batting avg
obp - on base pct
slg - slugging pct
wins - wins
losses - losses
era - earned run avg
gs - games started
gf - games finished
cg - complete games
sho - shutouts
sv - saves
ip - innings pitched
hp - hits allowed
rp - runs allowed
er - earned runs allowed
hrp - home runs allowed
bbp - walks allowed
so - strikeouts
hbp - hit by pitch
wp - wild pitch

If you want head to head stats for two teams

3b. vs: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/vs/year/abbrev1/abbrev2

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/vs/2022/SDP/NYM

example response: [{ "team": "New York Yankees", "wins": 2, "losses": 5, "ab": 219, "r": 22, "h": 33, "rbi": 22, "bb": 31, "k": 67, "pa": 255, "ba": 0.151, "ip": 59.8, "hp": 50, "rp": 27, "er": 27, "bbp": 21, "so": 61, "hr": 9, "era": 4.06 }, { "team": "Houston Astros", "wins": 5, "losses": 2, "ab": 229, "r": 27, "h": 50, "rbi": 27, "bb": 21, "k": 61, "pa": 255, "ba": 0.218, "ip": 60.3, "hp": 33, "rp": 22, "er": 21, "bbp": 31, "so": 67, "hr": 10, "era": 3.13 }]  ["2022-06-06", "2022-06-07", "2022-06-08"]^^

Once you have a list of abbrevs you can then get a list of players OR a list of games

2a. games: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/games/year/abbrev

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/games/2024/ATL

example response: ["2024-03-29", "2024-03-30", "2024-03-31", "2024-04-01", "2024-04-02", "2024-04-05", "2024-04-06", "2024-04-07", "2024-04-08", "2024-04-09", "2024-04-11", "2024-04-12", "2024-04-13", "2024-04-14", "2024-04-15", "2024-04-16", "2024-04-17", "2024-04-19", "2024-04-20", "2024-04-21", "2024-04-22", "2024-04-23", "2024-04-24", "2024-04-26", "2024-04-27", "2024-04-28", "2024-04-29", "2024-04-30", "2024-05-01", "2024-05-03", "2024-05-04", "2024-05-05", "2024-05-07", "2024-05-08", "2024-05-10", "2024-05-11", "2024-05-12", "2024-05-13", "2024-05-14", "2024-05-15", "2024-05-17", "2024-05-19", "2024-05-20_[1]", "2024-05-20_[2]", "2024-05-21", "2024-05-22", "2024-05-23", "2024-05-24", "2024-05-25", "2024-05-26", "2024-05-27", "2024-05-28", "2024-05-29", "2024-05-30", "2024-05-31", "2024-06-01", "2024-06-02", "2024-06-04", "2024-06-05", "2024-06-06", "2024-06-07", "2024-06-08", "2024-06-09", "2024-06-11", "2024-06-12", "2024-06-13", "2024-06-14", "2024-06-15", "2024-06-16", "2024-06-17", "2024-06-18", "2024-06-19", "2024-06-21", "2024-06-22", "2024-06-23", "2024-06-24", "2024-06-26_[1]", "2024-06-26_[2]", "2024-06-27", "2024-06-28", "2024-06-29", "2024-06-30", "2024-07-02", "2024-07-03", "2024-07-04", "2024-07-05", "2024-07-06", "2024-07-07", "2024-07-08", "2024-07-09", "2024-07-10", "2024-07-11", "2024-07-12", "2024-07-13", "2024-07-14"]

Once you have a list of games you can then get a boxscore

3a. boxscores: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/boxscores/year/abbrev/4567-01-23

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/boxscores/2021/ATL/2021-04-06

example response: [{ "team": "Atlanta Braves", "player_name": "Ronald Acuna Jr.", "ab": "5", "r": "2", "h": "2", "rbi": "3", "bb": "0", "k": "0", "pa": "5", "ba": ".235", "obp": ".278", "slg": ".647", "ip": null, "hp": null, "rp": null, "er": null, "bbp": null, "so": null, "hr": null, "era": null }, { "team": "Atlanta Braves", "player_name": "Ozzie Albies", "ab": "4", "r": "0", "h": "0", "rbi": "0", "bb": "0", "k": "2", "pa": "4", "ba": ".000", "obp": ".000", "slg": ".000", "ip": null, "hp": null, "rp": null, "er": null, "bbp": null, "so": null, "hr": null, "era": null }, ... ... ... }, { "team": "Washington Nationals", "player_name": "Kyle McGowin", "ab": null, "r": null, "h": null, "rbi": null, "bb": null, "k": null, "pa": null, "ba": null, "obp": null, "slg": null, "ip": " 1 ", "hp": "0", "rp": "0", "er": "0", "bbp": "1", "so": "0", "hr": "0", "era": "0.00" }, { "team": "Washington Nationals", "player_name": "Daniel Hudson", "ab": null, "r": null, "h": null, "rbi": null, "bb": null, "k": null, "pa": null, "ba": null, "obp": null, "slg": null, "ip": " 1 ", "hp": "0", "rp": "0", "er": "0", "bbp": "1", "so": "2", "hr": "0", "era": "0.00" }] **

ab - at bat
r - runs scored
h - hits
rbi - runs batted in
bb - walks
k - strikeouts
pa - plate appearance
ba - batting avg
obp - on base pct
slg - slugging pct
sb - stolen bases
ip - innings pitched
hp - hits allowed
rp - runs allowed
er - earned runs allowed
bbp - walks allowed
so - strikeouts
era - earned run avg
hr - home runs allowed

Get a list of league leaders for various statistical categories

4. leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/leaders/year/stat

The stat parameters for mlb leaders are hr, ba, rbis, hits, steals, wins, era, saves, strikeouts, innings and whip

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/leaders/2023/hr

example response: [{ "team": "Los Angeles Angels", "player_name": "Shohei Ohtani", "hr": 40 }, { "team": "Toronto Blue Jays", "player_name": "Vladimir Guerrero Jr.", "hr": 35 }, { "team": "San Diego Padres", "player_name": "Fernando Tatis Jr.", "hr": 34 }, { "team": "Kansas City Royals", "player_name": "Salvador Perez", "hr": 30 }, { "team": "Oakland Athletics", "player_name": "Matt Olson", "hr": 30 }, { "team": "Boston Red Sox", "player_name": "Rafael Devers", "hr": 29 }, ... ... ...{ "team": "San Diego Padres", "player_name": "Manny Machado", "hr": 21 }, { "team": "Pittsburgh Pirates", "player_name": "Bryan Reynolds", "hr": 21 }, { "team": "Colorado Rockies", "player_name": "C.J. Cron", "hr": 21 }, { "team": "Minnesota Twins", "player_name": "Jorge Polanco", "hr": 21 }]

Get a list of league leaders (teams) for various statistical categories

5. leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/teams/leaders/year/stat

The stat parameters for mlb leaders are hr, ba, rbis, hits, steals, wins, era, saves, strikeouts and innings

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/teams/leaders/2023/hr

example response: [{ "team": "Toronto Blue Jays", "hr": 184.0 }, { "team": "San Francisco Giants", "hr": 182.0 }, { "team": "Atlanta Braves", "hr": 178.0 }, { "team": "Minnesota Twins", "hr": 174.0 }, { "team": "Cincinnati Reds", "hr": 172.0 }, { "team": "Los Angeles Dodgers", "hr": 171.0 }, { "team": "Tampa Bay Rays", "hr": 169.0 }, { "team": "Houston Astros", "hr": 161.0 }, { "team": "Boston Red Sox", "hr": 157.0 }, { "team": "Oakland Athletics", "hr": 155.0 }, { "team": "Seattle Mariners", "hr": 154.0 }, { "team": "Chicago Cubs", "hr": 154.0 }, { "team": "New York Yankees", "hr": 154.0 }, { "team": "Los Angeles Angels", "hr": 153.0 }, { "team": "Milwaukee Brewers", "hr": 152.0 }, { "team": "Cleveland Indians", "hr": 149.0 }, { "team": "San Diego Padres", "hr": 148.0 }, { "team": "Chicago White Sox", "hr": 146.0 }, { "team": "Philadelphia Phillies", "hr": 142.0 }, { "team": "Baltimore Orioles", "hr": 141.0 }, { "team": "Detroit Tigers", "hr": 139.0 }, { "team": "Washington Nationals", "hr": 136.0 }, { "team": "St. Louis Cardinals", "hr": 133.0 }, { "team": "Colorado Rockies", "hr": 133.0 }, { "team": "Texas Rangers", "hr": 132.0 }, { "team": "New York Mets", "hr": 127.0 }, { "team": "Kansas City Royals", "hr": 124.0 }, { "team": "Miami Marlins", "hr": 123.0 }, { "team": "Arizona Diamondbacks", "hr": 106.0 }, { "team": "Pittsburgh Pirates", "hr": 93.0 }]

Get odds to today's games

6. oddss: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/sport/odds

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/mlb/odds

example response: [{ "gamedate": "05/04/2022 6:40PM", "awayteam": "Diamondbacks", "hometeam": "Reds", "moneylineaway": "+103", "moneylinehome": "-113", "pointspreadaway": "+1.5", "pointspreadhome": "-1.5", "pointspreadawayline": "-175", "pointspreadhomeline": "+155", "totalpoints": "9.5", "over": "-115", "underline": "-105" }, { "gamedate": "05/04/2022 9:40PM", "awayteam": "Mets", "hometeam": "Padres", "moneylineaway": "+103", "moneylinehome": "-113", "pointspreadaway": "+1.5", "pointspreadhome": "-1.5", "pointspreadawayline": "-215", "pointspreadhomeline": "+178", "totalpoints": "9.5", "over": "-105", "underline": "-115" }, { "gamedate": "05/04/2022 7:10PM", "awayteam": "Rangers", "hometeam": "Guardians", "moneylineaway": "-103", "moneylinehome": "-107", "pointspreadaway": "+1.5", "pointspreadhome": "-1.5", "pointspreadawayline": "-200", "pointspreadhomeline": "+170", "totalpoints": "7.5", "over": "-105", "underline": "-115" }, { "gamedate": "05/04/2022 8:10PM", "awayteam": "BlueJays", "hometeam": "Royals", "moneylineaway": "-165", "moneylinehome": "+155", "pointspreadaway": "-1.5", "pointspreadhome": "+1.5", "pointspreadawayline": "-110", "pointspreadhomeline": "-110", "totalpoints": "7.5", "over": "-110", "underline": "-110" }, { "gamedate": "05/04/2022 8:10PM", "awayteam": "Mariners", "hometeam": "Astros", "moneylineaway": "+155", "moneylinehome": "-165", "pointspreadaway": "+1.5", "pointspreadhome": "-1.5", "pointspreadawayline": "-130", "pointspreadhomeline": "+110", "totalpoints": "9.5", "over": "-115", "underline": "-105" }, { "gamedate": "05/04/2022 9:38PM", "awayteam": "RedSox", "hometeam": "Angels", "moneylineaway": "+102", "moneylinehome": "-112", "pointspreadaway": "+1.5", "pointspreadhome": "-1.5", "pointspreadawayline": "-185", "pointspreadhomeline": "+160", "totalpoints": "9.5", "over": "-120", "underline": "-" }]

NBA

current year: 2024    previous years: 2023, 2022, 2021, 2020

1. records: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/records/year

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/records/2024

example response: [ { "team": "Atlanta Hawks", "wins": "5", "losses": "7", "abbrev": "ATL" }, { "team": "Boston Celtics", "wins": "10", "losses": "3", "abbrev": "BOS" }, { "team": "Brooklyn Nets", "wins": "5", "losses": "7", "abbrev": "BRK" }, { "team": "Charlotte Hornets", "wins": "4", "losses": "7", "abbrev": "CHO" }, { "team": "Chicago Bulls", "wins": "5", "losses": "7", "abbrev": "CHI" }, { "team": "Cleveland Cavaliers", "wins": "13", "losses": "0", "abbrev": "CLE" }, { "team": "Dallas Mavericks", "wins": "5", "losses": "6", "abbrev": "DAL" }, { "team": "Denver Nuggets", "wins": "7", "losses": "3", "abbrev": "DEN" }, { "team": "Detroit Pistons", "wins": "5", "losses": "8", "abbrev": "DET" }, { "team": "Golden State Warriors", "wins": "9", "losses": "2", "abbrev": "GSW" }, { "team": "Houston Rockets", "wins": "8", "losses": "4", "abbrev": "HOU" }, { "team": "Indiana Pacers", "wins": "5", "losses": "6", "abbrev": "IND" }, { "team": "Los Angeles Clippers", "wins": "6", "losses": "6", "abbrev": "LAC" }, { "team": "Los Angeles Lakers", "wins": "7", "losses": "4", "abbrev": "LAL" }, { "team": "Memphis Grizzlies", "wins": "7", "losses": "5", "abbrev": "MEM" }, { "team": "Miami Heat", "wins": "4", "losses": "6", "abbrev": "MIA" }, { "team": "Milwaukee Bucks", "wins": "4", "losses": "8", "abbrev": "MIL" }, { "team": "Minnesota Timberwolves", "wins": "6", "losses": "6", "abbrev": "MIN" }, { "team": "New Orleans Pelicans", "wins": "3", "losses": "9", "abbrev": "NOP" }, { "team": "New York Knicks", "wins": "5", "losses": "6", "abbrev": "NYK" }, { "team": "Oklahoma City Thunder", "wins": "10", "losses": "2", "abbrev": "OKC" }, { "team": "Orlando Magic", "wins": "7", "losses": "6", "abbrev": "ORL" }, { "team": "Philadelphia 76ers", "wins": "2", "losses": "9", "abbrev": "PHI" }, { "team": "Phoenix Suns", "wins": "9", "losses": "3", "abbrev": "PHO" }, { "team": "Portland Trail Blazers", "wins": "5", "losses": "8", "abbrev": "POR" }, { "team": "Sacramento Kings", "wins": "7", "losses": "5", "abbrev": "SAC" }, { "team": "San Antonio Spurs", "wins": "6", "losses": "6", "abbrev": "SAS" }, { "team": "Toronto Raptors", "wins": "2", "losses": "10", "abbrev": "TOR" }, { "team": "Utah Jazz", "wins": "2", "losses": "8", "abbrev": "UTA" }, { "team": "Washington Wizards", "wins": "2", "losses": "8", "abbrev": "WAS" } ]

Once you have a list of abbrevs you can then get a list of players OR a list of games

2. players: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/players/year/abbrev

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/players/2024/MIL

example response: ["A.J._Green", "AJ_Johnson", "Andre_Jackson_Jr.", "Bobby_Portis", "Brook_Lopez", "Damian_Lillard", "Delon_Wright", "Gary_Trent_Jr.", "Giannis_Antetokounmpo", "Liam_Robbins", "MarJon_Beauchamp", "Pat_Connaughton", "Ryan_Rollins", "Stanley_Umude", "Taurean_Prince", "Tyler_Smith"]

Once you have a list of players you can then get stats for a player

3. stats: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/stats/year/abbrev/player

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/stats/2024/MIL/Damian Lillard

example response: [ { "player": "Damian Lillard", "gp": "10", "gs": "10", "minutes": "358", "fg": "79", "fga": "178", "fgPct": ".444", "fg3": "32", "fg3a": "92", "fg3Pct": ".348", "ft": "70", "fta": "77", "ftPct": ".909", "offReb": "8", "defReb": "38", "totReb": "46", "assists": "66", "steals": "10", "blocks": "2", "tos": "27", "pfs": "19", "pts": "260" } ]

gs - games started
gp - games played
fg - field goals
fga - field goal attempts
fgPct - field goal pct
fg3 - three pt field goals
fg3a - three pt field goal attempts
fg3Pct - three pt field goal pct
ft - free throws
fta - free throw attempts
ftPct - free throw pct
offReb - off rebounds
defReb - def rebounds
totReb - total rebounds
tos - turnovers
pfs - personal founds
pts - points

If you want head to head stats for two teams

3b. vs: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/vs/year/abbrev1/abbrev2

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/vs/2024/BOS/MIL

example response: [ { "team": "Boston Celtics", "fg": 78, "fga": 173, "fgPct": 0.451, "fg3": 37, "fg3a": 97, "fg3Pct": 0.381, "ft": 39, "fta": 46, "ftPct": 0.848, "offReb": 12, "avgOffReb": 6, "defReb": 68, "avgDefReb": 34, "totReb": 80, "avgTotReb": 40, "blocks": 7, "avgBlocks": 3.5, "assists": 51, "avgAssists": 25.5, "tos": 24, "avgTos": 12, "steals": 10, "avgSteals": 5, "pts": 232, "avgPts": 116 }, { "team": "Milwaukee Bucks", "fg": 76, "fga": 163, "fgPct": 0.466, "fg3": 21, "fg3a": 63, "fg3Pct": 0.333, "ft": 42, "fta": 52, "ftPct": 0.808, "offReb": 13, "avgOffReb": 6.5, "defReb": 71, "avgDefReb": 35.5, "totReb": 84, "avgTotReb": 42, "blocks": 14, "avgBlocks": 7, "assists": 39, "avgAssists": 19.5, "tos": 28, "avgTos": 14, "steals": 16, "avgSteals": 8, "pts": 215, "avgPts": 107.5 } ]  ["2024-10-28", "2024-11-10"]^^

If you want stats for a player when matched up against a specific team

3c. matchup: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/matchup/year/abbrev1/player_name/abbrev2

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/matchup/2024/BOS/Jayson_Tatum/MIL

example response: [ { "team": "Boston Celtics", "player": "Jayson Tatum", "fg": 13, "fga": 37, "fgPct": 0.351, "fg3": 5, "fg3a": 20, "fg3Pct": 0.25, "ft": 15, "fta": 17, "ftPct": 0.882, "offReb": 0, "avgOffReb": 0, "defReb": 20, "avgDefReb": 10, "totReb": 20, "avgTotReb": 10, "blocks": 1, "avgBlocks": 0.5, "assists": 10, "avgAssists": 5, "tos": 8, "avgTos": 4, "steals": 2, "avgSteals": 1, "pts": 46, "avgPts": 23 } ]  ["2024-10-28", "2024-11-10"]^^

If you want a prediction of next game stats for a player

3d. predict: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/predict/year/abbrev/player

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/predict/2024/BOS/Jayson_Tatum

example response: [{ "player": "Jayson Tatum", "points": "34", "rebs": "6", "assists": "6" }]

Once you have a list of abbrevs you can then get a list of players OR a list of games

2a. games: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/games/year/abbrev

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/games/2024/LAL

example response: ["2024-10-22", "2024-10-25", "2024-10-26", "2024-10-28", "2024-10-30", "2024-11-01", "2024-11-04", "2024-11-06", "2024-11-08", "2024-11-10", "2024-11-13"]

Once you have a list of games (game dates) you can then get a boxscore

3a. boxscores: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/boxscores/year/abbrev/4567-01-23

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/boxscores/2024/LAL/2024-11-08

example response: [ { "team": "Philadelphia 76ers", "player_name": "Kyle Lowry", "minutes": "31:34", "fg": "1", "fga": "7", "fg_pct": ".143", "fg3": "1", "fg3a": "6", "fg3_pct": ".167", "ft": "2", "fta": "2", "ft_pct": "1.000", "off_reb": "0", "def_reb": "3", "tot_reb": "3", "assists": "6", "steals": "0", "blocks": "1", "tos": "1", "pfs": "1", "pts": "5", "plus_minus": "-6" }, { "team": "Philadelphia 76ers", "player_name": "Kelly Oubre Jr.", "minutes": "30:20", "fg": "4", "fga": "16", "fg_pct": ".250", "fg3": "0", "fg3a": "4", "fg3_pct": ".000", "ft": "1", "fta": "2", "ft_pct": ".500", "off_reb": "3", "def_reb": "3", "tot_reb": "6", "assists": "2", "steals": "0", "blocks": "0", "tos": "0", "pfs": "0", "pts": "9", "plus_minus": "-18" }, ... ... ... },{ "team": "Los Angeles Lakers", "player_name": "Christian Koloko", "minutes": "1:28", "fg": "0", "fga": "0", "fg_pct": null, "fg3": "0", "fg3a": "0", "fg3_pct": null, "ft": "0", "fta": "0", "ft_pct": null, "off_reb": "0", "def_reb": "1", "tot_reb": "1", "assists": "1", "steals": "0", "blocks": "0", "tos": "0", "pfs": "1", "pts": "0", "plus_minus": "-4" }, { "team": "Los Angeles Lakers", "player_name": "Maxwell Lewis", "minutes": "1:28", "fg": "0", "fga": "0", "fg_pct": null, "fg3": "0", "fg3a": "0", "fg3_pct": null, "ft": "0", "fta": "0", "ft_pct": null, "off_reb": "0", "def_reb": "0", "tot_reb": "0", "assists": "0", "steals": "0", "blocks": "0", "tos": "0", "pfs": "1", "pts": "0", "plus_minus": "-4" } ]**

fg - field goals
fga - field goal attempts
fg_pct - field goal pct
fg3 - three pt field goals
fg3a - three pt field goal attempts
fg3_pct - three pt field goal pct
ft - free throws
fta - free throw attempts
ft_pct - free throw pct
off_reb - off rebounds
def_reb - def rebounds
tot_reb - total rebounds
tos - turnovers
pfs - personal founds
pts - points

Get a list of league leaders for various statistical categories

4. leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/leaders/year/stat

The stat parameters for nba leaders are points, assists, rebounds, blocks, fgPct, ftPct, fg3, fg3Pct, turnovers, steals, astTo, efficiency and minutes

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/leaders/2024/points

example response: [ { "team": "Milwaukee Bucks", "player": "Giannis Antetokounmpo", "pts": 31.556 }, { "team": "Los Angeles Lakers", "player": "Anthony Davis", "pts": 31.222 }, { "team": "Boston Celtics", "player": "Jayson Tatum", "pts": 30.545 }, ... ... ... { "team": "Brooklyn Nets", "player": "Dennis Schroder", "pts": 19.545 }, { "team": "Chicago Bulls", "player": "Coby White", "pts": 19.455 }, { "team": "Toronto Raptors", "player": "Scottie Barnes", "pts": 19.25 } ]

Get a list of league leaders (teams) for various statistical categories

5. leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/teams/leaders/year/stat

The stat parameters for nba leaders are points, assists, rebounds, blocks, fgPct, ftPct, fg3, fg3Pct, turnovers, steals, toRatio and true (true shooting pct)

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nba/teams/leaders/2024/fgPct

example response: [ { "team": "Cleveland Cavaliers", "fgPct": 0.52 }, { "team": "New York Knicks", "fgPct": 0.49 }, { "team": "Indiana Pacers", "fgPct": 0.485 }, { "team": "Sacramento Kings", "fgPct": 0.479 }, { "team": "Golden State Warriors", "fgPct": 0.478 }, { "team": "Los Angeles Lakers", "fgPct": 0.477 }, { "team": "Dallas Mavericks", "fgPct": 0.477 }, { "team": "Denver Nuggets", "fgPct": 0.476 }, { "team": "Milwaukee Bucks", "fgPct": 0.475 }, { "team": "Minnesota Timberwolves", "fgPct": 0.473 }, { "team": "Memphis Grizzlies", "fgPct": 0.47 }, { "team": "Atlanta Hawks", "fgPct": 0.468 }, { "team": "San Antonio Spurs", "fgPct": 0.467 }, { "team": "Phoenix Suns", "fgPct": 0.464 }, { "team": "Detroit Pistons", "fgPct": 0.464 }, { "team": "Oklahoma City Thunder", "fgPct": 0.46 }, { "team": "Los Angeles Clippers", "fgPct": 0.459 }, { "team": "Chicago Bulls", "fgPct": 0.459 }, { "team": "Brooklyn Nets", "fgPct": 0.459 }, { "team": "Toronto Raptors", "fgPct": 0.458 }, { "team": "Boston Celtics", "fgPct": 0.45 }, { "team": "Miami Heat", "fgPct": 0.444 }, { "team": "Washington Wizards", "fgPct": 0.442 }, { "team": "New Orleans Pelicans", "fgPct": 0.441 }, { "team": "Orlando Magic", "fgPct": 0.44 }, { "team": "Houston Rockets", "fgPct": 0.436 }, { "team": "Philadelphia 76ers", "fgPct": 0.43 }, { "team": "Charlotte Hornets", "fgPct": 0.43 }, { "team": "Portland Trail Blazers", "fgPct": 0.426 }, { "team": "Utah Jazz", "fgPct": 0.383 } ]

NFL

current year: 2023    previous years: 2022, 2021, 2020

1. records: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/records/year

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/records/2023

example response: [ { "team": "Arizona Cardinals", "wins": "1", "losses": "6", "ties": "0", "abbrev": "ARI" }, {[ { "team": "Anaheim Ducks", "wins": "5", "losses": "8", "lossesOT": "2", "points": "12", "abbrev": "ANA" }, { "team": "Boston Bruins", "wins": "8", "losses": "7", "lossesOT": "2", "points": "18", "abbrev": "BOS" }, { "team": "Buffalo Sabres", "wins": "7", "losses": "8", "lossesOT": "1", "points": "15", "abbrev": "BUF" }, { "team": "Calgary Flames", "wins": "8", "losses": "6", "lossesOT": "3", "points": "19", "abbrev": "CGY" }, { "team": "Carolina Hurricanes", "wins": "11", "losses": "4", "lossesOT": "0", "points": "22", "abbrev": "CAR" }, { "team": "Chicago Blackhawks", "wins": "6", "losses": "9", "lossesOT": "1", "points": "13", "abbrev": "CHI" }, { "team": "Colorado Avalanche", "wins": "9", "losses": "8", "lossesOT": "0", "points": "18", "abbrev": "COL" }, { "team": "Columbus Blue Jackets", "wins": "5", "losses": "8", "lossesOT": "2", "points": "12", "abbrev": "CBJ" }, { "team": "Dallas Stars", "wins": "9", "losses": "5", "lossesOT": "0", "points": "18", "abbrev": "DAL" }, { "team": "Detroit Red Wings", "wins": "7", "losses": "7", "lossesOT": "1", "points": "15", "abbrev": "DET" }, { "team": "Edmonton Oilers", "wins": "8", "losses": "7", "lossesOT": "1", "points": "17", "abbrev": "EDM" }, { "team": "Florida Panthers", "wins": "11", "losses": "4", "lossesOT": "1", "points": "23", "abbrev": "FLA" }, { "team": "Los Angeles Kings", "wins": "9", "losses": "6", "lossesOT": "3", "points": "21", "abbrev": "LAK" }, { "team": "Minnesota Wild", "wins": "10", "losses": "2", "lossesOT": "3", "points": "23", "abbrev": "MIN" }, { "team": "Montreal Canadiens", "wins": "5", "losses": "9", "lossesOT": "2", "points": "12", "abbrev": "MTL" }, { "team": "Nashville Predators", "wins": "5", "losses": "9", "lossesOT": "2", "points": "12", "abbrev": "NSH" }, { "team": "New Jersey Devils", "wins": "11", "losses": "6", "lossesOT": "2", "points": "24", "abbrev": "NJD" }, { "team": "New York Islanders", "wins": "6", "losses": "6", "lossesOT": "4", "points": "16", "abbrev": "NYI" }, { "team": "New York Rangers", "wins": "9", "losses": "4", "lossesOT": "1", "points": "19", "abbrev": "NYR" }, { "team": "Ottawa Senators", "wins": "8", "losses": "7", "lossesOT": "0", "points": "16", "abbrev": "OTT" }, { "team": "Philadelphia Flyers", "wins": "6", "losses": "8", "lossesOT": "2", "points": "14", "abbrev": "PHI" }, { "team": "Pittsburgh Penguins", "wins": "6", "losses": "9", "lossesOT": "3", "points": "15", "abbrev": "PIT" }, { "team": "San Jose Sharks", "wins": "5", "losses": "9", "lossesOT": "3", "points": "13", "abbrev": "SJS" }, { "team": "Seattle Kraken", "wins": "7", "losses": "8", "lossesOT": "1", "points": "15", "abbrev": "SEA" }, { "team": "St. Louis Blues", "wins": "7", "losses": "9", "lossesOT": "0", "points": "14", "abbrev": "STL" }, { "team": "Tampa Bay Lightning", "wins": "7", "losses": "6", "lossesOT": "1", "points": "15", "abbrev": "TBL" }, { "team": "Toronto Maple Leafs", "wins": "10", "losses": "6", "lossesOT": "2", "points": "22", "abbrev": "TOR" }, { "team": "Utah Hockey Club", "wins": "7", "losses": "6", "lossesOT": "3", "points": "17", "abbrev": null }, { "team": "Vancouver Canucks", "wins": "8", "losses": "3", "lossesOT": "3", "points": "19", "abbrev": "VAN" }, { "team": "Vegas Golden Knights", "wins": "10", "losses": "4", "lossesOT": "2", "points": "22", "abbrev": "VEG" }, { "team": "Washington Capitals", "wins": "10", "losses": "4", "lossesOT": "1", "points": "21", "abbrev": "WAS" }, { "team": "Winnipeg Jets", "wins": "15", "losses": "1", "lossesOT": "0", "points": "30", "abbrev": "WPJ" } ] "team": "Atlanta Falcons", "wins": "4", "losses": "3", "ties": "0", "abbrev": "ATL" }, { "team": "Baltimore Ravens", "wins": "5", "losses": "2", "ties": "0", "abbrev": "BAL" }, { "team": "Buffalo Bills", "wins": "4", "losses": "3", "ties": "0", "abbrev": "BUF" }, { "team": "Carolina Panthers", "wins": "0", "losses": "6", "ties": "0", "abbrev": "CAR" }, { "team": "Chicago Bears", "wins": "2", "losses": "5", "ties": "0", "abbrev": "CHI" }, { "team": "Cincinnati Bengals", "wins": "3", "losses": "3", "ties": "0", "abbrev": "CIN" }, { "team": "Cleveland Browns", "wins": "4", "losses": "2", "ties": "0", "abbrev": "CLE" }, { "team": "Dallas Cowboys", "wins": "4", "losses": "2", "ties": "0", "abbrev": "DAL" }, { "team": "Denver Broncos", "wins": "2", "losses": "5", "ties": "0", "abbrev": "DEN" }, { "team": "Detroit Lions", "wins": "5", "losses": "2", "ties": "0", "abbrev": "DET" }, { "team": "Green Bay Packers", "wins": "2", "losses": "4", "ties": "0", "abbrev": "GB" }, { "team": "Houston Texans", "wins": "3", "losses": "3", "ties": "0", "abbrev": "HOU" }, { "team": "Indianapolis Colts", "wins": "3", "losses": "4", "ties": "0", "abbrev": "IND" }, { "team": "Jacksonville Jaguars", "wins": "5", "losses": "2", "ties": "0", "abbrev": "JAX" }, { "team": "Kansas City Chiefs", "wins": "6", "losses": "1", "ties": "0", "abbrev": "KC" }, { "team": "Las Vegas Raiders", "wins": "3", "losses": "4", "ties": "0", "abbrev": "LVR" }, { "team": "Los Angeles Chargers", "wins": "2", "losses": "4", "ties": "0", "abbrev": "LAC" }, { "team": "Los Angeles Rams", "wins": "3", "losses": "4", "ties": "0", "abbrev": "LAR" }, { "team": "Miami Dolphins", "wins": "5", "losses": "2", "ties": "0", "abbrev": "MIA" }, { "team": "Minnesota Vikings", "wins": "3", "losses": "4", "ties": "0", "abbrev": "MIN" }, { "team": "New England Patriots", "wins": "2", "losses": "5", "ties": "0", "abbrev": "NE" }, { "team": "New Orleans Saints", "wins": "3", "losses": "4", "ties": "0", "abbrev": "NO" }, { "team": "New York Giants", "wins": "2", "losses": "5", "ties": "0", "abbrev": "NYG" }, { "team": "New York Jets", "wins": "3", "losses": "3", "ties": "0", "abbrev": "NYJ" }, { "team": "Philadelphia Eagles", "wins": "6", "losses": "1", "ties": "0", "abbrev": "PHI" }, { "team": "Pittsburgh Steelers", "wins": "4", "losses": "2", "ties": "0", "abbrev": "PIT" }, { "team": "San Francisco 49ers", "wins": "5", "losses": "2", "ties": "0", "abbrev": "SF" }, { "team": "Seattle Seahawks", "wins": "4", "losses": "2", "ties": "0", "abbrev": "SEA" }, { "team": "Tampa Bay Buccaneers", "wins": "3", "losses": "3", "ties": "0", "abbrev": "TB" }, { "team": "Tennessee Titans", "wins": "2", "losses": "4", "ties": "0", "abbrev": "TEN" }, { "team": "Washington Commanders", "wins": "3", "losses": "4", "ties": "0", "abbrev": "WAS" } ]

Once you have a list of abbrevs you can then get a list of players OR a list of games

2. players: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/players/year/abbrev

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/players/2023/SEA

example response: ["Artie_Burns", "Bobby_Wagner", "Boye_Mafe", "Brady_Russell", "Cameron_Young", "Chris_Stoll", "Coby_Bryant", "Cody_Thompson", "Colby_Parkinson", "D.K._Metcalf", "Darrell_Taylor", "DeeJay_Dallas", "Derick_Hall", "Devin_Bush_Jr.", "Devon_Witherspoon", "Drake_Thomas", "DreMont_Jones", "Drew_Lock", "Geno_Smith", "Jake_Bobo", "Jamal_Adams", "Jarran_Reed", "Jason_Myers", "Jaxon_Smith-Njigba", "Jerrick_Reed", "Jon_Rhattigan", "Jordyn_Brooks", "Julian_Love", "Kenneth_Walker_III", "Mario_Edwards", "Michael_Dickson", "Michael_Jackson", "Mike_Morris", "Myles_Adams", "Nick_Bellore", "Noah_Fant", "Quandre_Diggs", "Riq_Woolen", "Tre_Brown", "Tyler_Lockett", "Tyreke_Smith", "Uchenna_Nwosu", "Will_Dissly", "Zach_Charbonnet"]

Once you have a list of players you can then get stats for a player

3. stats: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/stats/year/abbrev/player

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/stats/2023/SEA/Tyler_Lockett

example response: [ { "player": "Tyler Lockett", "team": "Seattle Seahawks", "games": "6", "rushTd": "0", "targets": "40", "receptions": "27", "recYds": "289", "avgRec": "10.7", "recTd": "2", "recLong": "36", "recYdsG": "48.2", "ydsScrim": "289", "rushRecTd": "2" } ]

compPct - completion pct
passYds - passing yards
passTd - passing touchdowns
passInts - interceptions thrown
passLong - longest pass
qbr - qb rating
rushYds - rushing yards
rushTd - rushing touchdowns
rushLong - longest pass
recYds - receiving yards
recTd - receiving touchdowns
ydsScrim - yards from scrimmage
rushRecTd - rushing & receiving touchdowns
puntRetYds - punt return yards
puntRetTd - punt return touchdowns
puntRetLong - longest punt return
kickRetYds - kick return yards
kickRetTd - kick return touchdowns
kickRetLong - longest kick return
fga - field goal attempts
fgm - field goals
fgPct - field goal pct
xpa - extra point attempts
xpm - extra points
xpPct - extra point pct
puntYds - punt yards
puntLong - longest punt
defInts - interceptions
defIntsTd - interception returns for touchdowns
fumblesRec - fumbles recovered
qbHits - hits on qb
passAtts - pass attempts

Once you have a list of abbrevs you can then get a list of players OR a list of games

2a. games: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/games/year/abbrev

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/games/2023/SEA

example response: ["2023-09-10", "2023-09-17", "2023-09-24", "2023-10-02", "2023-10-15", "2023-10-22"]

Once you have a list of games (game dates) you can then get a boxscore

3a. boxscores: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/boxscores/year/abbrev/4567-01-23

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/boxscores/2023/SEA/2023-10-02

example response: [ { "player": "Geno Smith", "team": "Seattle Seahawks", "completions": "13", "passAtts": "20", "passYds": "110", "passTd": "1", "passInts": "0", "sacked": "2", "sackedYds": "13", "passLong": "23", "qbr": "95.8", "rushAtts": "0", "rushYds": "0", "rushTd": "0", "rushLong": "0", "targets": "1", "receptions": "1", "recYds": "-2", "recTd": "0", "recLong": "-2", "fumbles": "0", "fumblesLost": "0", "defInts": null, "defIntsTd": null, "passesDef": null, "sacks": null, "totalTackles": null, "tackles": null, "tacklesLoss": null, "qbHits": null, "fumblesRecv": null, "fumblesRecvYds": null, "fumblesTd": null, "forcedFumbs": null, "kickRet": null, "kickRetYds": null, "kickRetAvg": null, "kickRetTd": null, "kickRetLong": null, "puntRet": null, "puntRetYds": null, "puntRetAvg": null, "puntRetTd": null, "puntRetLong": null, "xpm": null, "xpa": null, "fgm": null, "fga": null, "punts": null, "puntYds": null, "puntAvg": null, "puntLong": null }, { "player": "Drew Lock", "team": "Seattle Seahawks", "completions": "2", "passAtts": "6", "passYds": "63", "passTd": "0", "passInts": "0", "sacked": "0", "sackedYds": "0", "passLong": "51", "qbr": "73.6", "rushAtts": "1", "rushYds": "11", "rushTd": "0", "rushLong": "11", "targets": "0", "receptions": "0", "recYds": "0", "recTd": "0", "recLong": "0", "fumbles": "0", "fumblesLost": "0", "defInts": null, "defIntsTd": null, "passesDef": null, "sacks": null, "totalTackles": null, "tackles": null, "tacklesLoss": null, "qbHits": null, "fumblesRecv": null, "fumblesRecvYds": null, "fumblesTd": null, "forcedFumbs": null, "kickRet": null, "kickRetYds": null, "kickRetAvg": null, "kickRetTd": null, "kickRetLong": null, "puntRet": null, "puntRetYds": null, "puntRetAvg": null, "puntRetTd": null, "puntRetLong": null, "xpm": null, "xpa": null, "fgm": null, "fga": null, "punts": null, "puntYds": null, "puntAvg": null, "puntLong": null }, ... ... ... { "player": "Jamie Gillan", "team": "New York Giants", "completions": null, "passAtts": null, "passYds": null, "passTd": null, "passInts": null, "sacked": null, "sackedYds": null, "passLong": null, "qbr": null, "rushAtts": null, "rushYds": null, "rushTd": null, "rushLong": null, "targets": null, "receptions": null, "recYds": null, "recTd": null, "recLong": null, "fumbles": null, "fumblesLost": null, "defInts": null, "defIntsTd": null, "passesDef": null, "sacks": null, "totalTackles": null, "tackles": null, "tacklesLoss": null, "qbHits": null, "fumblesRecv": null, "fumblesRecvYds": null, "fumblesTd": null, "forcedFumbs": null, "kickRet": null, "kickRetYds": null, "kickRetAvg": null, "kickRetTd": null, "kickRetLong": null, "puntRet": null, "puntRetYds": null, "puntRetAvg": null, "puntRetTd": null, "puntRetLong": null, "xpm": "", "xpa": "", "fgm": "", "fga": "", "punts": "5", "puntYds": "268", "puntAvg": "53.6", "puntLong": "61" }, { "player": "Graham Gano", "team": "New York Giants", "completions": null, "passAtts": null, "passYds": null, "passTd": null, "passInts": null, "sacked": null, "sackedYds": null, "passLong": null, "qbr": null, "rushAtts": null, "rushYds": null, "rushTd": null, "rushLong": null, "targets": null, "receptions": null, "recYds": null, "recTd": null, "recLong": null, "fumbles": null, "fumblesLost": null, "defInts": null, "defIntsTd": null, "passesDef": null, "sacks": null, "totalTackles": null, "tackles": null, "tacklesLoss": null, "qbHits": null, "fumblesRecv": null, "fumblesRecvYds": null, "fumblesTd": null, "forcedFumbs": null, "kickRet": null, "kickRetYds": null, "kickRetAvg": null, "kickRetTd": null, "kickRetLong": null, "puntRet": null, "puntRetYds": null, "puntRetAvg": null, "puntRetTd": null, "puntRetLong": null, "xpm": "", "xpa": "", "fgm": "1", "fga": "1", "punts": "0", "puntYds": "0", "puntAvg": "", "puntLong": "0" } ] **

qbHits - hits on qb
passYds - passing yards
passTd - passing touchdowns
passInts - interceptions thrown
passLong - longest pass
qbr - qb rating
rushYds - rushing yards
rushTd - rushing touchdowns
rushLong - longest pass
recYds - receiving yards
recTd - receiving touchdowns
puntRetYds - punt return yards
puntRetTd - punt return touchdowns
puntRetLong - longest punt return
kickRetYds - kick return yards
kickRetTd - kick return touchdowns
kickRetLong - longest kick return
fga - field goal attempts
fgm - field goals
xpa - extra point attempts
xpm - extra points
puntYds - punt yards
puntLong - longest punt
defInts - interceptions
defIntsTd - interception returns for touchdowns

Get a list of league leaders for various statistical categories

4. leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/leaders/year/stat

The stat parameters for nfl leaders are passing, passTd, passYdsG, sacked, passInts, compPct, rating, rushing, rushTd, rushYdsG, receiving, receptions, recTd, recYdsG, touchdowns, fumbles, kicks, kickRetYds, punts, tackles, sacks and ints

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/leaders/2023/sacks

example response: [ { "team": "Minnesota Vikings", "player": "Danielle Hunter", "sacks": 9 }, { "team": "Pittsburgh Steelers", "player": "T.J. Watt", "sacks": 8 }, { "team": "Cleveland Browns", "player": "Myles Garrett", "sacks": 7.5 }, ... ... ... { "team": "Los Angeles Chargers", "player": "Joey Bosa", "sacks": 3 }, { "team": "Washington Commanders", "player": "Jonathan Allen", "sacks": 3 } ]

Get a list of league leaders (teams) for various statistical categories

5. leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/teams/leaders/year/stat

The stat parameters for nfl leaders are offense, defense, passing, passDef, passTd, sacked, sacks, passInts, compPct, rating, rushing, rushDef, rushTd, receiving, receptions, recTd, recYdsG, ints, kicks, kickRetYds, punts, firstDowns, firstDownsDef, tos and tosDef

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nfl/teams/leaders/2023/kicks

example response: [ { "team": "Houston Texans", "fgm": 17 }, { "team": "Philadelphia Eagles", "fgm": 17 }, { "team": "Los Angeles Rams", "fgm": 17 }, { "team": "New Orleans Saints", "fgm": 16 }, { "team": "Tennessee Titans", "fgm": 16 }, { "team": "Dallas Cowboys", "fgm": 16 }, { "team": "New York Jets", "fgm": 15 }, { "team": "Kansas City Chiefs", "fgm": 15 }, { "team": "Atlanta Falcons", "fgm": 13 }, { "team": "Jacksonville Jaguars", "fgm": 13 }, { "team": "Arizona Cardinals", "fgm": 13 }, { "team": "Seattle Seahawks", "fgm": 13 }, { "team": "Denver Broncos", "fgm": 12 }, { "team": "Cleveland Browns", "fgm": 12 }, { "team": "Baltimore Ravens", "fgm": 12 }, { "team": "Tampa Bay Buccaneers", "fgm": 11 }, { "team": "Indianapolis Colts", "fgm": 11 }, { "team": "San Francisco 49ers", "fgm": 11 }, { "team": "Chicago Bears", "fgm": 11 }, { "team": "Pittsburgh Steelers", "fgm": 11 }, { "team": "New York Giants", "fgm": 10 }, { "team": "Cincinnati Bengals", "fgm": 10 }, { "team": "Buffalo Bills", "fgm": 10 }, { "team": "Las Vegas Raiders", "fgm": 9 }, { "team": "Carolina Panthers", "fgm": 9 }, { "team": "Washington Commanders", "fgm": 9 }, { "team": "New England Patriots", "fgm": 8 }, { "team": "Green Bay Packers", "fgm": 8 }, { "team": "Los Angeles Chargers", "fgm": 7 }, { "team": "Detroit Lions", "fgm": 7 }, { "team": "Minnesota Vikings", "fgm": 6 }, { "team": "Miami Dolphins", "fgm": 6 } ]

NHL

current year: 2024    previous years: 2023, 2022, 2021, 2020

1. records: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/records/year

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/records/2024

example response: [ { "team": "Anaheim Ducks", "wins": "5", "losses": "8", "lossesOT": "2", "points": "12", "abbrev": "ANA" }, { "team": "Boston Bruins", "wins": "8", "losses": "7", "lossesOT": "2", "points": "18", "abbrev": "BOS" }, { "team": "Buffalo Sabres", "wins": "7", "losses": "8", "lossesOT": "1", "points": "15", "abbrev": "BUF" }, { "team": "Calgary Flames", "wins": "8", "losses": "6", "lossesOT": "3", "points": "19", "abbrev": "CGY" }, { "team": "Carolina Hurricanes", "wins": "11", "losses": "4", "lossesOT": "0", "points": "22", "abbrev": "CAR" }, { "team": "Chicago Blackhawks", "wins": "6", "losses": "9", "lossesOT": "1", "points": "13", "abbrev": "CHI" }, { "team": "Colorado Avalanche", "wins": "9", "losses": "8", "lossesOT": "0", "points": "18", "abbrev": "COL" }, { "team": "Columbus Blue Jackets", "wins": "5", "losses": "8", "lossesOT": "2", "points": "12", "abbrev": "CBJ" }, { "team": "Dallas Stars", "wins": "9", "losses": "5", "lossesOT": "0", "points": "18", "abbrev": "DAL" }, { "team": "Detroit Red Wings", "wins": "7", "losses": "7", "lossesOT": "1", "points": "15", "abbrev": "DET" }, { "team": "Edmonton Oilers", "wins": "8", "losses": "7", "lossesOT": "1", "points": "17", "abbrev": "EDM" }, { "team": "Florida Panthers", "wins": "11", "losses": "4", "lossesOT": "1", "points": "23", "abbrev": "FLA" }, { "team": "Los Angeles Kings", "wins": "9", "losses": "6", "lossesOT": "3", "points": "21", "abbrev": "LAK" }, { "team": "Minnesota Wild", "wins": "10", "losses": "2", "lossesOT": "3", "points": "23", "abbrev": "MIN" }, { "team": "Montreal Canadiens", "wins": "5", "losses": "9", "lossesOT": "2", "points": "12", "abbrev": "MTL" }, { "team": "Nashville Predators", "wins": "5", "losses": "9", "lossesOT": "2", "points": "12", "abbrev": "NSH" }, { "team": "New Jersey Devils", "wins": "11", "losses": "6", "lossesOT": "2", "points": "24", "abbrev": "NJD" }, { "team": "New York Islanders", "wins": "6", "losses": "6", "lossesOT": "4", "points": "16", "abbrev": "NYI" }, { "team": "New York Rangers", "wins": "9", "losses": "4", "lossesOT": "1", "points": "19", "abbrev": "NYR" }, { "team": "Ottawa Senators", "wins": "8", "losses": "7", "lossesOT": "0", "points": "16", "abbrev": "OTT" }, { "team": "Philadelphia Flyers", "wins": "6", "losses": "8", "lossesOT": "2", "points": "14", "abbrev": "PHI" }, { "team": "Pittsburgh Penguins", "wins": "6", "losses": "9", "lossesOT": "3", "points": "15", "abbrev": "PIT" }, { "team": "San Jose Sharks", "wins": "5", "losses": "9", "lossesOT": "3", "points": "13", "abbrev": "SJS" }, { "team": "Seattle Kraken", "wins": "7", "losses": "8", "lossesOT": "1", "points": "15", "abbrev": "SEA" }, { "team": "St. Louis Blues", "wins": "7", "losses": "9", "lossesOT": "0", "points": "14", "abbrev": "STL" }, { "team": "Tampa Bay Lightning", "wins": "7", "losses": "6", "lossesOT": "1", "points": "15", "abbrev": "TBL" }, { "team": "Toronto Maple Leafs", "wins": "10", "losses": "6", "lossesOT": "2", "points": "22", "abbrev": "TOR" }, { "team": "Utah Hockey Club", "wins": "7", "losses": "6", "lossesOT": "3", "points": "17", "abbrev": "UTA" }, { "team": "Vancouver Canucks", "wins": "8", "losses": "3", "lossesOT": "3", "points": "19", "abbrev": "VAN" }, { "team": "Vegas Golden Knights", "wins": "10", "losses": "4", "lossesOT": "2", "points": "22", "abbrev": "VEG" }, { "team": "Washington Capitals", "wins": "10", "losses": "4", "lossesOT": "1", "points": "21", "abbrev": "WAS" }, { "team": "Winnipeg Jets", "wins": "15", "losses": "1", "lossesOT": "0", "points": "30", "abbrev": "WPJ" } ]

Once you have a list of abbrevs you can then get a list of players OR a list of games

2. players: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/players/year/abbrev

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/players/2024/WPJ

example response: ["Adam_Lowry", "Alex_Iafallo", "Cole_Perfetti", "Colin_Miller", "Connor_Hellebuyck", "Connor_Hellebuyck", "David_Gustafsson", "Dylan_DeMelo", "Dylan_Samberg", "Eric_Comrie", "Eric_Comrie", "Gabriel_Vilardi", "Haydn_Fleury", "Josh_Morrissey", "Kyle_Connor", "Logan_Stanley", "Mark_Scheifele", "Mason_Appleton", "Morgan_Barron", "Neal_Pionk", "Nikolaj_Ehlers", "Nino_Niederreiter", "Rasmus_Kupari", "Vladislav_Namestnikov"]

Once you have a list of players you can then get stats for a player

3. stats: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/stats/year/abbrev/player

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/stats/2024/WPJ/Dylan_Samberg

example response: [ { "team": "Winnipeg Jets", "player": "Dylan Samberg", "position": "D", "gp": "16", "goals": "3", "assists": "3", "points": "6", "plusMinus": "10", "penalty": "18", "esG": "3", "ppG": "0", "shG": "0", "gwG": "1", "esA": "3", "ppA": "0", "shA": "0", "shots": "24", "shotPct": "12.5", "itAvg": "20:59", "blocks": "23", "hits": "20", "foW": "0", "foL": "0" } ]

Once you have a list of abbrevs you can then get a list of players OR a list of games

2a. games: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/games/year/abbrev

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/games/2024/WPJ

example response: ["2024-10-09", "2024-10-11", "2024-10-13", "2024-10-18", "2024-10-20", "2024-10-22", "2024-10-24", "2024-10-26", "2024-10-28", "2024-10-30", "2024-11-01", "2024-11-03", "2024-11-05", "2024-11-07", "2024-11-09", "2024-11-12"]

Once you have a list of games (game dates) you can then get a boxscore

3a. boxscores: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/boxscores/year/abbrev/4567-01-23

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/boxscores/2024/WPJ/2024-11-07

example response: [ { "player": "Calvin de Haan", "team": "Colorado Avalanche", "goals": "0", "assists": "0", "points": "0", "plusMinus": "0", "esG": "0", "ppG": "0", "shG": "0", "gwG": "0", "esA": "0", "ppA": "0", "shA": "0", "shots": "2", "shotPct": "0.0", "shifts": "24", "goalsAgainst": null, "shotsAgainst": null, "saves": null, "savePct": null, "shutouts": null, "penalty": "0", "iceTime": "14:33" }, { "player": "Samuel Girard", "team": "Colorado Avalanche", "goals": "0", "assists": "0", "points": "0", "plusMinus": "-1", "esG": "0", "ppG": "0", "shG": "0", "gwG": "0", "esA": "0", "ppA": "0", "shA": "0", "shots": "3", "shotPct": "0.0", "shifts": "26", "goalsAgainst": null, "shotsAgainst": null, "saves": null, "savePct": null, "shutouts": null, "penalty": "0", "iceTime": "21:04" }, { "player": "Ivan Ivan", "team": "Colorado Avalanche", "goals": "0", "assists": "0", "points": "0", "plusMinus": "0", "esG": "0", "ppG": "0", "shG": "0", "gwG": "0", "esA": "0", "ppA": "0", "shA": "0", "shots": "0", "shotPct": null, "shifts": "16", "goalsAgainst": null, "shotsAgainst": null, "saves": null, "savePct": null, "shutouts": null, "penalty": "0", "iceTime": "10:35" }, ... ... ... },{ "player": "Connor Hellebuyck", "team": "Winnipeg Jets", "goals": "0", "assists": "0", "points": "0", "plusMinus": "0", "esG": "0", "ppG": "0", "shG": "0", "gwG": "0", "esA": "0", "ppA": "0", "shA": "0", "shots": "0", "shotPct": null, "shifts": "4", "goalsAgainst": null, "shotsAgainst": null, "saves": null, "savePct": null, "shutouts": null, "penalty": "0", "iceTime": "59:45" }, { "player": "Connor Hellebuyck", "team": "Winnipeg Jets", "goals": null, "assists": null, "points": null, "plusMinus": null, "esG": null, "ppG": null, "shG": null, "gwG": null, "esA": null, "ppA": null, "shA": null, "shots": null, "shotPct": null, "shifts": null, "goalsAgainst": "0", "shotsAgainst": "35", "saves": "35", "savePct": "1.000", "shutouts": "1", "penalty": "0", "iceTime": "59:45" } ] **

esG - even strength goals
ppG - power play goals
shG - short handed goals
gwG - game winning goals
esA - even strength assists
ppA - power play assists
shA - short handed assists
penalty - penalty minutes
shotPct - shot percentage
savePct - save percentage

Get a list of league leaders for various statistical categories

4. leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/leaders/year/stat

The stat parameters for nhl leaders are points, goals, plusMinus, goalsAgainst, savePct, wins, shots, shotPct, shotsAgainst, ppG, ppA and penalty

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/leaders/2024/goals

example response: [ { "team": "Buffalo Sabres", "player": "Tage Thompson", "goals": 11 }, { "team": "Winnipeg Jets", "player": "Kyle Connor", "goals": 11 }, ... ... ...{ "team": "Colorado Avalanche", "player": "Cale Makar", "goals": 6 }, { "team": "Montreal Canadiens", "player": "Nick Suzuki", "goals": 6 } ]

Get a list of league leaders (teams) for various statistical categories

5. leaders: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/teams/leaders/year/stat

The stat parameters for nhl leaders are points, goals, assists, ppG, shG, shots, shotPct, shotsAgainst, saves, goalsAgainst, savePct, wins and penalty

example request: curl -X POST -H 'x-api-key: 12345' https://sportalytics.cloud/nhl/teams/leaders/2024/goalsAgainst

example response: [ { "team": "Winnipeg Jets", "GA/G": 2.06 }, { "team": "Dallas Stars", "GA/G": 2.21 }, { "team": "Toronto Maple Leafs", "GA/G": 2.39 }, { "team": "Minnesota Wild", "GA/G": 2.4 }, { "team": "New York Rangers", "GA/G": 2.43 }, { "team": "Carolina Hurricanes", "GA/G": 2.47 }, { "team": "New Jersey Devils", "GA/G": 2.47 }, { "team": "Chicago Blackhawks", "GA/G": 2.69 }, { "team": "Los Angeles Kings", "GA/G": 2.72 }, { "team": "Washington Capitals", "GA/G": 2.73 }, { "team": "Detroit Red Wings", "GA/G": 2.73 }, { "team": "Ottawa Senators", "GA/G": 2.73 }, { "team": "Calgary Flames", "GA/G": 2.76 }, { "team": "Tampa Bay Lightning", "GA/G": 2.79 }, { "team": "New York Islanders", "GA/G": 2.81 }, { "team": "Seattle Kraken", "GA/G": 2.88 }, { "team": "Florida Panthers", "GA/G": 2.94 }, { "team": "Nashville Predators", "GA/G": 2.94 }, { "team": "Edmonton Oilers", "GA/G": 3 }, { "team": "Vancouver Canucks", "GA/G": 3 }, { "team": "Vegas Golden Knights", "GA/G": 3.06 }, { "team": "Buffalo Sabres", "GA/G": 3.12 }, { "team": "Colorado Avalanche", "GA/G": 3.18 }, { "team": "Philadelphia Flyers", "GA/G": 3.25 }, { "team": "St. Louis Blues", "GA/G": 3.25 }, { "team": "Columbus Blue Jackets", "GA/G": 3.4 }, { "team": "Pittsburgh Penguins", "GA/G": 3.67 }, { "team": "Montreal Canadiens", "GA/G": 3.88 } ]

**For paid plans only (what is shown is a truncated response with only the first and last several elements)

^^Two elements are returned for this request: stats and a list of game dates