Display's the latest 20 songs from tracklist.
If more should displayed, add limit to the request. Range 1-100.
Example: https://cdn7.techweb.at/api/sunshine-live/playlist?channel=sunshine-live&limit=20&format=xml
90s Anthems
Afterhour
Bunker
Charts
Chillout
Classics
Clubsound Berlin
Daft Punk
Die 90er
Drum n Bass
EDM
Eurodance
Festival
Focus
Hands up
Hard
House
I Am Raving
Kraftwerk
Lounge
Love
Mayday
Nature One
Summer Beats
sunshine live (Studio)
sunshine live & Pride
Tech House
Techno
Time Warp
Trance
Tropical House
Psytrance (X-mas*)
gamescom FM
German Techno
Ibiza
Vocal & Classic House
Workout
Melodic Techno
Mix Mission
Party
Remix
Die 80er
Amsterdam Dance Event - Club
Amsterdam Dance Event - Dance
Avicii
Mix Mission
Rave on Snow
Relax
Techno Queens
Winter Chill
Pop
Die 2000er
Future Bass
New Music
Call the API with following commands:
Playlist from current day
https://cdn7.techweb.at/api/sunshine-live/playlist?channel=sunshine-live&date=today&format=json
Playlist from any other date
https://cdn7.techweb.at/api/sunshine-live/playlist?channel=sunshine-live&date=22.12.2024&format=json
Playlist with the latest x tracks (Limit range between 1 and 100)
https://cdn7.techweb.at/api/sunshine-live/playlist?channel=sunshine-live&limit=50&format=json
Browsing within the playlist
Display's entries from 1-50
https://cdn7.techweb.at/api/sunshine-live/playlist?channel=sunshine-live&offset=0&limit=50&format=json
Display's entries from 10-59
https://cdn7.techweb.at/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://cdn7.techweb.at/api/sunshine-live/playlist?channel=summer-beats&format=json
Stream/Channel
20 Jahre sunshine live90s 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 (Studio)
sunshine live & Pride
Tech House
Techno
Time Warp
Trance
Psytrance (X-mas*)
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
Winter Chill
Pop
Die 2000er
Future Bass
New Music
Shortcut
20-jahre-sunshine-live90s-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
// Example to get all tracks from current day #json
header('Content-Type: text/html; charset=utf-8');
$url = 'https://cdn7.techweb.at/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>';
}
?>
// Example to get latest track from current day #json
header('Content-Type: text/html; charset=utf-8');
$url = 'https://cdn7.techweb.at/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>';
?>