Get revenue (OAuth, monetized channels)
get_revenueRetrieve estimated YouTube channel revenue, ad revenue, gross revenue, and CPM by date range and currency; returns an unavailable reason if the channel is not monetized or OAuth lacks monetary scope.
Instructions
Estimated revenue, ad revenue, gross revenue and CPM for your channel.
Returns available=false with the reason if the channel is not monetized or the token lacks the monetary scope. Requires OAuth.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_revenue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | When no dates are given: the last N days ending today. | |
| currency | No | ISO 4217 currency code, e.g. USD. | USD |
| end_date | No | End date YYYY-MM-DD, inclusive. | |
| start_date | No | Start date YYYY-MM-DD, inclusive. Omit both dates to use `days`. | |
| granularity | No | total, day, or month. | total |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||