YouTube (Analytics API) - Custom App

Connect to the YouTube Analytics API with a custom OAuth client

Go to site
Explore
/
Apps
/
YouTube (Analytics API) - Custom App

YouTube (Analytics API) - Custom App API Integrations

Build and run workflows using the YouTube (Analytics API) - Custom App API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

The YouTube Analytics API is an incredibly powerful tool for developers and businesses. This API allows developers to access rich statistics about their YouTube channel and videos, allowing them to create custom applications and tools to better understand their viewers, customers, and markets. With the YouTube Analytics API, you can build:

  • Analytics dashboards that display insights from various YouTube data sources
  • Custom reports with data from specific YouTube searches or channels
  • Interactive data visualizations to better understand critical trends
  • Automated tools for monitoring and measuring success
  • Alerts for tracking changes in channel engagement
  • Applications to identify and track influencers in the market
  • Machine learning models to detect trends based on user data
  • And much more.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    youtube_analytics_api_custom_app: {
      type: "app",
      app: "youtube_analytics_api_custom_app",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.googleapis.com/oauth2/v1/userinfo`,
      headers: {
        Authorization: `Bearer ${this.youtube_analytics_api_custom_app.$auth.oauth_access_token}`,
      },
    })
  },
})

Choose an API to Connect with YouTube (Analytics API) - Custom App API

1
-
12
of
1000+
apps by most popular

Authentication

YouTube (Analytics API) - Custom App uses OAuth authentication. When you connect your YouTube (Analytics API) - Custom App account, Pipedream will open a popup window where you can sign into YouTube (Analytics API) - Custom App and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any YouTube (Analytics API) - Custom App API.

Pipedream requests the following authorization scopes when you connect your account:

emailprofilehttps://www.googleapis.com/auth/yt-analytics-monetary.readonlyhttps://www.googleapis.com/auth/yt-analytics.readonly
OAuth Request Configurations:
  1. authorization
    GEThttps://accounts.google.com/o/oauth2/v2/auth?client_id={{custom_fields.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}&prompt=consent&access_type=offline
  2. accessToken
    POSThttps://oauth2.googleapis.com/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://oauth2.googleapis.com/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}