Comments

Get a single comment

get/comments/{id}

Request

  • Base URL
    https://dummyjson.com
  • URL
    https://dummyjson.com/comments/{id}
  • Auth
    none required

Path parameters

idinteger required

Resource id.

Query parameters

selectstring

Comma-separated fields to include (id is always included).

delayinteger

Artificial response delay in milliseconds (0–5000).

Response

Comment

idinteger
bodystring
postIdinteger
likesinteger

Example response

{
  "id": 1,
  "body": "This is some awesome thinking!",
  "postId": 242,
  "likes": 3,
  "user": {
    "id": 105,
    "username": "emmac",
    "fullName": "Emma Wilson"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.