New Instagram API - how do you request tagged media?

This question will look like a duplicate of all the previous ones, in particular this PHP Instagram API question - how to get MIN_TAG_ID and MAX_TAG_ID . But with new API changes, previous answers no longer work.

goal

I want to request media for a specific tag.

Documentation

Instagrams documentation for receiving tagged media indicates that you need to have a public_content and that there are 4 options available; ACCESS_TOKEN , COUNT , MIN_TAG_ID and MAX_TAG_ID .

My API request

 https://api.instagram.com/v1/tags/cats/media/recent?access_token=TOKEN&max_tag_id=123 

Which gives me this API response.

 { "data": [], "meta": { "code": 200 }, "pagination": { "deprecation_warning": "next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead" } } 

Problem

As you can see from the request, I do not specify any of the obsolete parameters; next_max_id or min_id .

I tried these alternative queries with the same result:

Things I Viewed

My application statement: I have an isolated application for which I use the same account for authentication. If I understand the documentation correctly, I should have access to all the APIs with my setup.

Available media: I use the "cat" tag for testing, which should have a lot of facilities for the request.

My ACCESS_TOKEN : I don't think this is a problem because I use the same access token to make authenticated requests to the public_content for / users / user-id / media / recent endpoint.

Official python-instagram repo: I couldn’t make out how they make requests, but the last commit was in July, so I'm not even sure that it works with the latest API.

Related Quesions

+5
source share
2 answers

Reread the sandbox documentation and catch this sentence.

But instead of returning media from any public Instagram user, it will only return media that belongs to your sandbox users , limited to the last 20 for each user.

I needed to use the tag that I posted before. Leaving a question for anyone who is dealing with a problem.

+21
source

Nothing is broken, they send a message for all API calls, you can see the same result on apigee.com

0
source

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


All Articles