toolzerhub API Docs

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
GET
/v3/instagram/util/media-id

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/.

Length1 <= length
curl -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  }}