Old 22nd October 2016, 16:15   #1
Junior Member
Join Date: Oct 2016
Posts: 3
Get Radio Stream link with the station details

Hello all,

I hope you can help me with this.

When I try to access the directory using the http://api.shoutcast.com/ address, I only get the details of the stations. It is good, but is there a way to get the actual stream link for these stations?
When I use http://yp.shoutcast.com/sbin/tunein-...n.pls?id=XXXXX then the browser downloads it straight away. Can the stream link be returned in any other format like xml, or can this be shown in the http://api.shoutcast.com/ result list?

Many thanks in advance.
fehera is offline   Reply With Quote
Old 25th October 2016, 12:39   #2
Major Dude
dopelabs's Avatar
Join Date: Oct 2006
Location: Silicon Valley
Posts: 534
Send a message via AIM to dopelabs
your browser downloads the file because it doesnt know how to natively handle it. using a browser that does know how to handle the file (such as safari) will render an html5 audio player and begin playback (see attached file)

if you use a command line tool such as curl, the contents of the pls file is returned

$ curl "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1191311"
Title1=(#1 - 129/500) Dubstep.fm

furthermore, just about any other method of getting the file (outside of the browser) will result in the above output, or the above output saved to a pls file.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2016-10-25 at 5.32.33 AM.png
Views:	499
Size:	34.8 KB
ID:	52752  
dopelabs is offline   Reply With Quote
Old 27th October 2016, 00:03   #3
Junior Member
Join Date: Oct 2016
Posts: 3
#dopelabs, Thank you.
I already made a short macro in vb.net so I can loop through the records from the database and update it once the contents returned.
fehera is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

api, stream link

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump