Comments

Get all comments

get/comments

Request

  • Base URL
    https://dummyjson.com
  • URL
    https://dummyjson.com/comments
  • Auth
    none 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

Paginated comments

totalinteger
skipinteger
limitinteger

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.