Hi
I want to get Youtube search keywords , Suggested Videos of all my videos.
Thanks
Hi
I want to get Youtube search keywords , Suggested Videos of all my videos.
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naimish MakwanaPosted Apr 2, 2024, 11:48 AM
To get YouTube search keywords and suggested videos in C#, you can use the YouTube Data API. Here’s a basic example of how you can do this:
This code will search for videos on YouTube using the specified keywords and print the title and video ID of each search result1.
Please replace
"YOUR_API_KEY"and"YOUR_APPLICATION_NAME"with your actual API key and application name. Also, replace"YOUR_SEARCH_KEYWORDS"with the keywords you want to search for.Remember, you need to install the
Google.Apis.YouTube.v3NuGet package to your project before you can use theYouTubeService1.As for getting the suggested videos, YouTube Data API does not provide a direct way to fetch them. These are generated dynamically by YouTube based on various factors like user’s watch history, trending videos, etc.
Thanks