Youtube · Arazzo Workflow

YouTube Create Playlist and Add Items

Version 1.0.0

Create a new playlist and insert two videos into it in sequence.

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

Provider

youtube

Workflows

create-playlist-add-items
Create a playlist and populate it with two videos.
Creates a playlist with the supplied title, description, and privacy status, then adds two videos to it by inserting playlist items that reference the new playlist id.
3 steps inputs: apiKey, description, firstVideoId, privacyStatus, secondVideoId, title outputs: firstItemId, playlistId, secondItemId
1
createPlaylist
Create a new playlist with the supplied snippet and status.
2
addFirstItem
Insert the first video into the newly created playlist.
3
addSecondItem
Insert the second video into the newly created playlist.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: YouTube Create Playlist and Add Items
  summary: Create a new playlist and insert two videos into it in sequence.
  description: >-
    A common curation flow. It creates a new playlist on behalf of the
    authenticated user, then inserts a first video and a second video into the
    freshly created playlist using the returned playlist 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: playlistitemsApi
  url: ../openapi/youtube-playlistitems-api-openapi.yml
  type: openapi
- name: playlistsApi
  url: ../openapi/youtube-playlists-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-playlist-add-items
  summary: Create a playlist and populate it with two videos.
  description: >-
    Creates a playlist with the supplied title, description, and privacy status,
    then adds two videos to it by inserting playlist items that reference the new
    playlist id.
  inputs:
    type: object
    required:
    - apiKey
    - title
    - firstVideoId
    - secondVideoId
    properties:
      apiKey:
        type: string
        description: The Google API key used to authorize each YouTube Data API request.
      title:
        type: string
        description: The title for the new playlist.
      description:
        type: string
        description: An optional description for the new playlist.
        default: ""
      privacyStatus:
        type: string
        description: The privacy status of the new playlist (private, public, or unlisted).
        default: private
      firstVideoId:
        type: string
        description: The id of the first video to add to the playlist.
      secondVideoId:
        type: string
        description: The id of the second video to add to the playlist.
  steps:
  - stepId: createPlaylist
    description: Create a new playlist with the supplied snippet and status.
    operationId: youtube.playlists.insert
    parameters:
    - name: part
      in: query
      value: snippet,status
    - name: key
      in: query
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        snippet:
          title: $inputs.title
          description: $inputs.description
        status:
          privacyStatus: $inputs.privacyStatus
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      playlistId: $response.body#/id
  - stepId: addFirstItem
    description: Insert the first video into the newly created playlist.
    operationId: youtube.playlistItems.insert
    parameters:
    - name: part
      in: query
      value: snippet
    - name: key
      in: query
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        snippet:
          playlistId: $steps.createPlaylist.outputs.playlistId
          resourceId:
            kind: youtube#video
            videoId: $inputs.firstVideoId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstItemId: $response.body#/id
  - stepId: addSecondItem
    description: Insert the second video into the newly created playlist.
    operationId: youtube.playlistItems.insert
    parameters:
    - name: part
      in: query
      value: snippet
    - name: key
      in: query
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        snippet:
          playlistId: $steps.createPlaylist.outputs.playlistId
          resourceId:
            kind: youtube#video
            videoId: $inputs.secondVideoId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      secondItemId: $response.body#/id
  outputs:
    playlistId: $steps.createPlaylist.outputs.playlistId
    firstItemId: $steps.addFirstItem.outputs.firstItemId
    secondItemId: $steps.addSecondItem.outputs.secondItemId

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-create-playlist-add-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.