Instagram how to get my user id from username?

前端 未结 24 1077
傲寒
傲寒 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:50

    Working solution ~2018

    I've found that, providing you have an access token, you can perform the following request in your browser:

    https://api.instagram.com/v1/users/self?access_token=[VALUE]

    In fact, access token contain the User ID (the first segment of the token):

    .1677aaa.aaa042540a2345d29d11110545e2499

    You can get an access token by using this tool provided by Pixel Union.

提交回复
热议问题