# Get Instagram post by media ID

Returns public media details and the first page of comments for one Instagram post. Requires the numeric `media_id`.

- Platform: Instagram
- Request: `GET https://api.toolzerhub.com/v1/instagram/post/by-id`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/instagram/post/get-post-by-id

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `media_id` | query | yes | string | Instagram numeric media ID. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/instagram/post/by-id?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.
