Audience Demographics
youtube_audience_demographicsRetrieve age group and gender distribution of your channel's viewers, showing viewer percentage per demographic segment. Get data for a custom date range.
Instructions
Retrieve the age group and gender distribution of the channel's viewers, expressed as percentages of total viewership.
Args:
startDate(optional): Inclusive start date inYYYY-MM-DDformat. Defaults to 28 days ago.endDate(optional): Inclusive end date inYYYY-MM-DDformat. Defaults to today.response_format(optional):"markdown"(default) or"json".
Returns (JSON shape):
{
"columns": ["ageGroup", "gender", "viewerPercentage"],
"rows": [
["age25-34", "male", 23.5],
["age18-24", "female", 18.2],
...
]
}Examples:
"What is my audience demographics?" → call with no arguments.
"Demographics for Q1 2025" → pass matching
startDate/endDate.
Errors:
403: insufficient scope or the channel has insufficient data — re-run
npm run auth.rows empty: channel may not have enough viewership data to surface demographics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startDate | No | Inclusive start date in YYYY-MM-DD format. Defaults to 28 days ago. | |
| endDate | No | Inclusive end date in YYYY-MM-DD format. Defaults to today. | |
| response_format | No | Output format: "markdown" (default) for a human-readable table, "json" for the structured payload. | markdown |