Search code examples
instagraminstagram-api

How to get users tagged in a photo from Instagram API?


How can I get public content of all the users tagged in a specific picture, is it possible.


Solution

  • Use this API to get media:

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

    or

    https://api.instagram.com/v1/media/shortcode/{short-code}?access_token=ACCESS-TOKEN
    

    the JSON response will have users_in_photo which will have all the users tagged in the photo

    https://www.instagram.com/developer/endpoints/media/