Youtube · Arazzo Workflow

YouTube Video Engagement Report

Version 1.0.0

Pull a video's statistics, its top comment thread, and the replies under that thread's top comment.

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

Provider

youtube

Workflows

video-engagement-report
Combine video stats with its top comment thread and replies.
Retrieves a video's statistics, lists its comment threads, and fetches the replies under the first thread's top-level comment.
3 steps inputs: apiKey, videoId outputs: commentCount, replies, threadCount, viewCount
1
getVideoStats
Read the video's snippet and statistics.
2
listThreads
List the comment threads on the video and capture the first thread's top-level comment id.
3
listReplies
List the replies posted under the first thread's top-level comment.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: YouTube Video Engagement Report
  summary: Pull a video's statistics, its top comment thread, and the replies under that thread's top comment.
  description: >-
    Assembles an engagement snapshot for a single video. It reads the video's
    statistics, lists the comment threads on the video, captures the top-level
    comment id of the first thread, and lists the replies to that comment. 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
  x-realizes-capability-ids:
  - BC-3710
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-3710
      capability_name: Media Asset Management
      spec: youtube-videos-api-openapi.yml
      confidence: 0.75
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: commentsApi
  url: ../openapi/youtube-comments-api-openapi.yml
  type: openapi
- name: commentthreadsApi
  url: ../openapi/youtube-commentthreads-api-openapi.yml
  type: openapi
- name: videosApi
  url: ../openapi/youtube-videos-api-openapi.yml
  type: openapi
workflows:
- workflowId: video-engagement-report
  summary: Combine video stats with its top comment thread and replies.
  description: >-
    Retrieves a video's statistics, lists its comment threads, and fetches the
    replies under the first thread's top-level comment.
  inputs:
    type: object
    required:
    - apiKey
    - videoId
    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 report on.
  steps:
  - stepId: getVideoStats
    description: Read the video's snippet and statistics.
    operationId: youtube.videos.list
    parameters:
    - name: part
      in: query
      value: snippet,statistics
    - name: id
      in: query
      value: $inputs.videoId
    - name: key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      viewCount: $response.body#/items/0/statistics/viewCount
      commentCount: $response.body#/items/0/statistics/commentCount
  - stepId: listThreads
    description: List the comment threads on the video and capture the first thread's top-level comment id.
    operationId: youtube.commentThreads.list
    parameters:
    - name: part
      in: query
      value: snippet
    - name: videoId
      in: query
      value: $inputs.videoId
    - name: maxResults
      in: query
      value: 20
    - name: key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      topCommentId: $response.body#/items/0/snippet/topLevelComment/id
      threadCount: $response.body#/pageInfo/totalResults
  - stepId: listReplies
    description: List the replies posted under the first thread's top-level comment.
    operationId: youtube.comments.list
    parameters:
    - name: part
      in: query
      value: snippet
    - name: parentId
      in: query
      value: $steps.listThreads.outputs.topCommentId
    - name: maxResults
      in: query
      value: 20
    - name: key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      replies: $response.body#/items
  outputs:
    viewCount: $steps.getVideoStats.outputs.viewCount
    commentCount: $steps.getVideoStats.outputs.commentCount
    threadCount: $steps.listThreads.outputs.threadCount
    replies: $steps.listReplies.outputs.replies

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-video-engagement-report-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.