Jump to content

Search AND grab videos from youtube.com?


Guldstrand

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/167327-search-and-grab-videos-from-youtubecom/
Share on other sites

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.  :shy:

 

Care to explain, (or even better) show me some code?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.