The JS example: https://api.radio-browser.info/examples/serverlist-browser.js shows how to get all servers and use map to prepend 'https://' in front of the available URL's.
There is one URL though: 'v2201904596387414.luckysrv.de' that doesn't support https, which will result in errors when trying to make a GET request.
As a workaround I'm currently filtering out URL's that don't contain 'radio-browser.info'.
const endpoints = response.data.filter((x) => x.name.includes("radio-browser.info")).map((x) => "https://" + x.name);
The JS example: https://api.radio-browser.info/examples/serverlist-browser.js shows how to get all servers and use map to prepend 'https://' in front of the available URL's. There is one URL though: 'v2201904596387414.luckysrv.de' that doesn't support https, which will result in errors when trying to make a GET request.
As a workaround I'm currently filtering out URL's that don't contain 'radio-browser.info'.
const endpoints = response.data.filter((x) => x.name.includes("radio-browser.info")).map((x) => "https://" + x.name);