Old 6th November 2017, 23:14   #1
moejukebox
Junior Member
 
Join Date: Nov 2017
Posts: 2
Many GET Genres API calls return empty list

Hi, This morning (maybe over the weekend) the API calls to get Genres return a 200 response with an empty "genrelist" property.

Note: replace "{{shoutCastKey}}" with a valid shoutcast API key

Get Secondary Genres
code:
http://api.shoutcast.com/genre/secondary?parentid=0&k={{shoutCastKey}}&f=json

Returns the following:
code:
{
"response": {
"data": {
"genrelist": {}
},
"statusText": "Ok",
"statusCode": 200
}
}



Other API calls that return a 200 response with no data:
code:
http://api.shoutcast.com/genre/primary?k={{shoutCastKey}}&f=json
http://api.shoutcast.com/legacy/genrelist?k={{shoutCastKey}}
http://api.shoutcast.com/station/advancedsearch?genre_id=1&limit=10&k={{shoutCastKey}}&f=json



The last one (advanced search) takes several seconds to return a successful result of nothing... Also fails in a random android app i tried (shoutcast jukebox) and if you open the genre tab, it doesn't show anything. Tested in postman and in a live production app.

Please advise, thanks!
moejukebox is offline   Reply With Quote
Old 6th November 2017, 23:39   #2
Derp1
Junior Member
 
Join Date: Nov 2017
Posts: 1
Same Issue

Same issue that i noticed today. The following do not work:
http://api.shoutcast.com/legacy/genrelist?k=[Your Dev ID]
http://api.shoutcast.com/legacy/genresearch?k=[Your Dev ID]&genre=classic

But you can pull the top 500 stations just fine. As well as some other api calls.
http://api.shoutcast.com/legacy/Top500?k=[Your Dev ID]

There are quite a few apps having this issue with blank genre screens.
Derp1 is offline   Reply With Quote
Old 7th November 2017, 03:31   #3
letmechill08
Junior Member
 
Join Date: Nov 2017
Posts: 1
Facing the same issue

Yeah. Top Stations and Search are working but the Random Stations and Stations based on now playing are not working. I usually see around 62000+ radio stations on ShoutCast website. But today, its just showing "8,101 radio stations using our technology". Maybe servers are getting updated or something.
letmechill08 is offline   Reply With Quote
Old 7th November 2017, 14:56   #4
moejukebox
Junior Member
 
Join Date: Nov 2017
Posts: 2
Seems like they fixed it this morning, the API calls I mentioned appear to be working. I still had to stay late last night doing a crazy workaround but at least I can use that as a fall back the next time the API's break .
moejukebox is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Technical Support

Tags
api, genres

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump