From dd5e65fdd7e1a1ec0ec899e6fb2a9cc4fd5faecf Mon Sep 17 00:00:00 2001 From: Dan Abrey Date: Sun, 24 Nov 2019 12:30:23 +0000 Subject: [PATCH] Fix broken link to team stats --- src/ESPNCollegeFootballStats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ESPNCollegeFootballStats.php b/src/ESPNCollegeFootballStats.php index 7a21388..9ec48be 100644 --- a/src/ESPNCollegeFootballStats.php +++ b/src/ESPNCollegeFootballStats.php @@ -49,7 +49,7 @@ public function getTeam(string $id): Team foreach ($this->seasons as $season) { $json = file_get_contents( sprintf( - 'https://site.web.api.espn.com/apis/common/v3/sports/football/college-football/athletes/%s/stats?region=gb&lang=en&contentorigin=espn&season=%s', + 'https://site.web.api.espn.com/apis/site/v2/sports/football/college-football/teams/%s/athletes/statistics?region=us&lang=en&contentorigin=espn&season=%s', $id, $season )