diff --git a/Odysee-API/Comments.adoc b/Odysee-API/Comments.adoc new file mode 100644 index 0000000..158f292 --- /dev/null +++ b/Odysee-API/Comments.adoc @@ -0,0 +1,28 @@ += Comments (comments.odysee.tv) +:toc: +Documentation for the comments API. https://github.com/OdyseeTeam/commentron + +== `POST` List comments + https:/comments.odysee.tv/api/v2?m=comment.List + +List comments for a claim. + +=== `JSON` /api/v2?m=comment.List +[,json] +---- +{ + "jsonrpc": "2.0", + "id": 1, + "method": "comment.List", + "params": { + "page": 1, + "page_size": 10, + "top_level": true, + "sort_by: 3, # 3 - Best, 2 - Controversial, 0 - New + "parent_id": "parent comment ID", # For comment replies + "claim_id": "463e63afb35a319f260b36ef8d5c3dc41a98ce28", + "channel_id": "ecf0a6be99030d0ad4e10aec11d2c0bab94246ae", + "channel_name": "@MusicARetro" + } +} +---- \ No newline at end of file