Skip to main content

Get id by shortcode

Get media id by media shortcode. This endpoint is provided free of charge.

Params

NameTypeDefaultDescription
shortcode (required)stringMedia shortcode

Usage

from rocketapi import InstagramAPI


instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_media_id_by_shortcode("Ckv3mrWq7W"))

Response example

Loading...