I have monetized videos on my YouTube channel. I use the below YouTube analytics API to get the revenue information from all my videos, including YouTube shorts, but how can I get the revenue information from the YouTube shorts separately?
The below API is used to get the views from YouTube videos and shorts using the dimension creatorContentType:
To retrieve revenue data for Shorts videos based on creator content type using the YouTube Analytics API, follow these steps:
Replace 'path/to/client_secret.json' with actual path, set start and end dates, and authorize YouTube Analytics and Content ID API access for revenue data retrieval.