search youtube videos with google library
function search($term) $term = urlencode($term); $youtube = file_get_contents("http://www.youtube.com/results?search_query={$term}"); //you could also add a better way to parse the data, but this is just an example return $youtube; search("funny cat videos");