Youtube · Arazzo Workflow

YouTube Channel Playlists and Items

Version 1.0.0

Resolve a channel, list its playlists, then list the items inside the first playlist.

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

Provider

youtube

Workflows

channel-playlists-items
Drill from a channel into its playlists and the items of the first one.
Reads a channel resource, lists the playlists created by that channel, and expands the first playlist into its constituent playlist items.
3 steps inputs: apiKey, channelId outputs: channelTitle, firstPlaylistItems, playlists
1
getChannel
Retrieve the channel resource, including snippet and content details.
2
listPlaylists
List the playlists created by the channel and capture the id of the first playlist for further expansion.
3
listPlaylistItems
List the items contained in the first playlist returned for the channel.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: YouTube Channel Playlists and Items
  summary: Resolve a channel, list its playlists, then list the items inside the first playlist.
  description: >-
    Walks a channel's published structure. It looks up a channel by id,
    enumerates the playlists owned by that channel, and then lists the items in
    the first playlist returned. 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: channelsApi
  url: ../openapi/youtube-channels-api-openapi.yml
  type: openapi
- name: playlistitemsApi
  url: ../openapi/youtube-playlistitems-api-openapi.yml
  type: openapi
- name: playlistsApi
  url: ../openapi/youtube-playlists-api-openapi.yml
  type: openapi
workflows:
- workflowId: channel-playlists-items
  summary: Drill from a channel into its playlists and the items of the first one.
  description: >-
    Reads a channel resource, lists the playlists created by that channel, and
    expands the first playlist into its constituent playlist items.
  inputs:
    type: object
    required:
    - apiKey
    - channelId
    properties:
      apiKey:
        type: string
        description: The Google API key used to authorize each YouTube Data API request.
      channelId:
        type: string
        description: The YouTube channel id whose playlists should be enumerated.
  steps:
  - stepId: getChannel
    description: Retrieve the channel resource, including snippet and content details.
    operationId: youtube.channels.list
    parameters:
    - name: part
      in: query
      value: snippet,contentDetails,statistics
    - name: id
      in: query
      value: $inputs.channelId
    - name: key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      channelTitle: $response.body#/items/0/snippet/title
  - stepId: listPlaylists
    description: >-
      List the playlists created by the channel and capture the id of the first
      playlist for further expansion.
    operationId: youtube.playlists.list
    parameters:
    - name: part
      in: query
      value: snippet,contentDetails
    - name: channelId
      in: query
      value: $inputs.channelId
    - name: maxResults
      in: query
      value: 25
    - name: key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstPlaylistId: $response.body#/items/0/id
      playlists: $response.body#/items
  - stepId: listPlaylistItems
    description: List the items contained in the first playlist returned for the channel.
    operationId: youtube.playlistItems.list
    parameters:
    - name: part
      in: query
      value: snippet,contentDetails
    - name: playlistId
      in: query
      value: $steps.listPlaylists.outputs.firstPlaylistId
    - name: maxResults
      in: query
      value: 50
    - name: key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      items: $response.body#/items
  outputs:
    channelTitle: $steps.getChannel.outputs.channelTitle
    playlists: $steps.listPlaylists.outputs.playlists
    firstPlaylistItems: $steps.listPlaylistItems.outputs.items

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-channel-playlists-items-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.