我如何知道我的 IP 是否被列入 Deezer API 的黑名单?

编程入门 行业动态 更新时间:2024-10-25 20:22:10
本文介绍了我如何知道我的 IP 是否被列入 Deezer API 的黑名单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送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:关键词]

本文发布于:2023-04-18 04:54:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/930556.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:黑名单   被列入   IP   API   Deezer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!