01-23-2024, 08:29 PM
(01-23-2024, 08:27 AM)Falco Wrote:(01-22-2024, 06:43 PM)Nutul Wrote: Now I feel almost compelled to have a look at the API...
I'm useless when it comes to coding, but I can link the API of course![]()
https://api.radio-browser.info/
Ok... I played around with it, and I was able to get the various lists of stations/codecs/countries/states/languages/tags etc. etc.
Also some search specifying countrycode and state.
I tried immediately the retrieved url_resolved with VLC and it plays always, no problems.
It's late here, so I cannot mess around with music ATM, but what I did was also check the returned resolved url with the one I have currently inserted in moOde (and which plays for me, and wasn't searched for in radio-browser.info, BTW) and they are the same.
(some of them when pasted in a browser tab ask for download - while in VLC they do play - same for the urls of my working moOde stations I was checking)
I didn't use the API extensively, with curl, but I didn't use / specify any header parameters; just the url (?/&) ones.
It seems responsive, the results usually came in in less than a second (OK, I am in Europe, and the servers are here, around the corner, but still...)
Now... from here, to build a moOde UI for browsing may require some time, and I am not talking about days...
I'll try to setup something browser-based for now, then all the communication should eventually be moved in the php layer...