curl --location --request POST 'https://api.userorbit.com/v1/public/topic-comments.count' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "topic-uuid-123"
}'
const response = await fetch('https://api.userorbit.com/v1/public/topic-comments.count', {
method: 'POST',
headers: {
'Authorization': `Bearer ${subscriberToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: topicId })
});
const { data: count } = await response.json();
{
"data": 23,
"pagination": {
"offset": 0,
"limit": 50
}
}
Comments
Get Topic Comment Count
Get the total number of comments on a topic. Requires subscriber authentication.
POST
/
v1
/
public
/
topic-comments.count
curl --location --request POST 'https://api.userorbit.com/v1/public/topic-comments.count' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "topic-uuid-123"
}'
const response = await fetch('https://api.userorbit.com/v1/public/topic-comments.count', {
method: 'POST',
headers: {
'Authorization': `Bearer ${subscriberToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: topicId })
});
const { data: count } = await response.json();
{
"data": 23,
"pagination": {
"offset": 0,
"limit": 50
}
}
Authentication
Authorization: Bearer SUBSCRIBER_JWT_TOKEN
Request Body
string
required
Topic ID (UUID)
Response
number
Total comment count
object
Pagination metadata
curl --location --request POST 'https://api.userorbit.com/v1/public/topic-comments.count' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "topic-uuid-123"
}'
const response = await fetch('https://api.userorbit.com/v1/public/topic-comments.count', {
method: 'POST',
headers: {
'Authorization': `Bearer ${subscriberToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: topicId })
});
const { data: count } = await response.json();
{
"data": 23,
"pagination": {
"offset": 0,
"limit": 50
}
}
Notes
- Requires subscriber authentication
- Count includes top-level comments only
Was this page helpful?

