Last active
August 29, 2015 14:06
-
-
Save dyerc/e2d06312f25aec6195c5 to your computer and use it in GitHub Desktop.
API Endpoints Draft / Thoughts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/teams | |
-> Dump all teams with their shortcode eg. wsh, njd, chi | |
/teams/njd/players | |
* season=20132014 (defaults to current or most recent) | |
-> Show statistics for all players on team in specified season | |
/teams/njd/games | |
* season=20132014 (defaults to current or most recent) | |
-> Show statistics for all players on team in specified season | |
/teams/njd/goalies | |
* season=20132014 (defaults to current or most recent) | |
-> Show statistics for all players on team in specified season | |
/players | |
* limit=100 | |
* q=jagr | |
* start=50 | |
* team=njd | |
* gp= (games played) | |
* pos=( C | L | R | D ) | |
-> All players ability to paginate through (max limit maybe 100) or to search with a q param full text search on player name | |
-> GP, G, A, P, TOI/60, S/60, Sh%, PenD, CF%, CF% rel, GF%, GF% rel, Sh%, Sv% | |
<abbr title="Shooting percentage + save percentage">PDO | |
<abbr title="Zone start percentage: OZ starts / (OZ starts + DZ starts)">ZS% | |
<abbr title="Zone start percentage: OZ starts / (OZ starts + DZ starts)">ZS% rel | |
<abbr title="Percentage of team's even strength ice time that player is on ice for">EVTOI% | |
<abbr title="Percentage of team's power play ice time that player is on ice for">PPTOI% | |
<abbr title="Percentage of team's shorthanded ice time that player is on ice for">SHTOI% | |
<abbr title="Quality of competition, measured by TOI%">QoC TOI% | |
<abbr title="Quality of teammates, measured by TOI%">QoT TOI% | |
/seasons | |
-> Dump all seasons with their NHL id | |
/players/<player id> | |
-> Player information | |
GET | |
/games/<game id> | |
* situation=( ev | close | 5v5 | tied | pp | sh ) | |
-> Teams: TOI, GF, GA, CF, CA, CF%, FF, FA, FF%, SF, SA, SF%, Sh%, Sv% | |
-> Players: G, A, P, TOI, S, PenD, CF, CA, CF%, CF%rel, SF, SA, GF, GA, ZS%, ZS%rel, EVTOI, PPTOI, SHTOI, QoC TOI%, QOT TOI% | |
GET | |
/games/<game id>/dashboard | |
-> Game standard stats and info eg. who vs who, players involved, corsi, fenwick, toi for each play | |
/games/<game id>/attempts | |
* situation=( ev | close | 5v5 | tied | pp | sh ) | |
/games/<game id>/linemates | |
* situation=( ev | close | 5v5 | tied | pp | sh ) | |
/games/<game id>/deployment | |
* situation=( ev | close | 5v5 | tied | pp | sh ) | |
-> #, name, pos, TOI, EVTOI, PPTOI, SHTOI, TOI%, EVTOI%, PPTOI%, SHTOI%, ZS, OZS, NZS, DZS, ZS%, ZS% rel, OZShr%, NZShr%, DZShr% | |
/games/<game id>/possession | |
* situation=( ev | close | 5v5 | tied | pp | sh ) | |
/games/<game id>/goalies | |
* situation=( ev | close | 5v5 | tied | pp | sh ) | |
/games/<game id>/matchups | |
-> Corsi events for the given game 2x2 matrix | |
/games/<game id>/plays | |
-> Dump our raw play-by-play data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment