Instagram Post
Get full details for an Instagram post — caption, media and video URLs, author, location, tags, and like/comment counts — by url, media_id, or shortcode. 2 credits.
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/jsonurlstringPost URL. Provide url, media_id, or shortcode.
Example: https://www.instagram.com/p/DUajw4YkorV/
media_idstringNumeric media id.
shortcodestringPost shortcode.
Example: DUajw4YkorV
Notes
Credits. Typically 2 credits. 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.
Media. The post is items[0]. A playable video is in video_versions[].url; the cover image in image_versions2.candidates. Carousels (media_type 8) list each slide under carousel_media.
Counts. like_count and comment_count sit on the item; metrics repeats them with repost and play counts where Instagram exposes them.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.instagram.post(shortcode="DUajw4YkorV")
print(results)Response