Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

Empty Songs / Lookahead Response in Dynamic Playlisting

$
0
0

After using static playlisting for a couple weeks, I've decided it's not right for my application, and would like to implement dynamic playlisting instead.

My goal is to create a catalog-radio playlist by supplying a taste profile ID to the create endpoint.

resp = HTTParty.get("http://developer.echonest.com/api/v4/playlist/dynamic/create?api_key=[MYREDACTEDAPIKEY]&type=catalog-radio&bucket=id:spotify&bucket=tracks&limit=true&seed_catalog=" + profile_id).parsed_response

I get a successful response from that endpoint, but calling the next endpoint with the returned session id yields a success response with lookahead and songs both as empty arrays - I've tried playing with both the lookahead and results parameters and it seems not to change anything.

I am able to get an artist dynamic playlist working (just like the example in the docs, but I switched up the bucket space to spotify, changed the adventurousness, etc) so I feel like I'm on the right track.

The taste profile ID I'm testing with returns a good response via the TasteProfile#read endpoint, so my previous issues of updating the TasteProfile itself are solved.

Happy to provide an API key and session ID privately to help get to the bottom of this.

Im actually also now seeing the same empty songs response from my (previously working) static playlist API call.

Here's what my next call looks like:

resp = HTTParty.get("http://developer.echonest.com/api/v4/playlist/dynamic/next?api_key=XXX&results=5&format=json&session_id=" + session_id)

Viewing all articles
Browse latest Browse all 1582

Trending Articles