Link Search Menu Expand Document

playlist.generateRandom

Returns a random playlist

Example URL

https://api.melodia.io/v1/playlist.generateRandom?userKey=a4b5G982H3r9Vf783EEd&seedKeys=GN234oufnFDe,GN57gRlknrl&count=10

Params

paramrequireddescriptiontype
seedKeysYID’s associated with the given seeds (i.e., trackKey, artistKey, and genreKey), separated by a commaString
userKeyNA unique ID to be associated with the new userString
countNNumber of tracks to return for playlist (min=5, max=100, default=10)Int

Auth

This service requires authentication. Refer to Authentication for more details.

Sample Response

{
    "statusCode": 200,
    "body":
        {"tracks": [
            {
            "trackKey": "MT239432948",
            "title": "Someone Like You",
            "artist": "Adele",
            "artistKey": "MA29FE4f3gXj",
            "artwork100": "http://akamai-b.cdn.cddbp.net/cds/2.0/cover/D7E5/6608/B546/60CD_xlarge_front.jpg"
            ...
            },
            {
            "trackKey": "MT2114129B2",
            "title": "Believe",
            "artist": "Cher",
            "artistKey": "MA29Fd4f3Tb2",
            "artwork100": "http://akamai-b.cdn.cddbp.net/cds/2.0/cover/D7E5/6608/B546/60CD_xlarge_front.jpg"
            ...
            },
            ]
        }
    ]
}

Discussion

Call this method to get a random playlist.

A userKey may also be provided in order to apply a layer of personalization to the curated tracks.