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

The YouTube Reporting and YouTube Analytics APIs let you retrieve YouTube Analytics data to automate complex reporting tasks, build custom dashboards, and much more.

  • The Reporting API supports applications that can retrieve and store bulk reports, then provide tools to filter, sort, and mine the data.
  • The Analytics API supports targeted, real-time queries to generate custom reports in response to user interaction.

Understand your Audience

Channel owners

Retrieve reports to better understand viewing statistics and trends for your channel. The APIs support 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 APIs to retrieve reports that aggregate Analytics data for all YouTube channels linked to their accounts.

Find the Information You Really Want

Metrics and Dimensions

How frequently have your videos been viewed? How long do viewers typically spend watching a video? Are the numbers different for female viewers between 25 and 34 years old? How do viewing patterns differ in countries you're really focused on?

The APIs use dimensions and metrics to aggregate data and measure user activity.

Bulk reports
Targeted query reports

Other Resources

Sample Requests

See descriptions of many different sample YouTube Analytics API 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.