Reputation: 91
Is there a way to retrieve a json of all the tags used in a Youtube channel?
I'm trying to show all the videos of a channel on a website and I'd like to make a dropdown or something similar to filter the videos by tag.
If not possible directly, how can i parse the channel json to obtain a list of all the tags?
Thanks
EDIT
Ok, there's no way to retrieve it directly :(
I know I can get a json of the channel using the url http://gdata.youtube.com/feeds/api/users/google/uploads?&v=2&alt=jsonc (this is the example for Google channel) and each item has its tags.
Which is the best way to obtain a list of all the tags in another json (or in an array) removing duplicates?
Upvotes: 0
Views: 1372
Reputation: 1008
Have you looked at API here? To get json data you would add &alt=json-in-script to end of request. Eg.
https://gdata.youtube.com/feeds/api/channels?q=soccer&v=2&alt=json-in-script
Upvotes: 0
Reputation: 5685
There is no direct way to get that information, I'm afraid. You'll first need to get all videos uploaded to a channel, and then iterate through each video to get the tags.
Upvotes: 1