Zernio icon

Zernio

Schedule and manage social media posts across multiple platforms with Zernio - supporting Twitter/X, Instagram, Facebook, LinkedIn, TikTok, YouTube, Threads, Bluesky, Pinterest, Reddit, Telegram, Google Business, and Snapchat

Actions115

Analytics → YouTube Daily Views

AI-generated

Summary

Retrieve daily view counts for a specified YouTube video over a defined date range.

Inputs

  • Video ID (required) — The YouTube video ID for which to fetch daily views.
  • Account ID — Optionally filter data by a specific social account ID.
  • Start Date — The start date (YYYY-MM-DD) for the analytics data; defaults to 30 days prior if omitted.
  • End Date — The end date (YYYY-MM-DD) for the analytics data; defaults to 3 days ago due to YouTube data latency if omitted.
  • Request Options — Advanced options including batching, SSL certificate handling, proxy settings, and request timeout configuration.

Output shape

a JSON object or list containing daily view metrics for the specified YouTube video across the given date range.

Date range defaults apply if start or end dates are not specified. Data reflects YouTube's inherent data latency, particularly for the end date defaulting to 3 days ago. Request options allow control over API call behavior such as batching and timeout but do not alter the data content.

Examples

Example 1: Fetch daily views for a YouTube video over the month of January 2024.

Set Video ID to the target video's ID, Start Date to '2024-01-01', and End Date to '2024-01-31'. Optionally specify Account ID to narrow scope.

Example 2: Retrieve last 30 days of daily views using default date range.

Set Video ID to desired YouTube video; omit Start Date and End Date to use defaults (30 days ago to 3 days ago).

Discussion