问题描述
限时送ChatGPT账号..在我的本地机器上,我访问了 url http://api.deezer/2.0/search/artist?q=feeder 并返回正确的 json 数据.在我的实时服务器上,我卷曲了相同的 url,并返回了 json.
On my local machine, I visit the url http://api.deezer/2.0/search/artist?q=feeder and get the correct json data returned. On my live server, I curl the same url, and get returned the json.
{"data":[],"total":0}
http 状态代码是 200,我认为我没有达到速率限制,在我的本地机器上测试过类似的负载.
http status code is 200, and I don't believe I've hit the rate limit, having tested on my local machine with a similar load.
我只能怀疑服务器上的其他人(在此处的共享主机上)已访问 API 并被列入黑名单,或者当达到速率限制时他们仍然响应但没有通知该事实.
I can only suspect that someone else on the server (On a shared host here), has hit the API and got blacklisted, or they still respond when a rate limit is hit but with no notification of that fact.
有人有什么建议吗?目前还没有等几个小时再试一次,我很难过.
Anyone got any suggestions? Currently short of waiting a few hours and trying again, I'm stumped.
(P.S. 任何有足够代表的人都想制作Deezer"标签?)
(P.S. Anyone with enough rep want to make a "Deezer" tag?)
推荐答案
我向 Deezer 开发人员提出了这个确切的问题.答案是您需要有访问令牌才能以这种方式使用数据.
I asked this exact question to Deezer devs. The answer is that you need to have an access token to consume the data this way.
在此处查看更多信息:http://developers.deezer/api/oauth
这篇关于我如何知道我的 IP 是否被列入 Deezer API 的黑名单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论