Posts
Get comments for a post
get/posts/{postId}/comments
Request
- Base URLhttps://dummyjson.com
- URLhttps://dummyjson.com/posts/{postId}/comments
- Authnone required
Path parameters
postIdinteger required
Query parameters
limitinteger
Items per page. Use 0 to return all items.
skipinteger
Number of items to skip.
selectstring
Comma-separated fields to include (id is always included).
sortBystring
Field to sort by.
order'asc' | 'desc'
Sort order.
delayinteger
Artificial response delay in milliseconds (0–5000).
Response
Post comments
Example response
{
"comments": [
{
"id": 1,
"body": "This is some awesome thinking!",
"postId": 242,
"likes": 3,
"user": {
"id": 105,
"username": "emmac",
"fullName": "Emma Wilson"
}
}
],
"limit": 30
}Changes
No recorded changes to this operation across all 1 revision of this API.