API - Play dircet Radio Favorite by replaceAndPlay


I’m building an RTI Control Driver. Goal is to discrete select one of the stored favorites from Webradio.

Further down you see my favorite I want to call. The problem is to play one specific item. I could not find a API command to do so. So I was trying with repalceAndPlay but I could not figure out the correct sytnax to do so.

Does anyone have an idea how this could be done?
This is not a solution for me: add webradio to playlist

Thanks for all help!

JSON Fav List Get

                    "service": "webradio",
                    "type": "webradio",
                    "title": "Energy Bern",
                    "icon": "fa fa-microphone",
                    "uri": "http://opml.radiotime.com/Tune.ashx?id=s8933"

Greetings and welcome to Volumio :slight_smile:

I take it you are looking for a way to get a webradio uri play via the API?
Then have a look at a solution using curl in Play a radio url via curl? - #11 by miovol

You just need to set the right headers for Content-Type in whatever method you are using to call the endpoint.