Skip to content

Get project discussion comment reply list

GET /api/v5/repos/*/*/discuss/*/comment/*/reply

This endpoint gets the comment reply list of a project discussion in the specified repository. It returns data such as the reply content, author information, and like count, and supports paginated queries.

Access token support

  • AtomGit user access token (AtomGit user access tokens)

Anonymous access

This endpoint allows anonymous access

Request parameters

Parameter Location Type Required Description
owner path string Yes Namespace path of the repository (the path of an enterprise, organization, or personal address)
repo path string Yes Repository path (path)
number path string Yes Discussion number
comment_id path string Yes Comment ID
page query string No Current page number
per_page query string No Number of items per page, maximum 100, default 20

Response parameters

Field Type Always returned Nullable Description
id string Yes No Reply ID
created_at string Yes No Creation time
author object Yes No Reply author information
content string Yes No Reply content
md_content string Yes No Markdown format of the reply content
is_hide integer Yes No Whether hidden
reply_total integer Yes No Reply total
like_total integer Yes No Like total
is_like boolean Yes No Whether the current user has liked
is_deleted integer Yes No Whether deleted
is_remark integer Yes No Whether flagged/marked

author object

Field Type Always returned Nullable Description
author.avatar_url string Yes No Author avatar URL
author.id string Yes No Author user ID
author.object_id string Yes No Author object ID
author.login string Yes No Author login name
author.name string Yes No Author name

Error response

This endpoint has no business-level error response.

HTTP response status codes

Status code Description
200 Success (OK)
401 Authentication required (Requires authentication)
404 Request path not found (Not found)

Request example

Parameter description

replace <owner> with the namespace path of the repository (the path of an enterprise, organization, or personal address); replace <repo> with the repository path (path); replace <number> with the discussion number; replace <comment_id> with the comment ID.

Note: This endpoint allows anonymous access, and you may also send a user access token (for example by appending ?access_token=<token> to the request URL).

cURL

curl -X GET 'https://api.atomgit.com/api/v5/repos/<owner>/<repo>/discuss/<number>/comment/<comment_id>/reply?page=1&per_page=20' \
  -H 'Accept: application/json'

JavaScript

// Native fetch (Node.js 18+ / browser)
const response = await fetch(
  "https://api.atomgit.com/api/v5/repos/<owner>/<repo>/discuss/<number>/comment/<comment_id>/reply?page=1&per_page=20",
  {
    headers: {
      "Accept": "application/json",
    },
  }
);

if (!response.ok) {
  throw new Error(`Request failed: ${response.status}`);
}

const data = await response.json();
console.log(data);

Python

import requests

resp = requests.get(
    "https://api.atomgit.com/api/v5/repos/<owner>/<repo>/discuss/<number>/comment/<comment_id>/reply",
    params={"page": 1, "per_page": 20},
    headers={"Accept": "application/json"},
    timeout=10,
)
resp.raise_for_status()

print(resp.json())

Response example

Status code: 200

[
  {
    "id": "string",
    "created_at": "string",
    "author": {
      "avatar_url": "string",
      "id": "string",
      "object_id": "string",
      "login": "string",
      "name": "string"
    },
    "content": "string",
    "md_content": "string",
    "is_hide": 0,
    "reply_total": 0,
    "like_total": 0,
    "is_like": true,
    "is_deleted": 0,
    "is_remark": 0
  }
]

Error codes

Error code Description
401 Unauthenticated or invalid credentials (missing/invalid access credentials)
400 Parameter error or unparsable request
404 Request path does not exist
405 Method not supported
429 Too many requests; rate limit triggered
500 Internal server error

Markdown source: View on AtomGit·Content from the open-source project gitcode-dev/atomgit-api-doc