# List user activity

List an account's posts and comments in one activity feed. Each row identifies its type in `kind`.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `username` | query | yes | string | Account name, e.g. spez. Accepts u/spez or a reddit.com /user/ or /u/ URL. 2-20 letters, digits, underscores or hyphens. An account with no activity returns an empty feed. |
| `count` | query | no | integer | How many items to return after include is applied. Posts are rarer than comments, so include=posts may return fewer than count once the feed runs out; end_of_feed says when. Default: 25. |
| `include` | query | no | enum: all, posts, comments | Which items to keep: all (default), posts or comments. Every row states its kind. posts is slowest because most items on active accounts are comments. Default: all. |
| `after` | query | no | string | next_cursor from the previous response; omit for the top of the feed. Always send the cursor as returned: it points at the last item of any kind, and a cursor built from a post id can stall. |

## Example request

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