Social Media
Instagram Profile
Get an Instagram user's profile — full name, bio, follower/following/media counts, verification, and user_id — by username or user_id. Costs 2 credits.
POST/api/v1/instagram/profile
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: nasa
user_idstringNumeric user id. Provide this or username.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.instagram.profile(username="nasa")
print(results)Response
"pk": "528817151",
"id": "528817151",
"username": "nasa",
"full_name": "NASA",
"follower_count": 104386104,
"following_count": 91,
"media_count": 4834,
"is_private": false,
"is_verified": true,
"biography": "Making the seemingly impossible, possible. ✨",
"external_url": "https://www.nasa.gov",
"category": "",
"_backend": "igrapi"
},
"response_time": 6864,
"credits_used": 2,
"credits_remaining": 4738
}