Get Followers
Retrieve user followers by user id.
Params
Name | Type | Default | Description |
---|---|---|---|
id (required) | int | – | User id |
count | int | 12 | Number of users to return (max: 50) |
max_id | string | None | Use for pagination |
query | string | None | Search query |
You can use the max_id
parameter to paginate through followers (take from the next_max_id
field of the response).
Note: if query
is specified, count
and max_id
is ignored.
Usage
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_user_followers(12281817, count=12))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->getUserFollowers(12281817, 12));
curl --request POST \
--url https://v1.rocketapi.io/instagram/user/get_followers \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"id": 12281817,
"count": 12
}'
Response example
Loading...