Instagram how to get my user id from username?

前端 未结 24 1065
傲寒
傲寒 2020-11-30 17:14

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.

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

24条回答
  •  时光取名叫无心
    2020-11-30 17:42

    Working solution without access token as of October-14-2018:

    Search for the username:

    https://www.instagram.com/web/search/topsearch/?query=
    

    Example:

    https://www.instagram.com/web/search/topsearch/?query=therock
    

    This is a search query. Find the exact matched entry in the reply and get user ID from the entry.

提交回复
热议问题