Where is the search media by tag on new Instagram Graph API?

风格不统一 提交于 2019-11-30 07:33:28

Just announced a few days ago, the new Instagram Graph API: Hashtag Search API is now available. Here is a link to the documentation for the full API: https://developers.facebook.com/docs/instagram-api/hashtag-search.

The edge you wan to hit is {hashtag_id}/recent_media (https://developers.facebook.com/docs/instagram-api/reference/hashtag/recent-media)

There are some limitations to what it used to be, but it is the new replacement.

Limitations

  • This edge only returns public photos and videos.
  • This edge only returns media objects published within 24 hours of query execution.
  • This edge returns a maximum of 50 media objects.
  • You can query a maximum of 30 unique hashtags within a 7 day period.
  • You cannot request the username field on returned media objects.
  • Responses will not include any personally identifiable information.

As of today, photo tags and @mentions with business accounts are the only way using the new API.

At F8 this year (2018), they mentioned "Hashtag Read" endpoint being available towards the end of this year and it will be largely modeled to the "following of hashtags" as a user can currently do on the platform. 10:50 point in this video here: https://developers.facebook.com/videos/f8-2018/the-instagram-graph-api---whats-in-it-for-you/?hc_location=ufi

Unfortunately, this is the answer I received from Facebook Developer Community:

Public media hashtag search is currently not supported by the Graph API

For limited tag search you can use public web api:

https://www.instagram.com/explore/tags/{tagName}/?__a=1 for example: https://www.instagram.com/explore/tags/apple/?__a=1

This is just for recent media - I guess, this API does not guarantee all media.

However, this is not official api call. Doesn't need token or auth, so Instagram can change this API without any prior notice.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!