我正在使用SoundCloud API进行Web应用程序 . 使用 /tracks endpoints ,我有两个麻烦 .

1.当我发送带有无效流派参数的请求时,/ tracks endpoints 是否返回503(服务不可用)?

当我故意使用与任何曲目都不匹配的条件 with the q parameter

http://api.soundcloud.com/tracks?q=ewkqtieorak&client_id=MY_CLIENT_ID&format=json&_status_code_map%5B302%5D=200

,响应是我期望的空数组,但 with the genres parameter 喜欢

http://api.soundcloud.com/tracks?genres=hoge&client_id=MY_CLIENT_ID&format=json&_status_code_map%5B302%5D=200

,回复总是503(我试过约500次) .

/ track endpoints 返回状态503经常使用现有类型,我不确定这意味着没有这样的类型或SoundCloud有服务器故障 . 有没有办法区分它们?


2.似乎filter参数无法正常工作 .

示例请求如下 . 我想要可流式音轨并添加“streamable”作为滤波器参数,但响应音轨包括一些不可复制的音轨 . 我使用不正确吗?

http://api.soundcloud.com/tracks?filter=streamable&genres=electronica&client_id=MY_CLIENT_ID&format=json
http://api.soundcloud.com/tracks?filter=streamable&order=hotness&genres=jazz%2Cclassical&bpm[from]=0&bpm[to]=100&created_at[from]=2011-11-24%2000%3A00%3A00&created_at[to]=2012-02-22%2000%3A00%3A00&limit=5&client_id=MY_CLIENT_ID&format=json&_status_code_map[302]=200
http://api.soundcloud.com/tracks?filter=streamable&order=hotness&genres=jazz%2Cclassical&bpm[from]=0&bpm[to]=100&created_at[from]=2012-01-03%2000%3A00%3A00&created_at[to]=2012-04-02%2000%3A00%3A00&limit=30&client_id=MY_CLIENT_ID&format=json&_status_code_map[302]=200