Skip to main content
GET
/
v1
/
instagram
/
media_id_to_shortcode
cURL
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"
}
πŸͺ™2 creditsper request

Copy for AI

πŸ€– 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.

Authorizations

Authorization
string
header
required

API key for authentication. Format: sk_live_xxxxxxxxxxxxx Get your API key from the Dashboard.

Query Parameters

media_id
string
required

The post's media ID

Example:

"3774507992167247878"

Response

The response is of type object.