The YouTube Reporting and YouTube Analytics APIs let you retrieve YouTube Analytics data to automate complex reporting tasks, build custom dashboards, and much more.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Google's YouTube (Analytics API) allows developers to extract insights and
valuable analytics data from their YouTube channels. By using the YouTube
Analytics API, developers can create comprehensive reports and analysis tools
that show how content is performing on YouTube. With this powerful API,
developers can create applications that measure audience engagement, understand
how videos impact an audience’s behavior, and analyze how audience demographic
influences viewership.
Below are just a few examples of the powerful and comprehensive analytics
solutions you can build with the YouTube (Analytics API):
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
youtube_analytics_api: {
type: "app",
app: "youtube_analytics_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.youtube_analytics_api.$auth.oauth_access_token}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})