简体   繁体   中英

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=

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. This is simply same as the old ?__a=1 but with limitations. But you can easily parse the user-id from this.

See here https://stackoverflow.com/a/49862390/9749184

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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