Showing posts with label Instagram. Show all posts
Showing posts with label Instagram. Show all posts

Thursday, November 13, 2014

Instagram user profile details by username or userid

There are actually 3 methods to get profile details of a specific instagram user.

Method 1

Condition : you need to have the user id and the users access token to get the profile details

call the url with user id and access token. 
'https://api.instagram.com/v1/users/USER_ID?access_token=ACCESS_TOKEN'


Method 2

Condition : you need a client id (which can be created from : http://instagram.com/developer/clients/register/) & user id

call the url with user id and client id. 
'https://api.instagram.com/v1/users/USER_ID?client_id=CLIENT_ID'


Method 3

There are some private profiles which cannot be directly accessed using the above 2 methods, for that you can use the search endpoint with the client id to get the matching results and then get the respective user details.

Condition : you need a client id (which can be created from : http://instagram.com/developer/clients/register/) & user id

call the url with user name and client id to search the user. 
'https://api.instagram.com/v1/users/search?q=USER_NAME&client_id=CLIENT_ID'