Retrieve viewing statistics, popularity metrics, and more for YouTube videos and channels.

Get the Most Out of Your Data

Learn what YouTube Analytics can do

With the YouTube Analytics API, you can automate complex reporting tasks, build custom dashboards, and much more. Use the API to retrieve viewing statistics, popularity metrics, and demographic information for channels, videos, and playlists.

Understand your Audience

Channel owners

Retrieve reports to better understand viewing statistics and trends for your channel. The API supports a variety of video and playlist reports that offer insight about your viewers.

Content owners

Content owners in the YouTube Partner Program can use the API to retrieve reports that aggregate Analytics data for all YouTube channels linked to their content owner accounts.

Find the Information You Really Want

Metrics and Dimensions

How many times have your videos been viewed? Or how long do viewers typically spend watching a video? Are the numbers different for female viewers between 25 and 34 years old? Or in whichever countries you're really focused on?

The API provides numerous metrics to measure user activity and dimensions to aggregate data.

Other Resources

Sample Requests

See descriptions of many different sample requests and link to the APIs Explorer to retrieve the data for your own channel, video, or playlist.

Define Reporting Groups

A YouTube Analytics group is a custom collection of up to 200 channels, videos, playlists, or assets. Groups let you easily aggregate data to analyze performance.

Code Samples

Use our code samples to jump-start your project. Samples are available for Apps Script, Java, JavaScript, Python, and Ruby.