Search code examples
instagraminstagram-api

Instagram API returns empty array


Calling these endpoints

https://api.instagram.com/v1/users/self/follows https://api.instagram.com/v1/users/self/followed-by

with perfectly valid access-token, and access scope of follower_list relationships

returns 200 OK, and data as empty array []


Solution

  • In Sandbox mode, it will only return users that are in your approved sandbox user list.

    Add one of the user you follow to the sandbox and it will show up in the API response.