Instagram User Posts
List an Instagram user's posts by username or user_id — shortcode, caption, media URLs, and like/comment/play counts — about 12 per page, as JSON. 2 credits per page.
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.
countnumberAccepted for compatibility; a page holds about 12 posts.
cursorstringThe data.pagination_token from the previous page.
Notes
Credits. Typically 2 credits per page. 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.
Shape. Posts are in data.data.items; each carries code (the shortcode), caption.text, like_count, comment_count, taken_at, image_versions.items, and for videos video_url, video_versions and play_count.
Paging. About 12 posts per page. For the next page, pass data.pagination_token as cursor; it is null on the last page.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.instagram.user_posts(username="nike")
print(results)Response