How to count the number of Instagram users who like a user?

I am currently using a method /users/self/media/liked, getting a response, reading next_max_like_idand querying data again and again. I tried to convey a huge value count, but it seems that the maximum value of the account is simple 30. I need to track changes in the number of multimedia users. Is there any way to optimize it? I do not understand what it means next_max_like_id? Is there a way to save this and use it next time somehow?

+4
source share
2 answers

The request limit for users/self/media/likesis 33 (default is 20). next_urlreturned in the pagination section will capture the chronologically previous favorite elements using the same count(if you put it) and next_max_like_idwhich is the identifier of the last returned result.

If, as a result of changing a track, you want to keep the current table, as far as I know, you cannot access the total number of items you like through the endpoint. You need to write a script that resets the story using the paganin information to go back until you see that you hit the original, for example by catching a duplicate next_max_like_id(side of note: the returned data includes only messages that the user still has access to )

, cron , 5000 API . last_id_liked .

, , , , ... API .

+5

next_max_like_id . . API- Instagram , .

0

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


All Articles