Geography Analytics
youtube_geographyAnalyze your YouTube channel's audience by country, showing views, watch time, and average view duration per location.
Instructions
Break down views, watch time, and average view duration by country for the authenticated channel.
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.maxResults(optional): Number of countries to return (1–50, default 25).response_format(optional):"markdown"(default) or"json".
Returns (JSON shape):
{
"columns": ["country", "views", "estimatedMinutesWatched", "averageViewDuration"],
"rows": [["US", 10000, 45000, 270], ["IN", 8000, 30000, 225], ...]
}Examples:
"Where are my viewers located?" → call with no arguments.
"Top 10 countries by views this month" →
maxResults: 10with appropriate dates.
Errors:
403: insufficient scope — re-run
npm run auth.
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. | |
| maxResults | No | Number of countries to return (1–50). Defaults to 25. | |
| response_format | No | Output format: "markdown" (default) for a human-readable table, "json" for the structured payload. | markdown |