Wednesday, March 16, 2011

YouTube Video Crawling

Hi Guys,

I got the chance to work on YouTube API so thought that I should share the useful links so that it saves your time.
  1. YouTube API
    http://code.google.com/apis/youtube/getting_started.html#data_api
  2. Get search term feed
    http://gdata.youtube.com/feeds/api/videos?q=internet&v=2 (include the video id also)
  3. PHP Guide
    http://code.google.com/apis/youtube/2.0/developers_guide_php.html
  4. YouTube API with PHP
    http://www.ibm.com/developerworks/xml/library/x-youtubeapi/
  5. API Parameters
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html#Searching_for_Videos
  6. Guide to display Videos
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_displaying_list_of_videos.html
  7. Custom YouTube Video Player
    http://tutorialzine.com/2010/07/youtube-api-custom-player-jquery-css/
 Hope this links help you to save your time :)

6 comments:

Anonymous said...

Hello

Good Job

can you please tell me how to use YouTube Video Crawling with example

thanks

Ravi said...

Hi,

Thanks for comment, but I think I there is an example in the step 4.

Let me know if you need further clarification.

Thanks

Anonymous said...

Hi
Thanks for replay. I have try but search by keyword is not running .

Ravi said...

Use "http://gdata.youtube.com/feeds/api/videos?q=keyword&v=2" as your feed url in step 4 :)

blogspot.com said...

Hi

Thanks for replay.

I have got this URL : http://gdata.youtube.com/feeds/api/videos/-/cricket ?orderby=viewCount&max-results=10

I have copy this URL and paste this URl in another tab but it is not working.

And Please tell me how to run this code on localhost.
I am working on PHP 5.3 .Please solve my problem

thanks

Ravi said...

Hi,

If you run your URL(http://gdata.youtube.com/feeds/api/videos/-/cricket%20?orderby=viewCount&max-results=10) in Mozilla then it will give you Zero result.

Use the exact syntax i.e. http://gdata.youtube.com/feeds/api/videos?q=cricket&v=2&max-results=10.

It is giving the result.

Try it and get the result in the browser first and then move ahead with code.

Post a Comment