Actions40
- Account Actions
- Channel Actions
- Instagram Actions
- Job Actions
- Keyword Actions
- Studio & AI Actions
- Trend Actions
- Video Actions
Channel → Get Stats
AI-generatedSummary
Retrieve YouTube channel statistics over a configurable date range
Inputs
- channelId (required) — YouTube channel ID to retrieve stats for
- from — Start date in YYYY-MM-DD format (defaults to 30 days ago)
- to — End date in YYYY-MM-DD format (defaults to today)
- options — Additional options for the request
Output shape
A JSON object containing the channel's statistics
The exact fields returned depend on VidIQ's API; typically includes view counts, subscriber data, etc. No pagination; success returns the stats object, failure returns an error envelope.
Examples
Example 1: Fetch channel stats for a custom period
channelId: 'UCxyz123'; from: '2023-01-01'; to: '2023-12-31'; options: { timeout: 30000 }
Example 2: Get latest stats using default dates
channelId: 'UCabc456'