Revenue Analytics
youtube_revenueGet estimated revenue, CPM, monetized playbacks, and ad impressions for your YouTube channel. Optionally break down by day or month.
Instructions
Retrieve revenue and monetization metrics for the authenticated channel, including estimated revenue, CPM, monetized playbacks, and ad impressions. Optionally break down by day or month.
IMPORTANT: This tool requires:
The
yt-analytics-monetary.readonlyOAuth scope (included if you rannpm run authwith the default SCOPES).The channel must be enrolled in the YouTube Partner Program (monetized). If either condition is not met, the API returns HTTP 403.
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.dimension(optional):"none"(default, aggregate),"day", or"month".currency(optional): ISO 4217 three-letter currency code, e.g."EUR". Defaults to"USD".response_format(optional):"markdown"(default) or"json".
Returns (JSON shape):
{
"columns": ["estimatedRevenue", "estimatedAdRevenue", "grossRevenue", "cpm",
"playbackBasedCpm", "monetizedPlaybacks", "adImpressions"],
"rows": [[1234.56, 1100.00, 1300.00, 5.20, 4.80, 240000, 1500000]]
}When dimension is "day" or "month", the first column is the date string.
Examples:
"How much revenue did I make this month?" → pass appropriate date range.
"Daily revenue breakdown in EUR" →
dimension: "day", currency: "EUR".
Errors:
403: channel is not in the YouTube Partner Program, the
yt-analytics-monetary.readonlyscope was not granted, or YouTube Partner status is missing. Re-runnpm run authand ensure your channel is monetized.
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. | |
| dimension | No | Time grouping: "none" (default) for aggregate totals, "day" for per-day rows, "month" for per-month rows. | none |
| currency | No | ISO 4217 three-letter currency code for revenue figures, e.g. "USD" (default), "EUR", "GBP". | |
| response_format | No | Output format: "markdown" (default) for a human-readable table, "json" for the structured payload. | markdown |