Instagram Profile
Get an Instagram user's profile — full name, bio, follower/following/media counts, verification, category and user_id — by username or user_id. 1 credit.
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 (without @). Provide this or user_id.
Example: nike
user_idstringNumeric user id. Provide this or username.
Notes
Credits. Typically 1 credit. A request can cost up to 10 credits when it needs extra work to answer; credits_used in the response is always the exact charge.
Fields. follower_count, following_count and media_count are plain numbers; the same counts also appear under edge_followed_by.count, edge_follow.count and edge_owner_to_timeline_media.count. id is the user_id every other Instagram endpoint accepts.
Unknown accounts. A username that does not exist returns a 200 with a not-found body and is still billed.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.instagram.profile(username="nike")
print(results)Response