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.
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.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.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
media_id | string | Yes | 帖子Media ID/Post media ID | — |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
/agent-api/v1/tool/executeX-Api-Keycurl --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.

