Get YouTube audience
get_youtube_audienceWho watches the workspace's YouTube channel, read live from YouTube for a date window: age and gender (share of viewers; YouTube only shares these for channels with enough viewers), countries (top 10 by views), devices, subscribed (views from subscribers vs. not) and traffic_sources (where views came from). Each slice has key, label, share (percent) and, where YouTube gives them, views. Without from/to it covers the channel's lifetime.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>"
},
"name": "get_youtube_audience"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date, ISO 8601. Optional; defaults to today. | |
| from | No | Start date, ISO 8601 (e.g. 2026-10-01). Optional. | |
| workspace_id | Yes | Workspace with a connected YouTube account. Get one from list_workspaces. |