Skip to content

Commit

Permalink
add api_calls testing resource, export JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
gamesguru committed Jan 4, 2024
1 parent 5cf501a commit 36b65b8
Show file tree
Hide file tree
Showing 3 changed files with 5,158 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/brainstorm_nhl_api_calls.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -e

set -x

cd "$(dirname "$0")"

# 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

# Get games by team by month (32 x 12 = 384 calls/year)
curl -X GET "https://api-web.nhle.com/v1/club-schedule/DET/month/2023-12" | jq | tee nhl_api_schedule_monthly_team.json | wc
# output: 1080 1924 28420
Loading

0 comments on commit 36b65b8

Please sign in to comment.