CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 05 Sep 2025 03:02:54 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20161114184555
location: https://web.archive.org/web/20161114184555/https://developer.github.com/v3/gists/comments/
server-timing: captures_list;dur=0.907868, exclusion.robots;dur=0.039551, exclusion.robots.policy;dur=0.023976, esindex;dur=0.016488, cdx.remote;dur=46.318065, LoadShardBlock;dur=377.912182, PetaboxLoader3.datanode;dur=247.335628, PetaboxLoader3.resolve;dur=62.690366
x-app-server: wwwb-app28
x-ts: 302
x-tr: 463
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app28; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 05 Sep 2025 03:02:56 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-last-modified: Mon, 14 Nov 2016 05:40:40 GMT
x-archive-orig-access-control-allow-origin: *
x-archive-orig-expires: Mon, 14 Nov 2016 18:55:55 GMT
x-archive-orig-cache-control: max-age=600
x-archive-orig-x-github-request-id: 17EB2F15:6305:64F3EC:582A0662
x-archive-orig-content-length: 50451
x-archive-orig-accept-ranges: bytes
x-archive-orig-date: Mon, 14 Nov 2016 18:45:55 GMT
x-archive-orig-via: 1.1 varnish
x-archive-orig-age: 0
x-archive-orig-connection: close
x-archive-orig-x-served-by: cache-sjc3644-SJC
x-archive-orig-x-cache: MISS
x-archive-orig-x-cache-hits: 0
x-archive-orig-x-timer: S1479149155.267353,VS0,VE75
x-archive-orig-vary: Accept-Encoding
x-archive-orig-x-fastly-request-id: 84e47c3af7ad0ab6445ed3b7cda3ce4e1523048a
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 14 Nov 2016 18:45:55 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 03 May 2011 09:24:56 GMT", ; rel="prev memento"; datetime="Sat, 30 Jul 2016 15:06:49 GMT", ; rel="memento"; datetime="Mon, 14 Nov 2016 18:45:55 GMT", ; rel="next memento"; datetime="Sat, 04 Feb 2017 21:25:48 GMT", ; rel="last memento"; datetime="Sat, 20 Jul 2024 04:30:37 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: ARCHIVEIT-771-QUARTERLY-JOB248887-20161114-00001/ARCHIVEIT-771-QUARTERLY-JOB248887-20161114184331856-00016.warc.gz
server-timing: captures_list;dur=0.945948, exclusion.robots;dur=0.045944, exclusion.robots.policy;dur=0.029892, esindex;dur=0.015277, cdx.remote;dur=1074.162330, LoadShardBlock;dur=350.279383, PetaboxLoader3.datanode;dur=289.092407, PetaboxLoader3.resolve;dur=149.101458, load_resource;dur=180.088803
x-app-server: wwwb-app28
x-ts: 200
x-tr: 1825
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Gist Comments | GitHub Developer Guide
Comments
- List comments on a gist
- Get a single comment
- Create a comment
- Edit a comment
- Delete a comment
- Custom media types
Gist Comments use these custom media types. You can read more about the use of media types in the API here.
List comments on a gist
GET /gists/:gist_id/comments
Response
Status: 200 OK
Link: <https://api.github.com/resource?page=2>; rel="next",
<https://api.github.com/resource?page=5>; rel="last"
[
{
"id": 1,
"url": "https://api.github.com/gists/a6db0bec360bb87e9418/comments/1",
"body": "Just commenting for the sake of commenting",
"user": {
"login": "octocat",
"id": 1,
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2011-04-18T23:23:56Z",
"updated_at": "2011-04-18T23:23:56Z"
}
]
Get a single comment
GET /gists/:gist_id/comments/:id
Response
Status: 200 OK
{
"id": 1,
"url": "https://api.github.com/gists/a6db0bec360bb87e9418/comments/1",
"body": "Just commenting for the sake of commenting",
"user": {
"login": "octocat",
"id": 1,
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2011-04-18T23:23:56Z",
"updated_at": "2011-04-18T23:23:56Z"
}
Create a comment
POST /gists/:gist_id/comments
Parameters
Name | Type | Description |
---|---|---|
body |
string |
Required. The comment text. |
{
"body": "Just commenting for the sake of commenting"
}
Response
Status: 201 Created
Location: https://api.github.com/gists/a6db0bec360bb87e9418/comments/1
{
"id": 1,
"url": "https://api.github.com/gists/a6db0bec360bb87e9418/comments/1",
"body": "Just commenting for the sake of commenting",
"user": {
"login": "octocat",
"id": 1,
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2011-04-18T23:23:56Z",
"updated_at": "2011-04-18T23:23:56Z"
}
Edit a comment
PATCH /gists/:gist_id/comments/:id
Input
Name | Type | Description |
---|---|---|
body |
string |
Required. The comment text. |
{
"body": "Just commenting for the sake of commenting"
}
Response
Status: 200 OK
{
"id": 1,
"url": "https://api.github.com/gists/a6db0bec360bb87e9418/comments/1",
"body": "Just commenting for the sake of commenting",
"user": {
"login": "octocat",
"id": 1,
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2011-04-18T23:23:56Z",
"updated_at": "2011-04-18T23:23:56Z"
}
Delete a comment
DELETE /gists/:gist_id/comments/:id
Response
Status: 204 No Content
Custom media types
These are the supported media types for gist comments. You can read more about the use of media types in the API here.
application/vnd.github.VERSION.raw+json
application/vnd.github.VERSION.text+json
application/vnd.github.VERSION.html+json
application/vnd.github.VERSION.full+json