# List Instagram user posts

Lists media from a public Instagram account. Provide `username_or_url` or `user_id`. `count` sets the page size; pass the previous response's `next_max_id` as `cursor` to get the next page.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `username_or_url` | query | no | string | Instagram username (without @) or full profile URL, for example natgeo or https://www.instagram.com/natgeo/. |
| `user_id` | query | no | string | Numeric Instagram user ID. Use instead of username_or_url to skip the username lookup. |
| `cursor` | query | no | string | Pass the previous response's next_max_id value to get the next page. Omit for the first page. |
| `count` | query | no | integer |  Default: 12. |

## Example request

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