Find out whether a user has a public or private profile on instagram using API?
api, instagram, javascript, json, php
Solution
Use the GET relationship endpoint.
https://api.instagram.com/v1/users/user-id/relationship
This endpoint returns a BOOL value "target_user_is_private".
Problem
I've done a fair bit of searching on the Instagram API docs and can't find a way to determine whether or not a user has a public or protected profile? This also has to be done without an access_token. I have a client_id to use. Just for a bit of context, I'm just building a small practice app which reads a csv of usernames in PHP and then makes a call to the API to determine whether it is public or private.