检查Instagram帐户名是否可用 [英] Check if instagram account name is available

查看:377
本文介绍了检查Instagram帐户名是否可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查Instagram用户名是否可以正确"的方式使用.目前,我正在做的事情是在其instagram页面上打开所需的用户名,并检查状态代码是否为404.但这存在一个问题,因为如果该名称的先前所有者被禁止,则该帐户将不存在,但您也无法使用名字.我在这里找到了一篇关于它的旧文章,除了他们以前做不到的方式(

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

那么我有办法可靠地检查是否使用了Instagram用户名吗? (使用或不使用Instagram API)

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

推荐答案

没有代码,您始终可以使用

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

使用代码,您可以使用:https://www.instagram.com/{username}/?__a=1

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.

这篇关于检查Instagram帐户名是否可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆