简体   繁体   English

Instagram api-用于通过用户名获取user_id的端点已淘汰

[英]Instagram api - endpoint for getting user_id by username has been retired

The api end point bellow, for getting user_id by username has been retired in recent updates of instagam: https://api.instagram.com/v1/users/search?q= {username}&access_token= 用于通过用户名获取user_id的api端点已在instagam的最新更新中停用: https ://api.instagram.com/v1/users/search ? q = {username}&access_token =

Is there another way to get those information by username? 还有另一种通过用户名获取这些信息的方法吗?

Thanks in advance. 提前致谢。

Use this link to parse the user-id 使用此链接来解析用户标识

https://apinsta.herokuapp.com/u/USERNAME

This will give the Json data of user profile. 这将提供用户配置文件的Json数据。 This is simply same as the old ?__a=1 but with limitations. 这与旧的?__a=1完全相同,但有局限性。 But you can easily parse the user-id from this. 但是您可以轻松地从中解析用户ID。

See here https://stackoverflow.com/a/49862390/9749184 看到这里https://stackoverflow.com/a/49862390/9749184

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM