YouTube API for Drupal on the Way!

Share this

I blogged briefly recently about YouTube's new and improved API. Soon thereafter, there was a flurry of discussion about creating a Google Summer of Code project to integrate it with Drupal, including a proposal that wasn't accepted, but I believe nothing further happened from that point.

Until now.

Brad Bowman (beeradb) has stepped up to the plate and created a YouTube API wrapper. He hasn't released it yet, though he indicated that he plans to early next week. I have had the honor of an early review, and it is nice to work with.

I set it up on a test server, and was able to upload a video to its file directory and have it also uploaded to YouTube, showing up in my user account almost immediately. The API also let me view my YouTube video user feed, so I could verify the results without leaving my site.

Additionally, when retrieving videos, you have access to everything stored at YouTube with that video, including video duration (as shown in the screen shot), description, and user comments.

The next step, after Brad releases the module, will be to integrate it with the other modules that can benefit from it: Embedded Media Field, Media Mover, and others.

The API itself is fairly easy to set up. You first need to get a Developer Key and Client ID from the YouTube Developer's Dashboard, and paste them into the administration screen for the module. Then you're off to go! It works out of the box from that point.

The module comes with an example page where you can test everything, although I expect that will be moved to an example module by the time of the release.

This is us moving one step closer to a semantic web, with interchangeable parts seamlessly woven together into a quilted garment that is no longer one-size-fits-all.

(And here's the video shown in the screenshot, if you're curious...)

youtube-api-demo.png114.02 KB


Jason's picture

The YouTube API

The YouTube Custom player API looks really good. Here's the link to it:

I'm lovin' this thing!

don's picture

We are getting ready to start

We are getting ready to start developing in Drupal but we have been researching the differences between Drupal an WordPress and the effects of CSS with both… Can anyone provide any feedback between the pros and cons of each? Thanks!

aaron's picture

Here you go...

Marco's picture

This must be a great mudule

Any news yet about the relaese of the module?

aaron's picture

RC on the way

I understand that a release candidate is just around the corner.

coolgames's picture

I think the Youtube API is a

I think the Youtube API is a good idea. You say that it is fast, easy, simple, and you didn't mention any bugs. Seems good to me. Cute video = ]

Anonymous's picture

Youtube API is going to be

Youtube API is going to be great for Drupal. It's great to be able to integrate YouTube's video content and fucntionality into a website.

Thanks, supreme buy

Claudio Cicali's picture

I once did the same thing

I hope you guys used Zend Framework API :)

aaron's picture

Out of Scope

We'd discussed the option, but decided against it, since it would require the installation of that library, which would also be a bit of an overkill for the needs of this module. However, the Zend Framework module does integrate that, and we've discussed adding optional support if that's installed.

Anonymous's picture

well i dont know

well i dont know

Rob Loach's picture

Great News!

Can't wait to have fun with the API! *cough*

Ryan's picture

Thanks for the post...

I love Silly Symphony cartoons. : )

Anyways, great news on the movement. I look forward to putting it good use in the future!

The Society for Venturism has chosen me as the recipient of its charity for this year, to hopefully offer me cryonic preservation when the time comes. And this month, Longecity, an excellent forum for the discussion of issues related to extending the lifespan of humans, has offered up a matching grant of up to a thousand dollars to help out! So help out! Please.