API Instagram - Search for public photos by TAG

Asked

Viewed 1,025 times

-1

I want to get all photos with a specific HASHTAG, but when using the following URL offered by the Instagram API...

*

https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN

*

...simply it returns my profile photos with HASHTAG, as I started studying this API yesterday, I believe it is the ACCES_TOKEN that is doing this, since there is a link to my account, just suspicious, like to know the best way to capture all public photos with the specific Hashtag, someone could help me?

...I’ve been reading that the API had some changes allowing only access to photos without being from the FEED, but I found a desktop application that does everything a little, the name of is 4K Stogram, how is this possible? In case I want to do the same thing...

https://www.4kdownload.com/products/product-stogram

1 answer

1

The endpoint that you’re looking for is this:

https://api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN

Take a look at official Instagram API documentation.

  • I used a specific hashtag and it only returned 12 results from my own profile, in case I wanted public results with that hashtag... I did a test with a non-existent tag in my profile and returns it: {"pagination": {"deprecation_warning": "next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id Instead"}, "meta": {"code": 200}, "data": []}

  • Are you doing research in the sandbox or outside it?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.