Check Score, Standings and Next Game for a Team

I have created a shortcut that triggers about a dozen small shortcuts, each of which finds specific details and speaks. Examples: weather, battery, network, unread emails, calendar items, reminders, etc. The triggering shortcut is automated to run upon stopping any alarm. Basically it’s a verbal morning summary.

One of these shortcuts is for a sports team. I am able to use a shortcut that queries the Apple Sports app, to find upcoming events for a sports team. By using the index function, I can determine the date, time and opponent of the next game.

I’m looking to expand on that, to include the date, last opponent and score of the most recent game played; and also include a team’s record and position in the applicable standings.

Example: “The Warriors last played on Wednesday, February 11th against the Spurs. Final score: Spurs 126, Warriors 113. The Warriors are currently in 8th place in the Western Conference with a record of 29 and 26. The Warriors next game is on Thursday, February 19th against the Celtics.”

I know an API can be used in the ‘get contents from URL’ function, I just don’t have enough expertise as I just started using shortcuts. I have the ESPN URL, just need some guidance on how to build.

Wondering if anybody has done similar and has any suggestions or recommendations.