0

I am only able to see my own post,I am currently doing this

https://api.instagram.com/v1/tags/blueskies/media/recent?access_token=##########

How can I get public media posted by other user with hashtag #blueskies

rUCHit31
  • 334
  • 1
  • 3
  • 15

1 Answers1

0

You have to use the new Instagram Graph API to get hashtag public content: https://developers.facebook.com/docs/instagram-api

(The API you are using will be deprecated soon and will not work.)

Using Instagram Graph API, its a 2 step approcah, you have to first get hashtag_id using the hashtag_search API https://developers.facebook.com/docs/instagram-api/hashtag-search

graph.facebook.com/ig_hashtag_search?user_id={USER_ID}&q=blueskies

This will give hashtag_id and then you can get recent or top hashtag media using the hashtag API https://developers.facebook.com/docs/instagram-api/reference/hashtag/

graph.facebook.com/{HASHTAG_ID}/recent_media?user_id={USER_ID}&fields=id,media_type,comments_count,like_count
krisrak
  • 12,882
  • 3
  • 32
  • 46