bilge icon indicating copy to clipboard operation
bilge copied to clipboard

Retrieve Live NPR Program Information with Siri Shortcuts

Open extratone opened this issue 3 years ago • 0 comments

Retrieve Live NPR Program Information with Siri Shortcuts

Finding UCSID

This past month, MacStories hosted a community Siri Shortcuts contest called Automation April. One of its winners - a shortcut called "What's on KUTX?" credited to Jack Wellborn - caught my eye as a lifelong dependent upon National Public Radio. Via John Voorhees' comment:

The solution Wellborn came up with is ingenious. It turns out that KUTX uses a web API that can return information about the currently playing track. The API is used to drive an ‘On Now’ widget on the station’s website, but Wellborn discovered that they could query the API and get the track information back as JSON. So, they built a shortcut that queries the API when run, returning the info about the currently-playing song.

I began playing around with the NPR API Jack used and discovered quite accidentally that their shortcut could be modified to display current program information for those NPR stations that are not music-oriented, like mine.

What's on KBIA? Shortcut

Web Inspector Logo

Broadcasts Logo

extratone avatar Jun 05 '22 21:06 extratone