Returns the channel's stored details and, from YouTube Analytics, its daily
metrics, top ten videos, and viewer demographics over a window. YouTube's
figures lag by two to three days, so the default window is the 28 days ending
three days ago. Needs the yt-analytics.readonly grant; a connection without it
returns 422 connection_expired with "Reconnect YouTube to enable analytics".
Query parameters
accountIduuidRequired- A connected YouTube channel.
profileIduuid- Optional, because accountId names its profile. If you pass both, they must agree.
startDateYYYY-MM-DD- First day, UTC. Give both dates or neither. A window covers at most 365 days.
endDateYYYY-MM-DD- Last day, UTC, before today and on or after startDate.
channel.subscribers is null when the channel hides its subscriber count.
YouTube withholds demographics for channels with too few viewers, so
audience can be empty.
Errors — 401 unauthorized, 400 invalid_request, 404 account_not_found,
404 profile_not_found, 422 connection_expired,
422 provider_not_configured, 429 rate_limited, 502 provider_error.