How to search for youtube channels in a given country - youtube-api

I was wondering if there is a way for search for YouTube channels in a specific country?
I need to find channels in Germany, so i was trying with regionCode=DE, but it doesn't seem to work:
https://developers.google.com/youtube/v3/docs/search
I used:
part=snippet
type=channel
regionCode=DE
Do you have another ideas how to search for channels from specific country ?
Thanks in advance for reply!
Robert

Related

YouTube API V3 difficulties while fetching top channels based on specific country

I want to fetch top channels (i.e top 10,100,150 channels) based on their subscribers and view count for specific country, How can I do that?
I have tried to use
https://www.googleapis.com/youtube/v3/search
but there is not any way found to fetch/search top YouTube channels with this API call, and not other way found for my need
Note: Tried regionCode parameter but that's not for filter the channels it fetching based on videos viewing in specific country
Thank you for your help in advance
What you want to do is not currently possible with this api.
search.list
Supports searching on a single region code
The Q paramater only does a fulltext search on the description and title of the video
There is no way to sort on either channels or subscribers.

Query YouTube API for most liked videos

I am experimenting with YouTube's API, and I am trying to figure out how to return an ordered list of videos by the most number of likes.
I know I can access the number of likes using the video list query, but that is not going to get me what I need.
I need the search query response to have the videos already sorted by most liked.
Is there any query to the API that will do that?
Thanks,
Nathan
The YouTube API does not support ordering video search results by likes.
Order by rating order=rating and number of results with maxResults= For example:
fetch(`https://www.googleapis.com/youtube/v3/search?&channelId=${CHANNEL_ID}&maxResults=1&order=rating&type=video&key=${API_KEY}`)

How can I retrieve the country of a YouTube-channel using the YouTube API 3.0?

I need to analyze channels based on country. In the YouTube API 2.0, the country was listed in the channel feed (location-attribute). In 3.0, this attribute is gone.
Is there any hope of the location-attribute returning to the channel-feed (https://www.googleapis.com/youtube/v3/channels/)? Is there any workaround to retrieve country information? I already tried a suggestion on SO about the GuideCategories, which are completely useless for my purposes. I need to match country data to individual channels, not find a list of channels in a certain country.
Also, is there any way to request this as a feature to Google?

What is the best YOU TUBE API to search videos by keyword in IOS

I want to search you tube videos by keyword using YOU TUBE API.
Is there any YOU TUBE API's with best results..while searching for videos.
I used YOU TUBE API V2 using below link
https://gdata.youtube.com/feeds/api/videos/-/fun?v=2&alt=jsonc&start-index=1
But it is not accurate..
Any Suggestions will be appreciated..
Thanks in Advance...
Your current search feed is not searching for videos whose metadata contains the word 'fun,' but is searching instead for videos where the category metadata contains the word 'fun' " (that's why the results are all in the Entertainment, Games, etc. categories). So instead, in V2, you'd want to send a query string:
https://gdata.youtube.com/feeds/api/videos?q=fun&v=2&alt=jsonc&start-index=1
However, the 'best results' that you ask for will be achieved through the v3 search endpoint:
https://www.googleapis.com/youtube/v3/search?part=snippet&q=fun&maxResults=50&key={YOUR_API_KEY}

Search for Youtube videos by town

I'm using Youtube Api v3 and I want to search for video by their city of origin.
But in the documentation for the filter, it only covers how to see the videos from a specific country.
How can I narrow the search?
Currently, filtering by town is not supported, we hope to have it back soon.

Resources