Skip to main content

Get Following

Retrieve user following by user id.

Params

NameTypeDefaultDescription
id (required)intUser id
countint12Number of users to return (max: 200)
max_idstringNoneUse for pagination
querystringNoneSearch query

You can use the max_id parameter to paginate through following (take from the next_max_id field of the response).

Note: if query is specified, count and max_id is ignored.

Usage

from rocketapi import InstagramAPI


instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_user_following(12281817, count=12))

Response example

Loading...