Check if a user is banned or account doesn't actually exist. Instagram, c#

这一生的挚爱 提交于 2019-12-02 01:39:39

问题


I am not using a API but I have been looking into the API like a mad man trying to find some relevance to it. I am opening the website and downloading all of it at the moment to see if it contains "Page Not Found" but banned accounts also say the same thing. So is there any known way to distinguish this?


回答1:


Make a call to get the user /users/*user-id* and compare the result for non-existent users.

http://instagram.com/developer/endpoints/users/#get_users

You could also use the users search /users/search call to search by username, and iterate through the results and see if any match the username you are looking for exactly. If none of the results match exactly, then you know they don't exist (or are for some reason hidden).



来源:https://stackoverflow.com/questions/28444427/check-if-a-user-is-banned-or-account-doesnt-actually-exist-instagram-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!