
Display's the latest 20 songs from tracklist.
If more should displayed, add limit to the request. Range 1-100.
Example: https://www.sunshine-live.us.to/api/playlist?channel=sunshine-live&limit=20&format=xml
Call the API with following commands:
Playlist from current day
https://www.sunshine-live.us.to/api/playlist?channel=sunshine-live&date=today&format=json
Playlist from any other date
https://www.sunshine-live.us.to/api/playlist?channel=sunshine-live&date=12.09.2025&format=json
Playlist with the latest x tracks (Limit range between 1 and 100)
https://www.sunshine-live.us.to/api/playlist?channel=sunshine-live&limit=50&format=json
Use following shortcuts to get the tracklist from other channels
As example. Playlist URL from Summer Beats:
https://www.sunshine-live.us.to/api/playlist?channel=chillout&format=json
Stream/Channel
2000s2010s
80s
90s
AFRO HOUSE
BLUE
CALM FLOW BY KARMALOFT
Chillout
Classics
DRUM & BASS
EDM
Electric Cafe
Eurodance
FEMALE POWER
Festival
HARDCORE
Hardstyle
HARDTECHNO
House
Ibiza
Lounge
Mayday
Melodic Beats
Mix Mission
sunshine live (Studio)
Techno
Trance
Workout
Shortcut
2000s2010s
80s
90s
afro-house
blue
calm-flow-by-karmaloft
chillout
classics
drum-&-bass
edm
electric-cafe
eurodance
female-power
festival
hardcore
hardstyle
hardtechno
house
ibiza
lounge
mayday
melodic-beats
mix-mission
sunshine-live
techno
trance
workout
// Example to get all tracks from current day #json
header('Content-Type: text/html; charset=utf-8');
$url = 'https://www.sunshine-live.us.to/api/playlist?channel=sunshine-live&date=today&format=json';
$result = @file_get_contents($url);
$result = json_decode($result, true);
$summary = $result['today-summary'];
for ($i = 0; $i <= $summary-1; $i++)
{
$track_date = $result['playlist'][$i]['track_date'];
$track_time = $result['playlist'][$i]['track_time'];
$track_title = $result['playlist'][$i]['track_title'];
$track_artist = $result['playlist'][$i]['track_artist'];
$timestamp = $result['playlist'][$i]['timestamp'];
//debug
echo $track_date.'<br>';
echo $track_time.'<br>';
echo $track_title.'<br>';
echo $track_artist.'<br>';
echo $timestamp.'<br>';
}
?>
// Example to get latest track from current day #json
header('Content-Type: text/html; charset=utf-8');
$url = 'https://www.sunshine-live.us.to/api/playlist?channel=sunshine-live&limit=1&format=json';
$result = @file_get_contents($url);
$result = json_decode($result, true);
$track_date = $result['playlist'][0]['track_date'];
$track_time = $result['playlist'][0]['track_time'];
$track_title = $result['playlist'][0]['track_title'];
$track_artist = $result['playlist'][0]['track_artist'];
$timestamp = $result['playlist'][0]['timestamp'];
//debug
echo $track_date.'<br>';
echo $track_time.'<br>';
echo $track_title.'<br>';
echo $track_artist.'<br>';
echo $timestamp.'<br>';
?>
