1

我正在关注位于下一页上的示例:

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”参数?

4

1 回答 1

0

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

来电:

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"
            }
        ]
    }
}

据我所知,没有办法翻阅与流派相关的艺术家……

于 2016-02-01T20:45:30.303 回答