YouTubeYouTubeSocial

Set moderation status of YouTube comments

youtube.x.youtube-comments-setmoderationstatus

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

Price
freeプロバイダー原価
Success rate
—成功率データはまだありません成功率データはまだありません
Latency p50
——
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/youtube.x.youtube-comments-setmoderationstatusPreview
  • Uses platform quota
  • Synchronous response
  • Reads public data

パラメータ

パラメータ型必須説明例
クエリパラメータ
id文字列必須Modifies the moderation status of the comments with the given IDs
banAuthor真偽値任意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.
moderationStatus文字列必須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'.
  • クエリパラメータ
  • id文字列必須

    Modifies the moderation status of the comments with the given IDs

  • banAuthor真偽値任意

    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.

  • moderationStatus文字列必須

    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'.

コード例

$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。

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

このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。