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

前端 未结 1 424
臣服心动
臣服心动 2021-01-22 20:08

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

相关标签:
1条回答
  • 2021-01-22 20:38

    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).

    0 讨论(0)
提交回复
热议问题