Comments
Search and retrieve scraped Reddit comments.
GET
/api/v1/workspaces/{workspace_id}/commentsList Comments
List comments with optional filtering by post, author, or search query.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| workspace_id | uuid | Required | Workspace ID |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| post_id | string | Optional | Filter by post ID |
| author | string | Optional | Filter by author username |
| min_score | integer | Optional | Minimum comment score |
| q | string | Optional | Full-text search query |
| limit | integer | Default: 50 | Max results (1-200) |
| offset | integer | Default: 0 | Offset for pagination |
Code Examples
bash
curl "https://api.sentrasa.com/api/v1/workspaces/{workspace_id}/comments?post_id=t3_abc123&limit=20" \
-H "X-API-Key: rp_your_api_key"Response
200Paginated comment listjson
{
"comments": [
{
"id": 1,
"comment_id": "t1_xyz789",
"post_id": "t3_abc123",
"post_permalink": "/r/technology/comments/abc123/...",
"parent_id": "t3_abc123",
"author": "commenter42",
"body": "This is a great finding!",
"score": 89,
"created_utc": "2026-03-20T11:00:00Z",
"depth": 0,
"is_submitter": false,
"sentiment_score": 0.75,
"sentiment_label": "positive",
"scraped_at": "2026-03-20T14:00:00Z"
}
],
"total": 1,
"has_more": false
}