Comments
Search Comments
GET
https://e621.net/comments.json
No comment information will be returned in this route. See Search Comments (Group By Comment). This is for ui use, so it doesn't serve much api use.
This route does not support the limit
parameter. The maximum results will always be 5.
This route does not support search[id]
.
Query Parameters
Name | Type | Description |
---|---|---|
group_by | `post` | Where to start the relation of comments from. |
tags | String | The tags of the posts. |
page | String |
Search Comments (Group By Comment)
GET
https://e621.net/comments.json?group_by=comment
Query Parameters
Name | Type | Description |
---|---|---|
group_by* | String |
|
search[body_matches] | String | The body of the comment. |
search[do_not_bump_post] | Boolean | If the post did not bump. The UI for searching inverts this option. |
search[post_tags_match] | String | The tags of the post the comments are on. |
search[creator_name] | String | The name of the creator of the comment. |
search[creator_id] | Number | The ID of the creator of the comment. |
search[is_hidden] | Boolean | If the comment is hidden. |
search[is_sticky] | Boolean | If the comment is sticky (post as moderator). |
search[post_id] | Number | The ID of the post the comment was made on. Multiple post ids can be separated by commas. |
search[poster_id] | Number | The ID of the user that created the post the comment is on. |
search[ip_addr] | String | The IP Address of the creator of the comment. |
search[order] | String | The order of the returned results. One of: |
search[id] | Number | |
limit | Number | |
page | String |
Get Comment
GET
https://e621.net/comments/{id}.json
Moderator+ Required If comment is hidden.
Path Parameters
Name | Type | Description |
---|---|---|
id* | Number | The ID of the comment. |
Add Warning To Comment
POST
https://e621.net/comments/{id}/warning.json
Authorization Required
Moderator+ Required
This operation is idempotent.
Path Parameters
Name | Type | Description |
---|---|---|
id* | Number | The ID of the comment to add a warning to. |
Request Body
Name | Type | Description |
---|---|---|
record_type* | String | The type of warning to add to the comment. One of: |
Hide Comment
POST
https://e621.net/comments/{id}/hide.json
Authorization Required
Moderator+ Required If the comment is not yours.
This operation is idempotent.
Path Parameters
Name | Type | Description |
---|---|---|
id* | Number | The ID of the comment to hide. |
Unhide Comment
POST
https://e621.net/comments/{id}/unhide.json
Authorization Required
Moderator+ Required
This operation is idempotent.
Path Parameters
Name | Type | Description |
---|---|---|
id* | Number | The ID of the comment to unhide. |
Create Comment
POST
https://e621.net/comments.json
Authorization Required
Privileged+ Required If account is less than one week old.
Moderator+ Required If comment section is locked.
Request Body
Name | Type | Description |
---|---|---|
comment[body]* | String | The body of the comment. Min: 1 / Max: 10,000 |
comment[post_id]* | Number | The ID of the post to comment on. |
comment[is_sticky] | Boolean | If the comment is sticky (post as moderator). Moderator+ Required |
comment[is_hidden] | Boolean | If the comment is hidden. Moderator+ Required |
comment[do_not_bump_post] | Boolean | If the post should not be bumped. |
Edit Comment
PATCH
https://e621.net/comments/{id}.json
Authorization Required
Moderator+ Required If comment section is locked.
Admin+ Required If the comment is not yours.
Edits performed within 5 minutes of creation will not show the "edited" text.
If the comment is not yours, the edit text will show "updated by NAME". This ignores the normal time window.
Moderator+ Required if comment is marked (shows warn, record, or ban message).
This operation is idempotent.
Path Parameters
Name | Type | Description |
---|---|---|
id* | Number | The ID of the comment to edit. |
Request Body
Name | Type | Description |
---|---|---|
comment[body]* | String | The body of the comment. Min: 1 / Max: 10,000 |
comment[is_sticky] | Boolean | If the comment is sticky (post as moderator). Moderator+ Required if own comment Admin+ Required otherwise |
comment[is_hidden] | Boolean | If the comment is hidden. Moderator+ Required if own comment Admin+ Required otherwise |
Delete Comment
DELETE
https://e621.net/comments/{id}.json
Authorization Required
Admin+ Required
Path Parameters
Name | Type | Description |
---|---|---|
id* | Number | The ID of the comment to delete. |
Vote On Comment
POST
https://e621.net/comments/{id}/votes.json
Authorization Required
Privileged+ Required If account is less than 3 days old.
New votes cannot be cast if the comments section is locked. To remove an existing vote, send a request with the current vote. (e.g. -1 = send -1, they will cancel out). You can also use the DELETE
method.
Path Parameters
Name | Type | Description |
---|---|---|
id* | Number | The ID of the comment to vote on. |
Request Body
Name | Type | Description |
---|---|---|
score* | Number | The vote to cast. One of: |
no_unvote | Boolean | If the vote should not be removed if it already exists. |
Remove Comment Vote
DELETE
https://e621.net/comments/{id}/votes.json
Authorization Required
The only vote removed will be the currently authenticated user's vote.
This operation is idempotent.
Path Parameters
Name | Type | Description |
---|---|---|
id* | Number | The ID of the comment to remove the vote from. |
Last updated