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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With