Skip to content

Commit

Permalink
add GET seasons call
Browse files Browse the repository at this point in the history
  • Loading branch information
gamesguru committed Jan 8, 2024
1 parent 57a4160 commit ead220f
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/brainstorm_nhl_api_calls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -x

cd "$(dirname "$0")"

# Get a list of seasons
curl -X GET "https://api-web.nhle.com/v1/season" | jq | tee nhl_api_seasons.json | wc

# Get games by day (365 calls/year)
curl https://api-web.nhle.com/v1/schedule/2023-09-23 | jq | tee nhl_api_schedule_daily_league.json | wc
# output: 3891 6943 115479
Expand Down
108 changes: 108 additions & 0 deletions resources/nhl_api_seasons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
[
19171918,
19181919,
19191920,
19201921,
19211922,
19221923,
19231924,
19241925,
19251926,
19261927,
19271928,
19281929,
19291930,
19301931,
19311932,
19321933,
19331934,
19341935,
19351936,
19361937,
19371938,
19381939,
19391940,
19401941,
19411942,
19421943,
19431944,
19441945,
19451946,
19461947,
19471948,
19481949,
19491950,
19501951,
19511952,
19521953,
19531954,
19541955,
19551956,
19561957,
19571958,
19581959,
19591960,
19601961,
19611962,
19621963,
19631964,
19641965,
19651966,
19661967,
19671968,
19681969,
19691970,
19701971,
19711972,
19721973,
19731974,
19741975,
19751976,
19761977,
19771978,
19781979,
19791980,
19801981,
19811982,
19821983,
19831984,
19841985,
19851986,
19861987,
19871988,
19881989,
19891990,
19901991,
19911992,
19921993,
19931994,
19941995,
19951996,
19961997,
19971998,
19981999,
19992000,
20002001,
20012002,
20022003,
20032004,
20052006,
20062007,
20072008,
20082009,
20092010,
20102011,
20112012,
20122013,
20132014,
20142015,
20152016,
20162017,
20172018,
20182019,
20192020,
20202021,
20212022,
20222023,
20232024
]

0 comments on commit ead220f

Please sign in to comment.