Social Media
Instagram Followings
List the accounts an Instagram user follows by username or user_id, with pagination, as JSON.
POST/api/v1/instagram/user/followings
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonusernamestringInstagram username. Provide this or user_id.
Example: nasa
user_idstringNumeric user id. Provide this or username.
countnumberNumber of results per page.
cursorstringPagination cursor from a previous response.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.instagram.user_followings(username="nasa")
print(results)Response
"big_list": true,
"page_size": 5,
"next_max_id": "5",
"has_more": true,
"should_limit_list_of_followers": false,
"use_clickable_see_more": false,
"follow_ranking_token": "6753a37c458945efa59f58a4aef9e8d1|17476771307|osr",
"status": "ok"
},
"response_time": 1299,
"credits_used": 2,
"credits_remaining": 4716
}