Skip to main content

Get Info by shortcode

Retrieve media information by media shortcode. This method provides the same information as the Get Info.

Params​

NameTypeDefaultDescription
shortcode (required)string–Media shortcode

Usage​

from rocketapi import InstagramAPI


instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_media_info_by_shortcode("Cm9DyYNooPD"))

Response example​

Loading...