Since Google now owns YouTube, perhaps their api includes options to include YouTube results?
- Search using Google's api.
- Search using YouTube's api.
- Merge the results in your application code (optional step, perhaps?)
- Output the results in desired format.
Or was there something more specific you needed to know?