GET/repos/{owner}/{repo}/issues/{issue_number}/comments

List comments on an issue

Lists comments on an issue or pull request in a repository, ordered by ascending comment ID. Use since to filter by update time and page with per_page to paginate results; the response can include raw Markdown, plain text, or rendered HTML according to the requested media type.

6 parameters
ownerstringrequired
The account that owns the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
issue_numberintegerrequired
The number that identifies the issue whose comments you want to list.
sincestringoptional
Return comments updated after this ISO 8601 date-time, in `YYYY-MM-DDTHH:MM:SSZ` format.
per_pageintegeroptional
Number of comments to return per page, up to 100. Defaults to 30 when omitted.
Default:30
pageintegeroptional
Page number of the results to retrieve. Defaults to 1 when omitted.
Default:1

3 status codes
200Returns an array of issue comment objects ordered by ascending ID. Comment body fields depend on the requested media type.
idintegerrequired
Unique identifier of the issue comment
node_idstringrequired
urlstringrequired
URL for the issue comment
bodystringoptional
Contents of the issue comment
body_textstringoptional
body_htmlstringoptional
html_urlstringrequired
userobjectrequired
A GitHub user.
created_atstringrequired
updated_atstringrequired
issue_urlstringrequired
author_associationstringoptional
How the author is associated with the repository.
Allowed:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
performed_via_github_appobjectoptional
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
reactionsobjectoptional
pinobjectoptional
Context around who pinned an issue comment and when it was pinned.
minimizedobjectoptional
Details about why an issue comment was minimized.
404Returned when the repository or issue cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
410Returned when the requested resource is no longer available.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the repository or issue cannot be found; a 410 indicates the requested resource is no longer available. Supply since as an ISO 8601 date-time, and use per_page and page to choose the page size and page number.