YouTubeYouTubeSocial

Set moderation status of YouTube comments

youtube.x.youtube-comments-setmoderationstatus

comments.setModerationStatus — Sets the moderation status of one or more comments.

Price
freeZum Listenpreis
Success rate
—Noch keine ErfolgsratendatenNoch keine Erfolgsratendaten
Latency p50
——
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/youtube.x.youtube-comments-setmoderationstatusBeta
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameter

ParameterTypErforderlichBeschreibungBeispiel
Abfrageparameter
idZeichenketteErforderlichModifies the moderation status of the comments with the given IDs
banAuthorBooleanOptionalIf set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.
moderationStatusZeichenketteErforderlichSpecifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: 'heldForReview', 'published' or 'rejected'.
  • Abfrageparameter
  • idZeichenketteErforderlich

    Modifies the moderation status of the comments with the given IDs

  • banAuthorBooleanOptional

    If set to true the author of the comment gets added to the ban list. This means all future comments of the author will autmomatically be rejected. Only valid in combination with STATUS_REJECTED.

  • moderationStatusZeichenketteErforderlich

    Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as 'likely spam'. Valid values: 'heldForReview', 'published' or 'rejected'.

Codebeispiele

Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.

Beta
curl -X POST 'https://toolswitch.dev/v1/tools/youtube.x.youtube-comments-setmoderationstatus' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

Diese Gateway-API ist in der Beta; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.