Trying to figure out how YouTube’s one billion monthly users are interacting with your videos? Try the new YouTube Analytics API to get custom reports of the YouTube statistics you care about in a direct JSON or CSV response, perfect for dashboards and ad hoc reports. 

The new API includes all the standard view and engagement metrics you would expect, including views, shares, and subscriber numbers. Compared to the previous Insight Data API, you also get:
  • Watch metrics: Track estimated minutes watched across channel, content owner, or video, and dive into the video details with average view time and average view percentage.
  • Earning performance metrics: Track estimated earnings (net revenue) from select advertising sources across your content.
  • Ad performance metrics: Break down video performance with monetized playbacks, ad impressions, gross revenue, and cost per impression reports.
  • Annotation metrics: Optimize overlays/annotations with click through and close rate metrics.
Client Libraries and Code Samples
You’ll find client libraries for the languages you use most, with nine different languages available today. You can also make HTTP RESTful requests directly, and with our API Explorer, you can try out sample reports before writing any code.  

Don’t write your code from scratch! Get started with code examples in Java, JavaScript, Python, and Ruby. If you want a step-by-step walkthrough of building a complete web application, have a look at our JavaScript exercise.  

App Examples
Check out some apps that are already using the API: 

Next Big Sound
Next Big Sound
VidIQ
VidIQ
  • Next Big Sound provides analytics and insights for the music industry by tracking billions of social signals including YouTube. This enables record labels, artists, and band managers to make better decisions on everything from promotion strategies to tour locations.
  • vidIQ is an audience development suite that works with global brands to organically grow their views and subscribers. Their features include cross-platform social analytics, advanced comment management, SEO tools, social syndication and influencer identification. 
Wizdeo
Wizdeo
Vidyard
Vidyard













  • Wizdeo’s WizTracker provides in-depth analysis of YouTube channels to help with cross promotion and video comparisons during their initial launch. Users get access to detailed analytics about views, subscriber engagement, traffic sources and demographics.
  • Vidyard is a video marketing platform. With powerful analytics, built-in marketing tools, and integration with key marketing automation platforms, Vidyard helps marketers drive results with video content.  
Fullscreen
Fullscreen
  • Fullscreen is building a global network of YouTube channels with content creators and brands. Fullscreen provides a full suite of end-to-end YouTube tools and uses the new API for internal, business-intelligence tools.  

Learn More
In addition to the documentation, check out our Analytics API playlist to make getting started even easier.  



If your goal is to export all statistics for a large number of channels on a recurring basis for your data warehouse, look forward to using the upcoming scheduled reports feature of the API, expected to launch later this year.

To get more info on the YouTube APIs, subscribe to our YouTube for Developers’ channel and YouTubeDev on Google+. 

Cheers,
-- Ted Hamilton, Christoph Schwab-Ganser, and the YouTube Analytics API Team 

Author PhotoBy Mike Winton, Director of Developer Relations (Cross-posted from the Google Developers Blog)
Author PhotoBy Mike Winton, Director of Developer Relations
(Cross-posted from the Google Developers Blog)

At Google I/O 2013, we will share the future of our platforms with you. Developers from all over the world are the key innovators of powerful, breakthrough technologies, and that’s why we challenged ourselves to make the Google I/O experience available to every developer, everywhere.
Watch Google I/O live
From the comfort of your own home, office, secret lair, or anywhere you have a reliable Internet connection, you can stream Google I/O May 15-16 live. Brought to you by Google Developers Live (GDL), the Google I/O homepage will become the GDL at I/O live streaming hub starting on May 15th at 9:00 AM PT (16:00 UTC). From this page, you can:
  • Stream 4 channels of technical content on your computer, tablet, or phone. You’ll feel like you’re right there in the keynote and session rooms, listening to product announcements straight from the source. Live streaming will run on developers.google.com/io from 9 AM PT (16:00 UTC) to 7 PM PT (2:00 UTC) on May 15 and 16.
  • Watch exclusive interviews with the Googlers behind the latest product announcements. This year, GDL will be on site, broadcasting one-on-one product deep dives, executive interviews, and Sandbox walkthroughs from the GDL stage.
  • Get the latest news in real-time. We’ll be posting official announcements during I/O. You’ll be able to see the feed on the Google I/O homepage, in the I/O mobile app (coming soon), and on +Google Developers.
  • Never miss a session. All Google I/O technical sessions will be recorded and posted to GDL and the Google Developers YouTube channel. Subscribe to our YouTube channel for archived session updates.
Live blog the keynote
Grab our live blogging gadget to add the keynote live stream to your own site or blog. Customize the gadget with your site or blog name, live blog alongside real-time Google announcements, and share a dynamic Google I/O experience with your readers. Have questions? For more info, check out our live blogging gadget FAQ.

Get together locally
Experience Google I/O with your local developer community by hosting or attending an I/O Extended event. If you’re hosting, register here and learn how to hold a totally epic event with our handy Organizer Guide. Otherwise, with over 400 sites in 90+ countries, chances are good that there is an I/O Extended event near you. Find an event now!

And before I/O, tune in to Google Developers Live programming to connect with Google engineers, prep for this year’s event, and browse our archived content. For official conference updates, add +Google Developers to your Circles, follow #io13 for big announcements, join the Google I/O community, and keep an eye on the Google I/O site.

Mike Winton founded and leads Google's global Developer Relations organization. He also enjoys spending time with his family and DJing electronic music.




  • The basics
    • A broadcast represents a live event that you'll stream on YouTube. The API lets you schedule a broadcast, bind it to your live video stream, and update its status to testing, live, or complete.
    • A stream represents the actual broadcast content.
    • A cuepoint represents an ad break that can be inserted into a live broadcast. Cuepoints are only available to YouTube content partners.
The YouTube Live Streaming API makes it easier to build tools and apps for channels that are enabled to stream live content on YouTube. With the YouTube Live platform, you have the ability to real-time transcode to a range of video qualities that support a broad set of devices and networks, dynamic bandwidth adjustment so viewers automatically see the highest quality stream their network supports, and DVR-like controls to allow viewers to pause, fast forward, and rewind during a live stream.


How to start developing with live streams

  • The basics
    • A broadcast represents a live event that you'll stream on YouTube. The API lets you schedule a broadcast, bind it to your live video stream, and update its status to testing, live, or complete.
    • A stream represents the actual broadcast content.
    • A cuepoint represents an ad break that can be inserted into a live broadcast. Cuepoints are only available to YouTube content partners.

  • Documentation
    • The Getting Started guide explains these concepts in more detail and explains how they interact with other YouTube Data API and YouTube Content ID API resources.
    • The Life of a Broadcast guide walks you through the typical steps for creating and managing a live broadcast on YouTube.
    • The YouTube Live Streaming Guide identifies the encoder settings, bitrates, and resolutions that the YouTube Live Streaming platform supports.

  • Sample code and tools
    • Client libraries for many different programming languages can help you implement the YouTube Live Streaming API as well as many other Google APIs.
    • Don't write code from scratch! Our Java, PHP, and Python code samples will help you get started.
    • The APIs Explorer lets you try out sample calls before writing any code.

In addition, in this video, we talk about the philosophy we followed in building the API and also see some great demos from our partners.



Awesome examples

Here are a few great examples from developers already using the API:

Capella’s Cambria Live
Capella’s Cambria Live

  • Capella’s Cambria Live encodes live broadcasts in real time and streams them to YouTube Live. Cambria Live takes uncompressed broadcast video directly from a camera via SDI or HDMI and compresses it into the H.264 format with AAC audio, ensuring optimal video and audio quality.

Elgato Game Capture HD
Elgato

  • Elgato Game Capture HD enables you to stream PlayStation or Xbox gameplay to share it with your friends and fans as it happens. Elgato’s video products enable high-quality video recording and conversion for consumers and professionals alike.

XSplit
Radioline
XSplitRadioline
  • XSplit is a streaming and video-mixing application that is fun and easy to use. It is widely-used for streaming games.

  • Radioline designs and operates a cloud-based mobile internet radio. You can find or discover new radio stations according to their names, genres, areas or according to your favorite playlists.

This API is still experimental, so stay tuned here and subscribe to the YouTube for Developers channel to keep up on the latest.

Cheers,
-- Derek Tan, Satyajeet Salgar, and the YouTube Live Streaming API Team