A. Innokentiev
A. Innokentiev

Reputation: 721

Why Instagram API return empty result?

1) I'm in Sandbox mode

2) App have a Server-side (Explicit) Flow

3) "Disable implicit OAuth" checkbox active in Manage Clients

4) I have authorized my sandbox user - Instagram API returns data with access_token and user

When i try to retrive some data from Relationship Endpoints Instagram API returns an empty data as this:

{"pagination":{},"meta":{"code":200},"data":[]}

Code:

ACCESS_TOKEN = xxxxx
url = 'https://api.instagram.com/v1/users/self/follows?access_token=%s' % ACCESS_TOKEN
response = requests.get(url)
data = response.text

When i open url in browser - same situation

What's wrong?

Upvotes: 4

Views: 3636

Answers (1)

krisrak
krisrak

Reputation: 12952

Only sandbox authorized users will be returned in API response, if u add a user that follows to sandbox users, then that user will be returned in API response, it is limitation of sandbox mode:

https://www.instagram.com/developer/sandbox/

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

Upvotes: 6

Related Questions