curl --request GET \
--url 'https://api.keyapi.ai/v1/instagram/media_id_to_shortcode?media_id=3774507992167247878' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"status": true,
"media_id": "3774507992167247878",
"shortcode": "DRhvwVLAHAG"
},
"requestId": "62bcba45-95f5-4c18-a87c-d2428a2cb585"
}Convert the media ID of an Instagram post to a shortcode. The shortcode is used to construct the post URL: instagram.com/p//
curl --request GET \
--url 'https://api.keyapi.ai/v1/instagram/media_id_to_shortcode?media_id=3774507992167247878' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"status": true,
"media_id": "3774507992167247878",
"shortcode": "DRhvwVLAHAG"
},
"requestId": "62bcba45-95f5-4c18-a87c-d2428a2cb585"
}π€ Why Code When AI Can Do It For You?
Stop writing code like itβs 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.