Skip to content
Browse all functions

Set YouTube Comment Moderation Status

youtube/setyoutubecommentmoderationstatus

setyoutubecommentmoderationstatus (Set YouTube Comment Moderation Status) is a 1001fx API function in the group YouTube: POST https://api.1001fx.com/youtube/setyoutubecommentmoderationstatus, 2 credits per call. It works in Make, n8n, scripts and AI agents as a plain HTTP call.

This function is deprecated and will be removed in a future release.

Sets the moderation status of one or more comments. The API request must be authorized by the owner of the channel or video associated with the comments.

  • This service is provided by an external service provider: YouTube. The data of the call is sent to the provider. More about service providers

Try it in the 1001fx app

Run setyoutubecommentmoderationstatus in your browser with your API key – fill the form, click Run and get the answer or the file.

setyoutubecommentmoderationstatus in the 1001fx app: the form with example values
Set YouTube Comment Moderation Status in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/youtube/setyoutubecommentmoderationstatus
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • credentialKeystringrequired

    Your 1001fx credential key. See https://1001fx.com/app/credentials/list

    Example:
    yourCredentialKey
  • idsarray<string>required

    IDs of the comment of which you want to change the moderation status.

    Min items:
    1
  • moderationStatusenumrequired

    Identifies the new moderation status of the specified comments.

    Values:
    published
    likelySpam
    heldForReview
    Example:
    published
  • banAuthorbooleanoptional

    The banAuthor parameter lets you indicate that you want to automatically reject any additional comments written by the comments author. Note: This parameter is only valid if the moderationStatus parameter is also set to rejected.

    Example:
    false

Examples

Set YouTube Comment Moderation Status

Returns a list of comment threads

Input

Expects a json body
{
  "credentialKey": "yourCredentialKey",
  "id": [],
  "moderationStatus": "published",
  "banAuthor": false
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/youtube/setyoutubecommentmoderationstatus' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"credentialKey":"yourCredentialKey","id":[],"moderationStatus":"published","banAuthor":false}'

Try setyoutubecommentmoderationstatus now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.025.04.2023created
Ask 1001fx