Retrieve a channel performance report via YouTube Analytics API

domain: developers.google.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable the YouTube Analytics API in the Google Cloud Console and obtain OAuth 2.0 credentials with the yt-analytics.readonly scope.
  2. Construct a request to the reports.query endpoint specifying ids=channel==MINE (or a specific channel ID), startDate, endDate in YYYY-MM-DD format, and the metrics you want (e.g., views, estimatedMinutesWatched, averageViewDuration).
  3. Add optional dimensions (e.g., day, country) and filters to narrow the report scope.
  4. Send the GET request with the access token in the Authorization header and parse the columnHeaders and rows in the JSON response.
  5. Iterate over the rows array, matching each row's values to the corresponding column header names to build your dataset.

Known gotchas

Related routes

Request a performance report via Microsoft Advertising Reporting Service
learn.microsoft.com/en-us/advertising/reporting-service · 6 steps · unrated
request and download an asynchronous performance report via the criteo retail media api
developers.criteo.com/retail-media · 5 steps · unrated
Query Google Search Console Search Analytics API for Discover performance data
developers.google.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans