Check if Instagram account is public or private

I addressed this specific question: Find out if a user has a public or private profile on instagram using the API? but I do not see the return bool value target_user_is_privateas indicated in the above question. I also see no other way to verify; none of the endpoints at https://www.instagram.com/developer/endpoints/relationships/ seem to tell me whether the account is private or not. Is there any way to check?

+4
source share
1 answer

This endpoint returns target_user_is_private

  https://api.instagram.com/v1/users/{user-id}/relationship?access_token=ACCESS-TOKEN

, , sandbox .

, , API {user-id}, target_user_is_private

+3

Source: https://habr.com/ru/post/1649834/


All Articles