View as Markdown
YouTube Data icon

YouTube Data ACTION

Upload Thumbnail

Uploads a custom video thumbnail to YouTube and sets it for a video. Note: Account must be verified. See the documentation for more information
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's YouTube Data account once, then configure and run Upload Thumbnail from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "youtube_data_api-upload-thumbnail",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    youtube_data_api: { authProvisionId: "apn_xxxxxxx" },
    videoId: "Video ID",
    filePath: "File Path or URL",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Upload Thumbnail inputs
Property Type Description
videoId Video ID string
Select the video to update. E.g. wslno0wDSFQ
Required Dynamic
filePath File Path or URL string
Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf).
Required
onBehalfOfContentOwner On Behalf Of Content Owner string

This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.

The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Optional
syncDir SyncDir dir
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
youtube_data_api-upload-thumbnail
Version
1.0.4
App
YouTube Data
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes