Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YouTube Analytics and Reporting API `creatorContentType` dimension breaking requests

$
0
0

I'm hitting the https://youtubeanalytics.googleapis.com/v2/reports API endpoint to retrieve the following metrics for a set of YouTube videos.

https://youtubeanalytics.googleapis.com/v2/reports?endDate=2025-10-20&ids=channel%3D%3DMINE&metrics=views,redViews,comments,likes,dislikes,videosAddedToPlaylists,videosRemovedFromPlaylists,shares,estimatedMinutesWatched,estimatedRedMinutesWatched,averageViewDuration,averageViewPercentage,annotationClickThroughRate,annotationCloseRate,annotationImpressions,annotationClickableImpressions,annotationClosableImpressions,annotationClicks,annotationCloses,cardClickRate,cardTeaserClickRate,cardImpressions,cardTeaserImpressions,cardClicks,cardTeaserClicks,subscribersGained,subscribersLost&startDate=2025-10-01&dimensions=video,day,creatorContentType

The above request, with dimensions video,day,creatorContentType seems to work only with the following metrics:

views,redViews,comments,likes,dislikes,shares,estimatedMinutesWatched,estimatedRedMinutesWatched,averageViewDuration,averageViewPercentage,cardClickRate,cardTeaserClickRate,cardImpressions,cardTeaserImpressions,cardClicks,cardTeaserClicks,subscribersGained

It does NOT work if any of the following metrics are included:

videosAddedToPlaylists,videosRemovedFromPlaylists,annotationClickThroughRate,annotationCloseRate,annotationImpressions,annotationClickableImpressions,annotationClosableImpressions,annotationClicks,annotationCloses

This is the error received if any of those metrics are included in the request:

{"error": {"code": 400,"message": "The query is not supported. Check the documentation at https://developers.google.com/youtube/analytics/v2/available_reports for a list of supported queries.","errors": [            {"message": "The query is not supported. Check the documentation at https://developers.google.com/youtube/analytics/v2/available_reports for a list of supported queries.","domain": "global","reason": "badRequest"            }        ]    }}

This seems at odds with the Channel Reports documentation here that suggests in multiple places that the creatorContentType dimension should be compatible with all the desired metrics for this use case. Seeking any clarification or help on this! Thank you!


Viewing all articles
Browse latest Browse all 3831

Trending Articles