How to get youtube trends of most popular or most viewed by country wise in Json.
Previously using youtube feeds v2. It seems deprecated, https://gdata.youtube.com/feeds/api/standardfeeds/IN/most_popular?v=2
Can I get youtube api v3 or any other result like the trends dashboard, https://www.youtube.com/trendsdashboard
As per YouTube guidelines, YouTube Feeds v2, is now deprecated. You should work with YouTube Data API v3.
For the most popular video:
https://www.googleapis.com/youtube/v3/videos?part=contentDetails&chart=mostPopular®ionCode=IN&maxResults=25&key=API_KEY
part:
id, snippet, contentDetails, fileDetails, liveStreamingDetails, localizations, player, processingDetails, recordingDetails, statistics, status, suggestions, and topicDetails
chart:
mostPopular
regionCode:
key:
maxResults : Default value 5 ,
Read More
Save file as
.js
And in
HTML
file makediv
orul
byid="trending"
like:
The check your out put.
API KEY