Social Media
Instagram User Posts
List an Instagram user's posts by username or user_id — shortcode, caption, media, and like/comment counts — with pagination, as JSON.
POST/api/v1/instagram/user/posts
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_posts(username="nasa")
print(results)Response
"count": 5,
"next_max_id": "3931136273896820013_44057602488",
"_backend": "igrapi"
},
"response_time": 10349,
"credits_used": 2,
"credits_remaining": 4736
}