Creating static playlists

Learn how to create interesting static playlists.

Details

The Playlisting API lets developers construct playlists based on a flexible set of artist/song selection and sorting rules. The Echo Nest has deep data about millions of artists and songs. We know how popular Lady Gaga is, we know the tempo of every one of her songs, we know other artists that sound similar to her, we know where she’s from, we know what words people use to describe her music (‘dance pop’, ‘club’, ‘party music’, ‘female’, ‘diva’ ). With the Playlisting API we can use this data to select music and arrange it in all sorts of flexible ways – from very simple Pandora radio style playlists of similar sounding songs to elaborate playlists drawing on a wide range of parameters. Here are some examples of the types of playlists you can construct with the API: Similar artist radio – generate a playlist of songs by similar artists

Similar Artist Radio

Generate a playlist of songs by similar artists

Response

    {
        "response": {
            "songs": [
                {
                    "artist_id": "ARBAN8S1187FB4D22F", 
                    "artist_name": "Ben Folds Five", 
                    "id": "SOSTFXC12A8C130ADD", 
                    "title": "Narcolepsy"
                }, 
                {
                    "artist_id": "ARS94L01187B9AD297", 
                    "artist_name": "Nerf Herder", 
                    "id": "SOZUBQV12AF72A3F04", 
                    "title": "I Want To Take You Out For Ice Cream"
                }, 
                {
                    "artist_id": "ARQ4HPJ1187B9AEB79", 
                    "artist_name": "Saves the Day", 
                    "id": "SOQUCPS12AC39274F8", 
                    "title": "Jessie & My Whetstone"
                }, 
                {
                    "artist_id": "AR633SY1187B9AC3B9", 
                    "artist_name": "Weezer", 
                    "id": "SOOGTGD12B39EA62D3", 
                    "title": "Ruling Me"
                }, 
                {
                    "artist_id": "ARMKNC21187FB4696B", 
                    "artist_name": "Dashboard Confessional", 
                    "id": "SOGNFTM12A81C207F7", 
                    "title": "The Shade Of Poison Trees"
                }
            ], 
            "status": {
                "code": 0, 
                "message": "Success", 
                "version": "4.2"
            }
        }
        }

Jogging playlist

Generate a playlist of 80s power pop with a tempo between 120 and 130 BPM.

Response

{
    "response": {
        "songs": [
            {
                "artist_id": "ARZIXB81187B98FCEC", 
                "artist_name": "The Plimsouls", 
                "audio_summary": {
                    "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRNEBDO125488750C5/3/full.json?Signature=v1HJbUXGxOsRB6M8NuPXvujKQWo%3D&Expires=1308077245&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                    "audio_md5": null, 
                    "danceability": 0.80064029999999997, 
                    "duration": 419.68279999999999, 
                    "energy": 0.39167594999999999, 
                    "key": 11, 
                    "loudness": -8.7379999999999995, 
                    "mode": 1, 
                    "tempo": 126.036, 
                    "time_signature": 4
                }, 
                "id": "SOMYYDW12AF72A48DB", 
                "title": "Twelve"
            }, 
            {
                "artist_id": "ARA23XO1187B9AF18F", 
                "artist_name": "The Smithereens", 
                "audio_summary": {
                    "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRGVZON12730FD7ACB/3/full.json?Signature=cvKZDLJd1KYih70jsPtfzqowKyw%3D&Expires=1308077245&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                    "audio_md5": null, 
                    "danceability": 0.32112851999999997, 
                    "duration": 293.90323000000001, 
                    "energy": 0.84041023000000004, 
                    "key": 1, 
                    "loudness": -5.6509999999999998, 
                    "mode": 1, 
                    "tempo": 129.96600000000001, 
                    "time_signature": 4
                }, 
                "id": "SOAGOSG12AF72A735F", 
                "title": "Only A Memory"
            }, 
            {
                "artist_id": "ARSR4161187B98CA8B", 
                "artist_name": "Stan Bush", 
                "audio_summary": {
                    "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRBXMPU12CBDE6D3E5/3/full.json?Signature=5jV6pDmRw2xmZ4DLtDMnw6gPLgI%3D&Expires=1308077245&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                    "audio_md5": null, 
                    "danceability": 0.59243299999999999, 
                    "duration": 289.56689999999998, 
                    "energy": 0.63595193999999999, 
                    "key": 2, 
                    "loudness": -7.3719999999999999, 
                    "mode": 1, 
                    "tempo": 121.95999999999999, 
                    "time_signature": 4
                }, 
                "id": "SOIIPDQ12D8578F5D1", 
                "title": "If We Ever"
            }, 
            {
                "artist_id": "AR4NREB1187B9AEDAC", 
                "artist_name": "Mink DeVille", 
                "audio_summary": {
                    "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRCAZRC128F14734C0/3/full.json?Signature=q5%2B9e4wJBSThzDZjuVe8AZKglrg%3D&Expires=1308077245&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                    "audio_md5": null, 
                    "danceability": 0.66129910000000003, 
                    "duration": 130.48119, 
                    "energy": 0.84203243000000005, 
                    "key": 9, 
                    "loudness": -12.555, 
                    "mode": 1, 
                    "tempo": 140.458, 
                    "time_signature": 1
                }, 
                "id": "SOPTUNV12A6D4FA18A", 
                "title": "Gunslinger"
            }, 
            {
                "artist_id": "ARA23XO1187B9AF18F", 
                "artist_name": "The Smithereens", 
                "audio_summary": {
                    "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRGBRUN1254888DD19/3/full.json?Signature=sIkVfMueSOhBH1NdWwRwoAnadwg%3D&Expires=1308077245&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                    "audio_md5": null, 
                    "danceability": 0.48459356999999997, 
                    "duration": 225.74976000000001, 
                    "energy": 0.67336874999999996, 
                    "key": 1, 
                    "loudness": -6.6470000000000002, 
                    "mode": 1, 
                    "tempo": 132.30500000000001, 
                    "time_signature": 4
                }, 
                "id": "SOIRSTL12AF72A6D06", 
                "title": "Only A Memory (24-Bit Digitally Remastered 04)"
            }
        ], 
        "status": {
            "code": 0, 
            "message": "Success", 
            "version": "4.2"
        }
    }
}

70s dance mix

Response

    {
        "response": {
            "songs": [
                {
                    "artist_id": "ARAF2I21187FB4CE77", 
                    "artist_name": "Average White Band", 
                    "audio_summary": {
                        "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRBPAQW1264E583A8E/3/full.json?Signature=4Pd5sPBzGkVOe893rKzcIwqfciQ%3D&Expires=1308078261&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                        "audio_md5": null, 
                        "danceability": 0.57823760000000002, 
                        "duration": 486.76526000000001, 
                        "energy": 0.57893466999999998, 
                        "key": 11, 
                        "loudness": -9.8689999999999998, 
                        "mode": 0, 
                        "tempo": 89.123000000000005, 
                        "time_signature": 4
                    }, 
                    "id": "SOZJCFJ12AB0183092", 
                    "title": "TLC "
                }, 
                {
                    "artist_id": "AR09AQD1187FB38D6F", 
                    "artist_name": "Joe Tex", 
                    "audio_summary": {
                        "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRIIUJD127D51EDD67/3/full.json?Signature=Ad8hjpNwItobvzKxZLCM2%2FoQv8M%3D&Expires=1308078261&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                        "audio_md5": null, 
                        "danceability": 0.80121905000000004, 
                        "duration": 147.66974999999999, 
                        "energy": 0.84365153000000004, 
                        "key": 10, 
                        "loudness": -9.9779999999999998, 
                        "mode": 0, 
                        "tempo": 93.638000000000005, 
                        "time_signature": 4
                    }, 
                    "id": "SOCWDPX12AB017BFAB", 
                    "title": "I Gotcha"
                }, 
                {
                    "artist_id": "ARQSLGK1187FB47CF3", 
                    "artist_name": "KC and The Sunshine Band", 
                    "audio_summary": {
                        "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRLTQTD1264E4CE372/3/full.json?Signature=eC385g1Fy7KX316%2FqrzFtrTfT%2F4%3D&Expires=1308078261&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                        "audio_md5": null, 
                        "danceability": 0.70730700000000002, 
                        "duration": 184.94649000000001, 
                        "energy": 0.87484280000000003, 
                        "key": 5, 
                        "loudness": -8.9920000000000009, 
                        "mode": 0, 
                        "tempo": 109.173, 
                        "time_signature": 1
                    }, 
                    "id": "SOZLNOR12AF72A6407", 
                    "title": "That's The Way I Like It"
                }, 
                {
                    "artist_id": "ARW3LUX1187FB5C4C0", 
                    "artist_name": "The Jacksons", 
                    "audio_summary": {
                        "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRAPKTY1264E5B436E/3/full.json?Signature=SgpGfp5Le89zipWUb05xWf2haOM%3D&Expires=1308078261&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                        "audio_md5": null, 
                        "danceability": 0.75779854999999996, 
                        "duration": 301.24362000000002, 
                        "energy": 0.72302496000000005, 
                        "key": 0, 
                        "loudness": -9.3350000000000009, 
                        "mode": 1, 
                        "tempo": 116.20099999999999, 
                        "time_signature": 4
                    }, 
                    "id": "SOQDPOY12A8C13F34B", 
                    "title": "Everybody"
                }, 
                {
                    "artist_id": "AR64Z6B1187B9A1729", 
                    "artist_name": "Village People", 
                    "audio_summary": {
                        "analysis_url": "https://echonest-analysis.s3.amazonaws.com:443/TR/TRRZWGK128F930622C/3/full.json?Signature=%2FqEEpN4RV1FSaXPTTJMoLXAF9Gw%3D&Expires=1308078261&AWSAccessKeyId=AKIAJRDFEY23UEVW42BQ", 
                        "audio_md5": null, 
                        "danceability": 0.71626449999999997, 
                        "duration": 275.22568000000001, 
                        "energy": 0.77442800000000001, 
                        "key": 9, 
                        "loudness": -8.2509999999999994, 
                        "mode": 0, 
                        "tempo": 127.45699999999999, 
                        "time_signature": 4
                    }, 
                    "id": "SOIEKKF12AAF3B5E18", 
                    "title": "Sensual"
                }
            ], 
            "status": {
                "code": 0, 
                "message": "Success", 
                "version": "4.2"
            }
        }
    }