Instagram如何从用户名中获取我的用户名? [英] Instagram how to get my user id from username?

查看:264
本文介绍了Instagram如何从用户名中获取我的用户名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JSON将图片供稿嵌入到我的网站中,URL需要我的用户ID,以便我可以检索此供稿.

I'm in the process of embedding my image feed in my website using JSON, the URL needs my user id so I can retrieve this feed.

那么,在哪里可以找到/获取我的用户ID?

So, where can I find/get my user id?

推荐答案

答案很晚,但是我认为这是该主题的最佳答案.希望这是有用的.

Very late answer but I think this is the best answer of this topic. Hope this is useful.

使用以下网址提出请求时,您可以获取用户信息:

You can get user info when a request is made with the url below:

https://www.instagram.com/{username}/?__a=1

例如:

此url将获取有关用户名therock的用户的所有信息

This url will get all information about a user whose username is therock

https://www.instagram.com/therock/?__a=1


更新于2019年6月20日,该API现在已公开.无需身份验证.

2018年12月11日更新,我需要确认此终结点仍然有效.您需要先登录才能发送请求到此站点,因为它不再是公共端点.登录步骤也很容易.这是我的演示: https://youtu.be/ec5QhwM6fvc


Update i June-20-2019, the API is public now. No authentication required.

Update in December-11-2018, I needed to confirm that this endpoint still work. You need to login before sending request to this site because it's not public endpoint anymore. The login step is easy also. This is my demo: https://youtu.be/ec5QhwM6fvc

在2018年4月17日更新,该端点似乎仍在工作(但不再是公共端点),您必须向该端点发送带有额外信息的请求. (按F12打开开发人员工具栏,然后单击网络"选项卡并跟踪请求.)

Update in Apr-17-2018, it's look like this endpoint still working (but its not public endpoint anymore), you must send a request with extra information to that endpoint. (Press F12 to open developer toolbar, then click to Network Tab and trace the request.)

对不起,因为我太忙了.希望这些信息对您有所帮助. 嗯,如果需要的话,请给我点赞成票.

Sorry because I'm too busy. Hope this information help you guys. Hmm, feel free to give me a down-vote if you want.

cameronjonesweb于2018年4月12日更新,该端点不再起作用.当他/她尝试访问此端点时,将返回403状态代码.

Update in Apr-12-2018, cameronjonesweb said that this endpoint doesn't work anymore. When he/she trying to access this endpoint, 403 status code return.

这篇关于Instagram如何从用户名中获取我的用户名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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