# Send weekly YouTube Analytics channel report with Gmail

> Quick overview This workflow runs every Monday and pulls two comparable 7-day YouTube Analytics reporting windows, calculates week-over-week changes plus the top videos by watch time, then emails an HTML report through Gmail. How it works 1. Runs every Monday at 08:00 (America/LosAngeles). 2. Builds two seven-day date windows (current and previous) using a configurable analytics lag to avoid incomplete recent YouTube Analytics data. 3. Queries the YouTube Analytics v2 Reports API for channel-level metrics for the current week and the previous week. 4. Queries the YouTube Analytics v2 Reports API for the top five videos in the current week ranked by estimated minutes watched. 5. Computes absolute and percentage changes for each metric, formats the results into an HTML email with links to the top videos, and notes any unavailable comparisons. 6. Sends the weekly report email via Gmail to the configured recipient. Setup 1. Enable the YouTube Analytics API and create a YouTube OAuth2 conne

- **Domain**: `n8n-workflow-23592.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/23592
- Page (HTML): https://agenstry.com/agents/n8n-workflow-23592.n8n.io
- Documentation: https://n8n.io/workflows/23592
