Skip to main content
GET
/
v1
/
instagram
/
shortcode_to_media_id
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/instagram/shortcode_to_media_id?shortcode=DRhvwVLAHAG' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": true,
    "shortcode": "DRhvwVLAHAG",
    "media_id": "3774507992167247878"
  },
  "requestId": "08f4e902-e360-43ac-8513-47f9d9ee9b4d"
}
πŸͺ™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

shortcode
string
required

The post's shortcode

Example:

"DRhvwVLAHAG"

Response

The response is of type object.