Video Comments
List instance comments
GET
https://peertube2.cpy.re/api/v1/videos/comments
Parameters
searchstringqueryPlain text search, applied to various parts of the model depending on endpoint
searchAccountstringqueryFilter comments by searching on the account
searchVideostringqueryFilter comments by searching on the video
videoIdintegerqueryLimit results on this specific video
videoChannelIdintegerqueryLimit results on this specific video channel
autoTagOneOfstring | Array<string>queryPeerTube >= 6.2 filter on comments that contain one of these automatic tags
isLocalbooleanqueryPeerTube >= 4.0 Display only local or remote objects
onLocalVideobooleanqueryDisplay only objects of local or remote videos
includeMutedbooleanqueryPeerTube >= 8.2 Include comments from muted accounts
Response
200OKobject
successful operation
Authorization
OAuth2oauth2Authenticating via OAuth requires the following steps:
- Have an activated account
- Generate an access token for that account at
/api/v1/users/token. - Make requests with the Authorization: Bearer <token> header
- Profit, depending on the role assigned to the account
Note that the access token is valid for 1 day and is given along with a refresh token valid for 2 weeks.
Scopes: admin, moderator