Instagram API: I want to get the latest images based on the tag, but I only get my own

I want to use the Instagram API to retrieve the latest images based on a specific tag.

When i use:

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

I only get images that my user created with this tag. I want to get all tagged images, not just my own. Is this supposed to be done?

When I try:

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

Then it works, and I get statistics not only from my own images.
Any help would be awesome!

+3
source share
1 answer

You are in Sandbox mode, so it will only return media from your authorized user, here is information about this:

As another example, consider an endpoint that returns a list of media: / tags / {tag-name} / media / recent. The response returned by this endpoint will only contain media with the specified tag, as expected. But instead of returning media from any public Instagram user, this will only return media belonging to your sandbox users, the last 20 for each user.

Here is a link to more information about Sandbox mode: https://www.instagram.com/developer/sandbox/

Once your application is approved, you will see all the media.

+2
source

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


All Articles