---
title: "Service: /members/{member}/discussions/forurl [GET]"
source: https://dev.pageseeder.com/api/services/list-url-discussions_get.html
description: "Retrieves a list of discussions for a specified URL, with options to filter by comment status, archive state, and group visibility. Requires user authentication and access permissions."
last_updated: 2026-09-08T11:47:44+10:00
document_type: api_endpoint
operation_id: comment-GET
resource_id: comment
path_template: /members/{member}/discussions/forurl
http_method: GET
api_category: comment
implementation_version: 6.2005
api_since: 5.2101
deprecated_since: null
obsolete_since: null
api_support: supported
cache_control: null
generated_at: 2026-09-02
tokens: ~657
---

# /members/\{member\}/discussions/forurl \[GET\]

## Description

Load a list of [discussions](../../reference/glossary/comment.md) for a URL.

## Parameters

| Name | Description | Required | Type | Default |
| --- | --- | --- | --- | --- |
| url |  The URL for the URI with optional `#fragment` | yes | url |  |
| attachedto | The comments to return that are attached to this URI | no | enum | `all` |
| comments | Which comments to include | no | enum | `all`  |
| archived | If `true`, include discussions where all comments are archived | no | boolean | `false` |
| results | The number of results to return | no | long | `1000` |
| returngroups | The groups to return in the output | no | enum | `none` |

### Comments parameter

The comment display must be one of:

- `all` – all comments in the discussion
- `archive` – all comments including archived comments
- `first` – only the first comment
- `last` – only the last comment
- `none` – no comments

### Returngroups parameter

Must be one of:

- `none` – do not include the group
- `user` – only include the group that the use belongs to
- `all` (Only administrators can use this option)

### Attachedto parameter

Must be one of:

- `none`
- `all`

## Permission

This service can only be invoked by the own user or an administrator.

The other restriction is that the `url` parameter can only list discussions with public access or the current user is a guest or higher.

## Response

The output has the following format:

```xml

<uri id="23"
     type="..."
     scheme="..."
     host="..."
     port="..."
     path="..."
     decodedpath="..."
     mediatype="...">
  <displaytitle> ... </displaytitle>
  <labels> ... </labels>
  <locator fragment="12">
    <discussion id="123"
                title="My thread"
                replycount="3"
                lastcommentid="234"
                lastcommentdate="2012-08-20T14:27:48+10:00">
      <comment id="234"
               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>
      </comment>
    </discussion>
    <discussion id="100"> ... </discussion>
    <attachedto>
      <comment ... > ... </comment>
    </attachedto>
    ...
  </locator>
  ...
</uri>
```

## Error Handling

| Code | Cause / Description |
| --- | --- |
| 0x6303 | Both URI and URL have been specified |
| 0x6304 | The URL is invalid |

