# Convert Instagram media ID to shortcode

Converts a numeric media ID back into the shortcode used in post URLs, so you can rebuild a link to a post you only have an ID for.

- Platform: Instagram V3
- Request: `GET https://api.toolzerhub.com/v3/instagram/util/shortcode`
- Auth: `x-api-key` header
- Cost: 3 credits per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/instagram-v3/utility/get-instagram-shortcode-v3

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `media_id` | query | yes | string | Numeric media ID of a post, reel or TV item. |

## Example request

```bash
curl "https://api.toolzerhub.com/v3/instagram/util/shortcode?media_id=<media_id>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
