Convert Instagram shortcode to media ID
Converts the shortcode in a post URL (the DcBr7X4SL3h in instagram.com/p/DcBr7X4SL3h/) into the numeric media ID that /post/by-id takes.
3 credits / requestBilled only on success
Authorization
ApiKeyAuth x-api-key<token>
In: header
Query Parameters
shortcode*string
Shortcode from the post URL, such as DcBr7X4SL3h in instagram.com/p/DcBr7X4SL3h/.
Length
1 <= lengthcurl -X GET "https://example.com/v3/instagram/util/media-id?shortcode=DcBr7X4SL3h" \ -H "x-api-key: YOUR_API_KEY"{ "data": { "shortcode": "string", "media_id": "string", "property1": null, "property2": null }}