Hi
I am tryting to get Video Traffic search keywords but it is returning null. Below is the code
var client = new RestClient("googleapis.com/youtube/analytics/v1/reports");
var request = new RestRequest("query", Method.GET);
request.AddParameter("metrics", "views");
request.AddParameter("dimensions", "insightTrafficSourceType,insightTrafficSourceDetail");
request.AddParameter("key", "AKTJSLLSHYGSJGJS8");
request.AddParameter("dimensions", "insightTrafficSourceType,insightTrafficSourceDetail");
var response = client.Execute(request);
Thanks
Ramco RamcoPosted Apr 15, 2024, 3:35 PM
Hi
I have below code but it is giving error on this line
dynamic videoListData = JsonConvert.DeserializeObject(videoListResponse.Content);
Vijay Pratap SinghPosted Apr 15, 2024, 5:57 AM
Hello Ramco,
It seems like you're trying to retrieve analytics data for a YouTube channel using the YouTube Analytics API. However, the code snippet you provided is for fetching analytics data, not metadata like video titles, descriptions, etc.
To get video metadata such as video ID, title, description, etc., you would need to use the YouTube Data API instead of the YouTube Analytics API.
To retrieve metadata for all videos in a YouTube channel, you'll need to perform two steps:
Ramco RamcoPosted Apr 14, 2024, 4:02 AM
Hi
I have below code but how i can get Video Id , Video Title , Description , Search Key words , Likes,comments etc.
Thanks
Vijay Pratap SinghPosted Apr 13, 2024, 2:32 PM
Hello Ramco,
you can retry with these modifications:
The URL you provided seems incomplete. It should include the protocol (e.g., "https://") and the domain (e.g., "www.googleapis.com").
You're sending duplicate "dimensions" parameters in your request.
You need to specify the "ids" parameter to indicate which channel or content you want to get analytics data for.
You need to authenticate your request using an API key or OAuth token.
hope this will help.