πŸ“Š YouTube analytics data reporting API integration for AI agents

⚑ 162 views Β· πŸ“Š Market Research & Insights

Description

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator?

Join the community

Complete MCP server exposing 8 YouTube Reporting API operations to AI agents.

⚑ Quick Setup

  1. Import this workflow into your n8n instance
  2. Credentials Add YouTube Reporting API credentials
  3. Activate the workflow to start your MCP server
  4. Copy the webhook URL from the MCP trigger node
  5. Connect AI agents using the MCP URL

πŸ”§ How it Works

This workflow converts the YouTube Reporting API into an MCP-compatible interface for AI agents.

β€’ MCP Trigger: Serves as your server endpoint for AI agent requests β€’ HTTP Request Nodes: Handle API calls to https://youtubereporting.googleapis.com/ β€’ AI Expressions: Automatically populate parameters via $fromAI() placeholders β€’ Native Integration: Returns responses directly to the AI agent

πŸ“‹ Available Operations (8 total)

πŸ”§ V1 (8 endpoints)

β€’ GET /v1/jobs: Retrieve Report Metadata β€’ POST /v1/jobs: Creates a job and returns it. β€’ DELETE /v1/jobs/{jobId}: Deletes a job. β€’ GET /v1/jobs/{jobId}: Gets a job. β€’ GET /v1/jobs/{jobId}/reports: Lists reports created by a specific job. Returns NOT_FOUND if the job does no… β€’ GET /v1/jobs/{jobId}/reports/{reportId}: Gets the metadata of a specific report. β€’ GET /v1/media/{resourceName}: Method for media download. Download is supported on the URI `/v1/media/{+name… β€’ GET /v1/reportTypes: List Report Types

πŸ€– AI Integration

Parameter Handling: AI agents automatically provide values for: β€’ Path parameters and identifiers β€’ Query parameters and filters β€’ Request body data β€’ Headers and authentication

Response Format: Native YouTube Reporting API responses with full data structure

Error Handling: Built-in n8n HTTP request error management

πŸ’‘ Usage Examples

Connect this MCP server to any AI agent or workflow:

β€’ Claude Desktop: Add MCP server URL to configuration β€’ Cursor: Add MCP server SSE URL to configuration β€’ Custom AI Apps: Use MCP URL as tool endpoint β€’ API Integration: Direct HTTP calls to MCP endpoints

✨ Benefits

β€’ Zero Setup: No parameter mapping or configuration needed β€’ AI-Ready: Built-in $fromAI() expressions for all parameters β€’ Production Ready: Native n8n HTTP request handling and logging β€’ Extensible: Easily modify or add custom logic

> πŸ†“ Free for community use! Ready to deploy in under 2 minutes.

πŸ”— Nodes Used

MCP Server Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup