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
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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.