# List Instagram hashtag media

Returns media for a public Instagram `hashtag`, from the `recent` or `top` tab. Pass `max_id` from `next_max_id` for the next page, or `next_page` for the `top` tab.

- Platform: Instagram V2
- Request: `GET https://api.toolzerhub.com/v2/instagram/hashtag/media`
- Auth: `x-api-key` header
- Cost: 2 credits per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/instagram-v2/hashtag/get-hashtag-media-v2

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `hashtag` | query | yes | string | Hashtag to look up, without the # prefix. |
| `tab` | query | no | enum: recent, top | Feed to read: recent for newest media, top for Instagram's ranked feed. Default: recent. |
| `max_id` | query | no | string | Pass the previous response's next_max_id value. |
| `next_page` | query | no | string | Only used with the top tab. Pass the previous response's next_page value. |

## Example request

```bash
curl "https://api.toolzerhub.com/v2/instagram/hashtag/media?hashtag=<hashtag>" \
  -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.
