Logo

StreamTitle

How to get the 'StreamTitle' of a webradio stream

To read the 'StreamTitle' of a webradio it is necessary to add the following line to the http-request:

Icy-MetaData:1

the answer can be read in the hex-dump below, the hex-dump was recorded with an ESP32
the request to the radio station was:
GET XXXXXXXXPATHXXXXXXXX HTTP/1.1\r\n
Host: XXXXXXHOSTXXXXXX\r\n
Icy-MetaData:1\r\n
Connection: close\r\n\r\n
Good to know: The radio stations don't always send back the data you requested, sometimes icy-metaint is 0, sometimes there is no data in the StreamTitle, but other parameters are given, e.g. when an advertisement is playing, and this is often when you start playing a radio station.
Buy me a tea

the anonymized hex-dump of a webradio stream (with description):

How to read the 'StreamTitle' of a webradio stream


php example:

the output of this script looks like this:
Um die Bedienung der Website zu erleichtern, verwenden wir Cookies. Wenn Sie diese Website benutzen, stimmen Sie den Datenschutzrichtlinien zu.
We use cookies to make the website easier to use. By using this website you agree to the privacy policy.