Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instagram sandboxed app request with public_content scope returns empty result

I'm trying to pull media with certain tag. I've authorized and gotten back token with scope 'basic' and 'public_content'. However the following request gets back with status code 200 but empty data even though eg. tag 'london' has lot of content.

https://api.instagram.com/v1/tags/london?access_token= [MY TOKEN]

Is this request malformed or is the Instagram API misbehaving?

like image 505
Yogi Avatar asked Nov 18 '15 09:11

Yogi


Video Answer


1 Answers

In sandbox-mode, Instagram only returns the data associated with the sandbox users.

It's written down in the docs, section API behaviour:

Data is restricted to sandbox users and the 20 most recent media from each sandbox user.

[...]

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

If you create a "london" tag with your sandbox user, you should see it. Once your app has switched to live, you should see all public available "london" tags.

Your request is NOT malformed and the API behaves as described in the documentation.

like image 110
svenson Avatar answered Oct 20 '22 11:10

svenson