Using Youtube API to search for videos

PHP code which perfoms this search comes from Vikram's Vaswani article : Use the YouTube API with PHP.

Feed comes from 'http://gdata.youtube.com/feeds/api/videos', method called is 'q', number of returned results is set to 10. The parsing of the XML data is done by simplexml_load_file() function.

Code from here was used by me to develop PHP Simple YouTube API video Search project.

Select fields you want to get in results: Thumbnail Title Duration View count Rating Author's name Description
No fields to show selected.