// Replace API_KEY with your api key
curl --location 'https://api.supahub.com/api/v1/comments?limit=10&page=1' \
--header 'Authorization: Bearer API_KEY'
GET
method
/comments
path

Query Parameters

Below are the query parameters available for customizing the response:
postId
string
required
The unique identifier of the post whose comments are fetched.
parentCommentId
string | undefined
The ID of the parent comment if fetching replies.
sortBy
oldest | newest
default:"oldest"
Order comments chronologically. Options: oldest, newest.
isMerged
boolean | undefined
Filter comments by merged state.
limit
1-100
default:"10"
The number of comments to return per request (1-100).
page
1-n
default:"1"
The page number of the comments list (starting from 1).
// Replace API_KEY with your api key
curl --location 'https://api.supahub.com/api/v1/comments?limit=10&page=1' \
--header 'Authorization: Bearer API_KEY'