Most played since 2323 days on channel
Last played tracks on channel

Playlist / Tracklist / Songlist API (JSON, XML, RSS)

sunshine live
electronic music radio

How to use JSON API
  1. Usage
  2. Examples
Dynamic Bookmark - Playlist XML RSS Feed

Display's the latest 20 songs from tracklist.
If more should displayed, add limit to the request. Range 1-100.
Example: https://sunshine-live.us.to/api/sunshine-live/playlist?channel=sunshine-live&limit=20&format=xml

How to use JSON API

Call the API with following commands:

Playlist from current day
https://sunshine-live.us.to/api/sunshine-live/playlist?channel=sunshine-live&date=today&format=json

Playlist from any other date
https://sunshine-live.us.to/api/sunshine-live/playlist?channel=sunshine-live&date=10.05.2024&format=json

Playlist with the latest x tracks (Limit range between 1 and 100)
https://sunshine-live.us.to/api/sunshine-live/playlist?channel=sunshine-live&limit=50&format=json

Browsing within the playlist
Display's entries from 1-50
https://sunshine-live.us.to/api/sunshine-live/playlist?channel=sunshine-live&offset=0&limit=50&format=json

Display's entries from 10-59
https://sunshine-live.us.to/api/sunshine-live/playlist?channel=sunshine-live&offset=1&limit=50&format=json
(Note by usage from offset, date is obsolet)


Use following shortcuts to get the tracklist from other channels
As example. Playlist URL from Summer Beats:
https://sunshine-live.us.to/api/sunshine-live/playlist?channel=summer-beats&format=json

Shortcut

20-jahre-sunshine-live
90s-anthems
afterhour
bunker
charts
chillout
classics
clubsound-berlin
die-90er
drum-n-bass
edm
festival
hands-up
hard
house
lounge
mayday
nature-one
summer-beats
sunshine-live
sunshine-live-pride
tech-house
techno
time-warp
trance
psytrance
gamescom-fm
german-techno
ibiza
workout
mix-mission
party
remix
die-80er
amsterdam-dance-event-club
amsterdam-dance-event-dance
avicii
mix-mission
rave-on-snow
relax
techno-queens
winterchill
pop
die-2000er
future-bass
new-music
PHP Examples
<?php

// Example to get all tracks from current day #json

header('Content-Type: text/html; charset=utf-8');

$url = 'https://sunshine-live.us.to/api/sunshine-live/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>';
}

?>


<?php

// Example to get latest track from current day #json

header('Content-Type: text/html; charset=utf-8');

$url = 'https://sunshine-live.us.to/api/sunshine-live/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>';

?>

Please do not abuse our service.
This website is not associated with sunshine-live.de but it was inspired from.
For questions or suggestions write us:
Web: www.sunshine-live.us.to