# List community posts

List posts in a community. A page can be empty while `has_more` is `true`, so keep paging with `cursor` until it is `false`. An unknown community ID returns `data: null`.

- Platform: X (Twitter)
- Request: `GET https://api.toolzerhub.com/v1/x/community/posts`
- Auth: `x-api-key` header
- Cost: 5 credits per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/x-twitter/community/list-x-community-posts

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `community_id` | query | yes | string | Numeric community ID from the community's x.com/i/communities URL. |
| `cursor` | query | no | string | cursor from the previous response. Omit for the first page and send it unchanged for later pages. |

## Example request

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