i trying bunch of posts specific tag, not able results after first request. pagination object on first request:
{"pagination": {"next_min_id":"aqdp4xvaptqiiqauwx1b2y0trzhasq4prdmocbiupn_2zw4nbo5we0f5g3wmmlixwaucgji0r4blkjoniwzky51qduvervsyu6qhju0yprofag", "deprecation_warning":"next_max_id , min_id deprecated endpoint; use min_tag_id , max_tag_id instead", "min_tag_id":"aqdp4xvaptqiiqauwx1b2y0trzhasq4prdmocbiupn_2zw4nbo5we0f5g3wmmlixwaucgji0r4blkjoniwzky51qduvervsyu6qhju0yprofag"}
so add min_tag_id
next request. returns 200 response code, empty data array. tried popular tag (the above results /tags/cats/media/recent
). same response each time; handful of results on first request, empty array when using returned min_tag_id
.
update
just tried love tag, , returns 0 results me? (200 response code)
https://api.instagram.com/v1/tags/love/media/recent/?access_token=your_token
the response #love
{"pagination": {"deprecation_warning": "next_max_id , min_id deprecated endpoint; use min_tag_id , max_tag_id instead"}, "meta": {"code": 200}, "data": []}
i'm guessing not in sandbox mode? (in sandbox mode can 20 posts in api response)
for pagination, add &max_tag_id={{next_max_tag_id value}}
in api url param, next 20 posts.
better way use next_url
make api call, has correct pagination param added api endpoint.
Comments
Post a Comment