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)stringMedia 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...