---
updatedAt: 2025-11-10T18:13:53.000Z
agentTools:
  projectIndex: https://developer.answerhub.com/llms.txt
---

# Retrieve a List of Comments Posted to a Node

You can use this request to search for and return a paged list of comments posted to a specific node.

## /services/v2/node/\[nodeId]/comment.json

You can use the following parameters in your *retrieve a node's comments list* request:

**Paging and Sorting**: page, pageSize, sort\
**Search**: q, type, lang\
**Projection**: include, exclude, includeOnly\
**Other options**: wrap, v1

> 🚧 Permissions & Notes:
>
> * You must have the **View the question page** and **View answers in the question page\&#xA;** permissions under **Anonymous Roles** in the Advanced Editor.
>
> * With the *includeOnly* parameter set to *id* and *name* (/services/v2/node/\[nodeID]/comment.json?includeOnly=id,name) to the AnswerHub REST API.
>
> * We added this request in version 1.6.3.

## Sample Request

The Example below is retrieving a list of comments for a question node.\
RETRIEVE QUESTION NODE ID: Make a GET request called Retrieve Questions List FIRST. Then add that nodeId to your request to retrieve a list of comments posted.

A **GET** *retrieve a list of comments posted to a node* request to retrieve a list of comments for a node (nodeId: 861 - In this case it is the question node) sent to <https://apidocs.cloud.answerhub.com> using a human-readable Username/Password (answerhub/test123) would look like this:

```curl
curl 
-u answerhub:test123 
-H "Accept: application/json" 
-H "Content-type: application/json" 
-X GET "https://apidocs.cloud.answerhub.com/services/v2/node/861/comment.json"
```

## Sample Response

```json Sample Formatted JSON Response
{
    "name": "",
    "sort": "active",
    "page": 1,
    "pageSize": 15,
    "pageCount": 1,
    "listCount": 1,
    "totalCount": 1,
    "sorts": [
        "active",
        "newest",
        "hottest",
        "votes",
        "viewCount",
        "usedCount",
        "answerCount",
        "answerCountAsc",
        "commentCount",
        "favoriteCount",
        "followers",
        "reportCount"
    ],
    "list": [
        {
            "id": 905,
            "type": "comment",
            "creationDate": 1551454306000,
            "creationDateFormatted": "03/01/2019 03:31 PM",
            "body": "<div class=\"fr-view clearfix\"><p>this is a test comment on the post</p></div>",
            "bodyAsHTML": "<div class=\"fr-view clearfix\"><p>this is a test comment on the post</p></div>",
            "author": {
                "id": 112,
                "username": "ricks",
                "reputation": 1
            },
            "lastEditedAction": 1285,
            "activeRevisionId": 908,
            "revisionIds": [
                908
            ],
            "lastActiveUserId": 112,
            "lastActiveDate": 1551454306000,
            "originalParentId": 861,
            "attachments": [],
            "childrenIds": [],
            "commentIds": [],
            "marked": false,
            "topics": [],
            "containerIds": [],
            "wiki": false,
            "score": 0,
            "depth": 0,
            "viewCount": 0,
            "upVoteCount": 0,
            "downVoteCount": 0,
            "nodeStates": []
        }
    ]
}
```

## Community User Interface Results

[You Should Get Back One Comment From RickS Attached to Demo3's Question](https://apidocs.cloud.answerhub.com/questions/861/as-an-admin-how-do-i-better-organize-the-spaces.html)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "2.30.0"
  },
  "servers": [
    {
      "url": "https://apidocs.cloud.answerhub.com/services/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/{node}/{node_id}/{comment}.json": {
      "get": {
        "summary": "Retrieve a List of Comments Posted to a Node",
        "description": "You can use this request to search for and return a paged list of comments posted to a specific node.",
        "operationId": "show-comments-posted-to-a-node",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 861
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Accept",
        "value": "application/json"
      },
      {
        "key": "Content-type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```