Informative Jottings

id=73801817
curl --silent "https://itunes.apple.com/lookup?id=$id" | jq -r '.results[0].feedUrl'

The above should work on Linux and MacOS. You may need to install jq.

The id is at the end of the https://podcasts.apple.com/... url. For example, https://podcasts.apple.com/us/podcast/behind-the-news-with-doug-henwood/id73801817 has id 73801817.

This method is known to be working in the year 2019.


Advanced one-line version using the original url (requires grep):

URL=https://podcasts.apple.com/us/podcast/behind-the-news-with-doug-henwood/id73801817 &&  curl --silent "https://itunes.apple.com/lookup?id=$(echo $URL | grep -E -o "[0-9]{4,}")" | jq -r '.results[0].feedUrl'