List Comment Counts
Retrieve one comment count for every live lesson on a course, lowest order first. A heading is omitted. A lesson with no questions is still a row, with comments_count 0. This response is not a page. It has no preview_url. See Comments.
Request
GET /players/{id}/files/comment-counts
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Course UUID. See Identifiers. |
Example Request
curl -X GET "https://app.easy.tools/api/v1/players/8f3c1a62-d047-4e89-9b25-1c6a4d8e0f71/files/comment-counts" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Response
Success Response (200)
{
"data": [
{
"file_id": "3a91c4e0-6b27-4f58-9d14-7e2b8c0a5f63",
"comments_count": 1
},
{
"file_id": "5d8b7e21-4c09-4a76-b312-9f0e6a1c8d43",
"comments_count": 0
}
]
}
Response Fields
Each entry in data has the fields described in Comment Count Object. comments_count counts top-level questions. There is no pagination object.
When comments are turned off, the response is { "data": [] }. The same body is returned when the live course has no lessons. A heading is not a row.
Error Responses
Not Found Error (404)
See Identifiers.
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Resource not found"
}
}
Authentication, permission, and rate-limit errors are described in Authorization.