# Get Instagram post view counts

Returns view counts for a public Instagram reel from its shortcode or URL. `video_view_count` is the embed view count. `play_count` is the plays shown on the owner's Reels tab, found only among their 36 newest reels. They are different metrics.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `code` | query | yes | string | Post or reel shortcode (the path segment after /p/ or /reel/), or the full post URL. |

## Example request

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