How to get the raw streaming URL from an iHeartRadio station

Create a simple script

I called mine

#!/usr/bin/env bash

wget -O - "$1" | grep initialProps | sed 's/\,/\n/g' | grep stream | cut -f2- -d':' | cut -f2 -d'"' | grep http | sort | uniq

Visit radio station page

  1. Example visit B97
  2. Click on share icon (square box with up arrow to the right of Connect)
  3. Copy entire URL, in this case
  4. From CLI run your script.

Your output should include:

Note, not every URL in your output will be a streaming URL. Usually the bottom three work. Your mileage may vary.