Instagram how to get my user id from username?

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

    Easily Get USER ID and User Details

    https://api.instagram.com/v1/users/search?q=[ USER NAME ]&client_id=[ YOU APP Client ID ]

    For Example:

    https://api.instagram.com/v1/users/search?q=zeeshanakhter2009&client_id=enter_your_id

    Result:

    {"meta":{"code":200},"data":[{"username":"zeeshanakhter2009","bio":"http://about.me/zeeshanakhter","website":"http://zeeshanakhter.com","profile_picture":"http://images.ak.instagram.com/profiles/profile_202090411_75sq_1377878261.jpg","full_name":"Zeeshan Akhter","id":"202090411"}]}

提交回复
热议问题