Instagram API -Get the userId

We had integrated instagram api (with {userId}/media/recent) to get media feeds based on userId. It was working fine until June 1 2016 . Now on how do I get userId for new instagram pages which we need to include as with the new release of instagram it seems difficult. This is the error messsage we get from a site from where we used to get instagram userId. "This service is no longer available as of 01. June, due to changes in Instagram's API rules" from http://www.otzberg.net/iguserid/

Regards Raghav

The mentioned website otzberg.net/iguserid is my personal site and I shut it down, based on the API announcement, which was correctly mentioned by Daniel Storm. The type of tool would never be approved by Instagram. However there are a few easy steps to get your Instagram User-ID, use Google Chrome and the Developer Tools (F12 or ⌥ + ⌘ + i)

In the console view of the profile page (e.g. https://www.instagram.com/lufthansa/) type:

    window._sharedData.entry_data.ProfilePage[0].user.id

Here a screenshot:

Instagram API, [As instagram changes their api, this tips may not work forever] Solution: just in place of userid use 'self' for private profile. means if a profile  We would like to show you a description here but the site won’t allow us.

Definitely not the most elegant way, but without involving a running browser or an approved application, is to use the (undocumented?) search API:

https://www.instagram.com/web/search/topsearch/?context=user&count=0&query={username}

This returns matching users (as count is set to 0 it should not return more than one user).

After validating the results (checking if user includes one item), you can get the userid e.g. in javascript with

response.users[0].user.pk

where response is an object with the parsed response.

How to change username? · Issue #110 · cosenary/Instagram-PHP , vinkla commented on Mar 29, 2015. Through the API you mean or Instagram accounts in general? I'm not sure about  Instagram-UserId. Find Instagram User's Id using Python. Well, I know there are lots of Github repo currently present, which allow you to find user id of the Instagram User. If I'm not wrong, then, most of the repo based on this, use Instagram API.

From Instagram:

On November 17, 2015, we announced a new permissions review process for new and existing apps on the Instagram for Developers blog. All existing apps have until June 1, 2016 to submit for review before being transitioned to sandbox mode. Please submit for review only if you are in compliance with one of our approved use cases.

You need to get your API usage approved.

Check Instagram's Platform Policy for use cases that are not allowed.

LevPasha/Instagram-API-python, New Methods getUserIdForName(username) - helper function for getInfoByName​, takes string username and returns UserId that is used in many other functions  Get the user ID of any user in instagram. Contribute to ricardojoserf/instagram-user-id development by creating an account on GitHub.

When you generate the access token.. there will be id in the json response

{"access_token": "", "user": {"username": "abcdef", "bio": "", "website": "", "profile_picture":", "full_name": "ABCEDEFE", "id": "000000000"}}

We can get userid by using this link. https://api.instagram.com/v1/users/self/?access_token=ACCESS-TOKEN

instagram_social_feed-another_user-2735329-2.patch, + else { + $userid = $row->user_id; + $instagram_query = "https://api.instagram.​com/v1/users/$userid/media/recent?access_token=$access_token"; + $text  Get the most recent media published by the owner of the access_token . A valid access token. Return media earlier than this max_id. Return media later than this min_id.

You can use this website - http://www.instaid.co.uk

Or you can do the following replacing {username} with your Instagram username

https://www.instagram.com/{username}/?__a=1

Or you can login to your Instagram account and use google dev tools and look at the cookies that have been stored. 'ds_user_id' is your user ID

User name or User Id? - Instagram Marketing, I think(99%) their private API doesn't need any conversion. Soviet June 20, 2019, 9:20am #5. UserIDs are guaranted to be unique, however in  You numeric Instagram User ID will appear here. This tool called "Find Instagram User ID" provides an easy way for developers and designers to get Instagram account numeric ID by username. Put your Instagram username on the text box and click the "Find Instagram ID" button, or simply press enter. The Instagram user ID will appear in the green box.

Building Enterprise JavaScript Applications: Learn to build and , For example, the Instagram API groups endpoints into user-, media-, tags-, and For example, it's immediately obvious that /users/:user-id/media/recent is an  Shiva's answer doesn't apply anymore. The API call "/users/{user-id}/follows" is not supported by Instagram for some time (it was disabled in 2016).For a while you were able to get only your own followers/followings with "/users/self/follows" endpoint, but Instagram disabled that feature in April 2018 (with the Cambridge Analytica issue).

Instagram API UserID. Thx Cc @aware_online Source View => Here , Instagram API UserID. Thx Cc @aware_online Source View => Here find "​logging_page_id":"profilePage_xxxxxxxxxx <= profile Number username To continuously improve Instagram users' privacy and security, we are accelerating the deprecation of Instagram API Platform, making the following changes effective immediately. We understand that this may affect your business or services, and we appreciate your support in keeping our platform secure. These capabilities will be disabled

SwiftInstagram, A Swift wrapper for the Instagram API. recentMedia(fromUser userId: String, maxId: String = default, minId: String = default, count: Int = default, success:  11.11.2017 Since Instagram changed the way they provide this data, none of above methods work nowadays. Here is the new way to get user's media:

Comments
  • Thank you . This helps
  • The JSON object has changed. If OP's doesn't work, try this: window._sharedData.entry_data.ProfilePage[0].graphql.user.id
  • I you get approved, can you still access public data without having authorisation? Or is it a case that the app has to be approved to gain access to any type of data?