# Get Instagram post

Returns public media details and the first page of comments for one Instagram post. Provide the shortcode as `code` or the numeric `media_id`; one of the two is required.

- Platform: Instagram
- Request: `GET https://api.toolzerhub.com/v1/instagram/post`
- 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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `code` | query | no | string | Post shortcode: the path segment after /p/ or /reel/ in the post URL. Required unless media_id is set. |
| `media_id` | query | no | string | Numeric media ID. Required unless code is set. |

## Example request

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