Instagram API does not provide more than 100 followers of the user?

I am trying to get API supporters using PHP: -

$id= "xxxxxxx";  
$access_token = "xxxxxx";
https://api.instagram.com/v1/users/$id/followed-by?access_token=$access_token&count=500

but this only returns 100 max entries . I need to get all subscribers and export them to CSV sheets.

Do I need to buy any premium plan for this or something else?

+4
source share
3 answers

Read the endpoint instagram documentation

Each response sent by Instagram is wrapped in an envelope inside which you will receive the URL of the page, which you can use to get the next set of data.

. . URL- next_url, .

followed_by json,

{
    "meta": {
        "code": 200
    },
    "data": {
        ...
    },
    "pagination": {
        "next_url": "url for next 100 responses",
        "next_max_id": "13872296"
    }
}

Response->pagination->next_url

+3

API pagination.next_url .

- csv, gramfeed csv.

, instagram, , .csv, , csv: http://www.gramfeed.com/instagram#followers

enter image description here

+3

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


All Articles