如何使用 Echonest API 启动参数



>我正在遵循以下页面上的示例:

http://developer.echonest.com/docs/v4/genre.html#artists

我想抵消按流派搜索艺术家的结果。 他们在页面上提供的示例列出了"结果"和"开始"。 我假设"开始"是偏移量。他们提供的示例查询是:

http://developer.echonest.com/api/v4/genre/artists?api_key=JEXNQ223JXCCQEINO&format=json&results=5&start=0&bucket=hotttnesss&name=jazz

但是我收到任何错误,指出"开始"是一个无效的参数。 有没有人能够成功使用"start"参数?

这看起来像是他们示例中的错误。 如果您阅读了文档,则"开始"和"结果"对于流派/艺术家端点无效。 更改示例以将这些参数删除有效。

叫:

http://developer.echonest.com/api/v4/genre/artists?api_key=*********&format=json&bucket=hotttnesss&name=jazz

(将 *** 替换为您的密钥)

收益 率:

{  
    "response":{  
        "status":{  
            "version":"4.2",
            "code":0,
            "message":"Success"
        },
        "artists":[  
            {  
                "name":"John Coltrane",
                "hotttnesss":0.588225,
                "id":"ARIOZCU1187FB3A3DC"
            },
            {  
                "name":"Thelonious Monk",
                "hotttnesss":0.649332,
                "id":"AR9PLH11187FB58A87"
            },
            {  
                "name":"Miles Davis",
                "hotttnesss":0.697302,
                "id":"AR7RTGF1187FB38793"
            },
            {  
                "name":"Miles Davis Quintet",
                "hotttnesss":0.489603,
                "id":"AR5DF1C1187FB4E94C"
            },
            {  
                "name":"Cannonball Adderley",
                "hotttnesss":0.560071,
                "id":"ARQ5TM41187FB3E97D"
            },
            {  
                "name":"Wayne Shorter",
                "hotttnesss":0.548165,
                "id":"ARO3CKW1187B9905A8"
            },
            {  
                "name":"Wynton Marsalis",
                "hotttnesss":0.566708,
                "id":"ARV3VEI1187B9AD5C9"
            },
            {  
                "name":"Sonny Rollins",
                "hotttnesss":0.577764,
                "id":"AR6Q4T91187B995616"
            },
            {  
                "name":"The Dave Brubeck Quartet",
                "hotttnesss":0.570099,
                "id":"ARLKR161187FB50694"
            },
            {  
                "name":"Kenny Burrell",
                "hotttnesss":0.543388,
                "id":"ARQYH461187FB3E975"
            },
            {  
                "name":"Stan Getz",
                "hotttnesss":0.559735,
                "id":"ARMGQLA1187B9AEBF8"
            },
            {  
                "name":"Dizzy Gillespie",
                "hotttnesss":0.561122,
                "id":"ARXA17J1187FB3B507"
            },
            {  
                "name":"Yusef Lateef",
                "hotttnesss":0.513261,
                "id":"ART95BW1187FB3AF79"
            },
            {  
                "name":"Bill Evans",
                "hotttnesss":0.581819,
                "id":"ARTLL9E1187FB4436F"
            },
            {  
                "name":"Freddie Hubbard",
                "hotttnesss":0.524227,
                "id":"ARU1K2U1187FB48529"
            }
        ]
    }
}

据我所知,没有办法浏览与流派相关的艺术家......

相关内容

  • 没有找到相关文章

最新更新