View as Markdown
YouTube Analytics icon

YouTube Analytics ACTION

Get Channel Report Metrics

Retrieve the supported metrics for a specified channel report type. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's YouTube Analytics account once, then configure and run Get Channel Report Metrics 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_analytics_api-get-channel-report-metrics",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    youtube_analytics_api: { authProvisionId: "apn_xxxxxxx" },
    channelReportType: "Channel Report Type",
  },
})

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.

Get Channel Report Metrics inputs
Property Type Description
channelReportType Channel Report Type string
The type of report to fetch for the specified YouTube Channel. This selects default dimensions, metrics and filters.
Required

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_analytics_api-get-channel-report-metrics
Version
0.0.1
App
YouTube Analytics
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
No