Youtube · Arazzo Workflow

YouTube Post Comment Thread and Reply

Version 1.0.0

Post a top-level comment on a video and then add a reply to it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub GoogleMediaSocialStreamingVideoVideosArazzoWorkflows

Provider

youtube

Workflows

post-comment-thread-reply
Create a top-level comment thread, then reply to its top-level comment.
Posts a new top-level comment on a video via commentThreads.insert, then replies to it via comments.insert using the top-level comment id as the parent id.
2 steps inputs: apiKey, commentText, replyText, videoId outputs: replyId, threadId, topLevelCommentId
1
postThread
Create a new top-level comment thread on the video and capture the id of the created top-level comment.
2
postReply
Reply to the top-level comment created above by inserting a comment whose parentId is the top-level comment id.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: YouTube Post Comment Thread and Reply
  summary: Post a top-level comment on a video and then add a reply to it.
  description: >-
    Starts a discussion and follows up on it. It creates a new comment thread
    (a top-level comment) on a video, captures the id of the top-level comment,
    and then posts a reply to that comment using the comments.insert method with
    the captured parent id. Every step spells out its request inline so the flow
    can be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: commentsApi
  url: ../openapi/youtube-comments-api-openapi.yml
  type: openapi
- name: commentthreadsApi
  url: ../openapi/youtube-commentthreads-api-openapi.yml
  type: openapi
workflows:
- workflowId: post-comment-thread-reply
  summary: Create a top-level comment thread, then reply to its top-level comment.
  description: >-
    Posts a new top-level comment on a video via commentThreads.insert, then
    replies to it via comments.insert using the top-level comment id as the
    parent id.
  inputs:
    type: object
    required:
    - apiKey
    - videoId
    - commentText
    - replyText
    properties:
      apiKey:
        type: string
        description: The Google API key used to authorize each YouTube Data API request.
      videoId:
        type: string
        description: The id of the video to comment on.
      commentText:
        type: string
        description: The text of the top-level comment to post.
      replyText:
        type: string
        description: The text of the reply to post under the top-level comment.
  steps:
  - stepId: postThread
    description: >-
      Create a new top-level comment thread on the video and capture the id of
      the created top-level comment.
    operationId: youtube.commentThreads.insert
    parameters:
    - name: part
      in: query
      value: snippet
    - name: key
      in: query
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        snippet:
          videoId: $inputs.videoId
          topLevelComment:
            snippet:
              textOriginal: $inputs.commentText
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      threadId: $response.body#/id
      topLevelCommentId: $response.body#/snippet/topLevelComment/id
  - stepId: postReply
    description: >-
      Reply to the top-level comment created above by inserting a comment whose
      parentId is the top-level comment id.
    operationId: youtube.comments.insert
    parameters:
    - name: part
      in: query
      value: snippet
    - name: key
      in: query
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        snippet:
          parentId: $steps.postThread.outputs.topLevelCommentId
          textOriginal: $inputs.replyText
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      replyId: $response.body#/id
  outputs:
    threadId: $steps.postThread.outputs.threadId
    topLevelCommentId: $steps.postThread.outputs.topLevelCommentId
    replyId: $steps.postReply.outputs.replyId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/youtube-post-comment-thread-reply-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.