Guldstrand Posted July 24, 2009 Share Posted July 24, 2009 Is there a quick and easy way to search youtube.com for videos (with "file_get_contents" or something) and then "auto embed" them on my site? Like: 1. file_get_contents("http://www.youtube.com/results?search_query=$variabel&search_type=&aq=f"); 2. Grab all results and then show it on my site. This is for a rather small site with artists, and i want to be able to grab videos from youtube.com, and then display the video(s) on the artists page. Quote Link to comment Share on other sites More sharing options...
vineld Posted July 24, 2009 Share Posted July 24, 2009 If you do so on the fly it will NOT be popular. I think Youtube has some API that might be worth looking into? Quote Link to comment Share on other sites More sharing options...
Guldstrand Posted July 24, 2009 Author Share Posted July 24, 2009 If you do so on the fly it will NOT be popular. I think Youtube has some API that might be worth looking into? Sure.. i can understand that. But i can´t find any API that can do this. Any suggestions? Quote Link to comment Share on other sites More sharing options...
noober Posted July 24, 2009 Share Posted July 24, 2009 How about this? http://code.google.com/apis/youtube/getting_started.html Quote Link to comment Share on other sites More sharing options...
ldougherty Posted July 25, 2009 Share Posted July 25, 2009 The Data API allows a program to perform many of the operations available on the YouTube website. It is possible to search for videos, retrieve standard feeds, and see related content. http://code.google.com/apis/youtube/getting_started.html#data_api Quote Link to comment Share on other sites More sharing options...
Guldstrand Posted July 25, 2009 Author Share Posted July 25, 2009 The Data API allows a program to perform many of the operations available on the YouTube website. It is possible to search for videos, retrieve standard feeds, and see related content. http://code.google.com/apis/youtube/getting_started.html#data_api Yes, i´ve read that allready. But i´m not so sure on how to use it. Care to explain, (or even better) show me some code? Quote Link to comment Share on other sites More sharing options...
vineld Posted July 25, 2009 Share Posted July 25, 2009 I think it would be better for you to read up on it yourself. Here's how to go about using php for example: http://code.google.com/apis/youtube/2.0/developers_guide_php.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.