Hi, i know, that i maybe break all rules regarding mailing lists etc, but I hope, I can get an answer from you for this question: Is there an API do received the current listed stations? We want to implement Icecast into a audioplayer and for that we have to download the current stations list (is that allowed?) So I?m searching similar function like Shoutcast offers: Description: Get top 500 stations on SHOUTcast Radio directory. URL: http://api.shoutcast.com/legacy/Top500?k=[Your Dev ID] By the way do anybody know, why shoutcast don?t offer any more API-Keys? Since 3 years no progress on that L Best regards Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast-dev/attachments/20130225/62e70a5e/attachment.htm
On 25 February 2013 00:57, Richard Sch?lein <rs at noveltech.de> wrote:> Is there an API do received the current listed stations? > > We want to implement Icecast into a audioplayer and for that we have to > download the current stations list (is that allowed?)Icecast is software, not a single-vendor hosted service. So there are two things: You can connect to an icecast server and get the currently active streams. You can scrape the html off the index page, see for example http://repeater.xiph.org:8000/ or you can get raw xml from /admin/stats.xml. Unfortunately the raw xml query requires authenticating with the admin password, so this isn't helpful for casual listeners, just producer clients. There's also a global stream directory for icecast at dir.xiph.org. Listing is optional, but there are usually plenty of streams in the directory. To get a current list for your player, load http://dir.xiph.org/yp.xml. Please make sure you client sends the 'Accept-Encoding: gzip' http header; it saves a lot of bandwidth. Hope that helps, -r
Hi Richard, On 25/02/13 10:57, Richard Sch?lein wrote:> > Hi, > > i know, that i maybe break all rules regarding mailing lists etc, but > I hope, I can get an answer from you for this question: >Aside from posting a HTML mail you're doing just fine and your question is very much in the right place. ;)> Is there an API do received the current listed stations? > > We want to implement Icecast into a audioplayer and for that we have > to download the current stations list (is that allowed?) >http://dir.xiph.org/yp.xml Is the current URL for a XML representation of the Icecast directory we run at Xiph. Please note that as Ralph pointed out implementing proper compression on http level is expected from new implementations. It compresses the XML down to about 10% of its size and as such also makes for a faster download. There is currently no strict specification for the XML, while I do not expect major changes, you never know though.> So I?m searching similar function like Shoutcast offers: > > *Description:*Get top 500 stations on SHOUTcast Radio directory. > > *URL:*http://api.shoutcast.com/legacy/Top500?k=[Your Dev ID] >We do not offer that currently. You can easily do things based on the full XML on the client side though. We have a ticket open debating how an API could look in the future. https://trac.xiph.org/ticket/1905 We'd appreciate input and thoughts from real world implementers. Hope that helps. Cheers Thomas PS: please consider subscribing to the mailing list. http://lists.xiph.org/mailman/listinfo/icecast-dev