Create weekly video performance summaries for reporting dashboards
Give it a YouTube video and a date range, and it returns that video's views, watch time, engagement, revenue and subscriber change in one payload for your dashboard.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-weekly-video-performance-summaries-for-reporting-dashboards/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Data & Analytics · Data visualization
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-weekly-video-performance-summaries-for-reporting-dashboards
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-weekly-video-performance-summaries-for-reporting-dashboards/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-weekly-video-performance-summaries-for-reporting-dashboards - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy create-weekly-video-performance-summaries-for-reporting-dashboards - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-weekly-video-performance-summaries-for-reporting-dashboards
zaps/create-weekly-video-performance-summaries-for-reporting-dashboards/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 1 to fill in
- connections/youtube.tsThe
youtubeaccount it uses - triggers/hook.tsWhat starts it:
webhookhook_v2 - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a request arrives at a catch hook (
webhook,hook_v2) carryingvideo_id,start_dateandend_date. - YouTube (
youtube) runs a Get Report (Top Videos breakdown) on the channel, filtered to that video ID, for the date range, requesting views, watch time, likes, comments, shares, estimated revenue and subscribers gained and lost. - The first row of the report is reduced to the summary: views, average watch time (seconds), engagement percentage ((likes + comments + shares) / views), revenue, and subscriber delta (gained minus lost). If there's no data, every value is zero.
The Zap only reads from YouTube. It writes nothing to the channel.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
REPLACE_CHANNEL_ID |
The YouTube channel the videos belong to, as its UC… ID; look it up with the user's YouTube connection |
Also review the default with them: METRICS (the report columns; change these only if they want different columns).
Before building, ask:
- Which YouTube connection should the Zap use? It must be a connected account that owns or manages the channel.
- What does the sender post? The payload must carry
video_id,start_date(YYYY-MM-DD) andend_date(YYYY-MM-DD). If the sender uses other field names, change them inworkflow.tsbefore installing.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-weekly-video-performance-summaries-for-reporting-dashboards, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-weekly-video-performance-summaries-for-reporting-dashboards, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
youtubeto the user's YouTube connection for the account that owns or manages the channel to report on. The trigger,webhook, needs no connection. - Source: publish
workflow.tsandconfig.ts, withREPLACE_CHANNEL_IDreplaced by the user's answer.triggers/hook.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connection and sample the trigger before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run this sample once as a draft test before publishing, using a video that exists on the channel:
{
"video_id": "VIDEO_ID_ON_THE_CHANNEL",
"start_date": "2026-10-19",
"end_date": "2026-10-25"
}
Check that the returned payload has the video's own views and that the engagement percentage is consistent with its likes, comments and shares. For a video with no activity in the range, check that the values are zero and reason is no-report-data. Draft test runs can't confirm the row's field names until a real report has run, so compare the step's output against the YouTube result before trusting the mapping. If run-status tools aren't available, check the result in YouTube directly. Any test data is the user's to delete, not the agent's.
Notes
- The workflow returns its summary in the run output. A catch hook can't return a value to the sender, so the caller reads results from the run, or from a later step that writes them somewhere.
- Engagement percentage is a derived figure (likes, comments and shares over views). Change the formula in
workflow.tsif the dashboard defines engagement differently. - To write each summary to Google Sheets for archival reporting, add a Google Sheets step after the summary that appends one row. To alert on thresholds, post a Slack message when revenue or engagement crosses a set value.
- Keep the webhook URL private. Anyone with it can request reports.