I
I
Igor2020-05-24 18:18:18
Instagram
Igor, 2020-05-24 18:18:18

How to find out a nickname on Instagram by ID?

You need to find out the nickname by id. I have already rummaged through the sea of ​​​​sites, the maximum that I have found is "find out ID by nickname".
How can I find out the nickname of the account to which the ID belongs? Is it possible to somehow access the account page using the ID?
That is, for example, everything is simple with a nickname: instagram / nickname, but with an ID it doesn’t work that way.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bkosun, 2020-05-24
@loonny

More or less like this:

curl -A "<USER_AGENT>" https://i.instagram.com/api/v1/users/<USER_ID>/info/

{
    "user": {
        "username": "<OWNER_USERNAME>",
        "pk": <OWNER_PK>,
        "profile_pic_url": "<OWNER_PIC_URL>"
    },
    "status": "ok"
}

Use the User Agent from the list:
https://developers.whatismybrowser.com/useragents/...
Otherwise there will be an error:
{ "message": "useragent mismatch", "status": "fail" }

Example:
https://reqbin.com/c-pdm8b6m6
https://reqbin.com/c-fydg9pcf
https://stackoverflow.com/questions/46573777/how-t...
https://stackoverflow.com/ questions/11796349/insta...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question