with Dolibarr and YouTube Analytics?
Retrieve detailed analytics for a specific video. See the documentation
Fetch summary analytics reports for a specified youtube channel. Optional filters include date range and report type. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dolibarr: {
type: "app",
app: "dolibarr",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.dolibarr.$auth.domain}/api/index.php/users/info`,
headers: {
"accept": `application/json`,
"dolapikey": `${this.dolibarr.$auth.api_key}`,
},
})
},
})
The YouTube Analytics API enables you to pull complex, insightful data regarding your YouTube channel's performance, audience demographics, and engagement metrics. It's a goldmine for content creators looking to refine their content strategy based on solid data. Using Pipedream, you can automate the extraction of these analytics, set up real-time alerts, or synchronize this data with other tools for enhanced reporting and decision-making.
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}`,
},
})
},
})