---
title: "Service: /comments/{commentid} [GET]"
source: https://dev.pageseeder.com/api/services/get-comment-public-GET.html
description: "Load a public comment"
last_updated: 2026-08-07T17:09:54+10:00
document_type: api_endpoint
operation_id: comment-GET
resource_id: comment
path_template: /comments/{commentid}
http_method: GET
api_category: comment
implementation_version: null
api_since: null
deprecated_since: null
obsolete_since: null
api_support: supported
cache_control: null
generated_at: 2026-08-07
tokens: ~230
---

# /comments/\{commentid\} \[GET\]

## Description

Returns a single [comment](../../reference/glossary/comment.md) from accessible groups.

## Parameters

No parameters required.

## Permission

This service is public, anyone can invoke it since the comment is in a public group.

## Response

The XML output is a single `<comment>` element.

```lang-xml

<comment id="123"
         discussionid="456" 
         contentrole="File Attachment"
         created="2012-03-08T12:34:00+10:00">
  <title>My thread</title>
  <content type="text/plain">Some text</content>
  <attachment>
    <uri id="189"> ... </uri>
  </attachment>
  <attachment  fragment="5">
    <uri id="289"> ... </uri>
  </attachment>
  <context fragment="2">
    <uri|group  id="789"> ... </uri|group>
  </context>
  [<group .../>...]
</comment>
```

## Error Handling

| Code | Cause / Description |
| --- | --- |
| 0x1317 | the comment was not found |

