Runs a YouTube Analytics revenue report for your monetized channel: estimated revenue, ad revenue, CPM and ad impressions by day, month, video or country.
curl -X POST "https://api.primaryapi.com/v1/run/youtube.revenue_report" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"startDate":"2026-09-01","endDate":"2026-10-31","metrics":["views","estimatedRevenue","cpm"],"dimensions":["month"],"sort":[{"field":"month"}],"currency":"EUR"}'{
"output": {
"found": true,
"data": {
"channel": "MINE",
"currency": "EUR",
"nextCursor": null,
"rows": [
{
"views": 41250,
"estimatedRevenue": 162.37,
"cpm": 6.12,
"month": "2026-09"
}, …
], …
}
},
"credits": 1
}Input and output
11 fields
2026-09-01.2026-10-31.["views","estimatedRevenue","cpm"].["month"].[{"field":"month"}].EUR.5 fields
Good to know
Runs as your connected Google account. Needs the Read YouTube revenue capability.
Include at least one revenue or ad metric (estimatedRevenue, estimatedAdRevenue, estimatedRedPartnerRevenue, grossRevenue, cpm, adImpressions, monetizedPlaybacks, playbackBasedCpm). Views and watch time may be added.
Only channels in the YouTube Partner Program have revenue. Any other channel answers found: false with reason not_monetized. A miss is an answer, not an error.
Revenue figures are YouTube’s estimates. Adjusted at month end, converted at daily exchange rates when currency is not USD.
The same key and credits work for every API.