Youtube · Arazzo Workflow

YouTube Search Playlist and List Items

Version 1.0.0

Search for a playlist, read its full resource, then list the videos it contains.

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

Provider

youtube

Workflows

search-playlist-list-items
Find a playlist by query and enumerate its items.
Searches for playlists matching a query, reads the first result's playlist resource, and lists the items in that playlist.
3 steps inputs: apiKey, query outputs: items, playlistId, title
1
searchPlaylists
Search YouTube restricted to playlist resources and capture the first playlist id.
2
getPlaylist
Read the full playlist resource for the matched id.
3
listItems
List the items contained in the matched playlist.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: YouTube Search Playlist and List Items
  summary: Search for a playlist, read its full resource, then list the videos it contains.
  description: >-
    A discovery flow for curated collections. It searches YouTube restricted to
    playlist resources, resolves the top result to a full playlist resource, and
    then lists the items inside that playlist. 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: playlistitemsApi
  url: ../openapi/youtube-playlistitems-api-openapi.yml
  type: openapi
- name: playlistsApi
  url: ../openapi/youtube-playlists-api-openapi.yml
  type: openapi
- name: searchApi
  url: ../openapi/youtube-search-api-openapi.yml
  type: openapi
workflows:
- workflowId: search-playlist-list-items
  summary: Find a playlist by query and enumerate its items.
  description: >-
    Searches for playlists matching a query, reads the first result's playlist
    resource, and lists the items in that playlist.
  inputs:
    type: object
    required:
    - apiKey
    - query
    properties:
      apiKey:
        type: string
        description: The Google API key used to authorize each YouTube Data API request.
      query:
        type: string
        description: The query term used to find a playlist.
  steps:
  - stepId: searchPlaylists
    description: Search YouTube restricted to playlist resources and capture the first playlist id.
    operationId: youtube.search.list
    parameters:
    - name: part
      in: query
      value: snippet
    - name: q
      in: query
      value: $inputs.query
    - name: type
      in: query
      value: playlist
    - name: maxResults
      in: query
      value: 5
    - name: key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      playlistId: $response.body#/items/0/id/playlistId
  - stepId: getPlaylist
    description: Read the full playlist resource for the matched id.
    operationId: youtube.playlists.list
    parameters:
    - name: part
      in: query
      value: snippet,contentDetails,status
    - name: id
      in: query
      value: $steps.searchPlaylists.outputs.playlistId
    - name: key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      title: $response.body#/items/0/snippet/title
      itemCount: $response.body#/items/0/contentDetails/itemCount
  - stepId: listItems
    description: List the items contained in the matched playlist.
    operationId: youtube.playlistItems.list
    parameters:
    - name: part
      in: query
      value: snippet,contentDetails
    - name: playlistId
      in: query
      value: $steps.searchPlaylists.outputs.playlistId
    - name: maxResults
      in: query
      value: 50
    - name: key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      items: $response.body#/items
  outputs:
    playlistId: $steps.searchPlaylists.outputs.playlistId
    title: $steps.getPlaylist.outputs.title
    items: $steps.listItems.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-search-playlist-list-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.