Check if instagram account name is available

大兔子大兔子 提交于 2020-07-07 04:32:36

问题


I'd like to check if a Instagram username is available the 'proper' way. Currently what im doing is opening the wanted username their instagram page and check if the statuscode is 404. But this presensts a issue because, if the previous owner of the name was banned the account won't exist but, you also can't use the name. I found a old post on here about it except the way they used to do it doesn't work anymore(Check if a user is banned or account doesn't actually exist. Instagram, c#).

So is there a way I can reliably check if a Instagram username is taken? (with or without the Instagram api)


回答1:


Without code you can always use https://www.thekeygram.com/find-instagram-user-id/

With code you can use: https://www.instagram.com/{username}/?__a=1

If you see an empty object (as in just {}), that user does not exist. If you see data of any kind (more than just {}), then that user does exist.



来源:https://stackoverflow.com/questions/54159405/check-if-instagram-account-name-is-available

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