How to consume Youtube API using Power Automate
Most of the organizations adopted youtube in their digital marketing space, So to view the analytics of how it is improvising the marketing and what type of content users like, can be consumed via Youtube API. Google offers free analytics tools but here we have to show the data in Power Platform. For that, we have to consume Youtube API and the results can be used in any Power Platform software.
In this post, we will see how to get the youtube channel stats,
Google Cloud Platform is the home of all API’s and services offered by google, Google offers some free projects and API’s quota for new users.
Create a new project in the google console,
Select Enable API and Services, Search youtube and add YouTube Data API
Select Create Credentials, Generate API key for authorization,
Now the API environment is all set, now we have to consume it. In this example, we are going to get channel statistics. What to pass as input and how to create a request will be available on the API reference page.
Since it is a get request we can test in the browser directly,
https://www.googleapis.com/youtube/v3/channels?part=snippet%2Cstatistics&id=[Channel ID]&key=[API key]
Let’s test in Power Automate using an HTTP request,
This post is requested by a subscriber, Hope it clears on how to set up the API environment and consume the API. For any specific implementation kindly consult with us.
Please post your queries in the comment section. Happy Building 🙂