src/Youtube.php
public function searchVideos($q, $maxResults = 10, $order = null)
    {
        $params = array(
            'q' => $q,
            'type' => 'video',
            'part' => 'id, snippet',
            'maxResults' => $maxResults
        );
        if (!empty($order)) {
            $params['order'] = $order;
        }

        return $this->searchAdvanced($params);
    }
public function searchVideos($q, $maxResults = 10, $order = null)
    {
        $params = array(
            'q' => $q,
            'type' => 'video',
            'part' => 'id, snippet',
            'maxResults' => $maxResults
        );
        if (!empty($order)) {
            $params['order'] = $order;
        }

        return $this->searchAdvanced($params);
    }
public function searchVideos ( $ q , $ maxResults = 10 , $ order = null ) { $ params = array ( 'q' => $ q , 'type' => 'video' , 'part' => 'id, snippet' , 'maxResults' => $ maxResults ) ; if ( ! empty ( $ order ) ) { $ params [ 'order' ] = $ order ; } return $ this -> searchAdvanced ( $ params ) ; }
Search only videos

@param  string $q Query
@param  integer $maxResults number of results to return
@param  string $order Order by
@return \StdClass  API results
Search only videos