Instagram Media ID To Shortcode

2.07 credits/call
ae_instagram_media_id_to_shortcode

## Purpose Convert an Instagram post media ID to its shortcode. The shortcode can be used to construct a post URL in the form `instagram.com/p/{shortcode}/`. ## Input - `media_id` (string, required): The Instagram post's media ID. ## Response A JSON response includes `code` (response status code), `data` (the conversion result; its detailed structure is not specified and it may be null), and `message` (response message). Additional response metadata may also be present. A successful conversion provides the shortcode in the result data.

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.07 credits/call

A fixed fee of 2.07 credits applies to each call. Charges are per query. A successful query is billed even if it returns no results.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
media_idstringYes帖子Media ID/Post media ID—

Invocation example

Parameter template

Generated from the parameter configuration. Replace the sample values before use.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_instagram_media_id_to_shortcode' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "media_id": "xxx"
  }
}'

No response example available yet.