Do you need YouTube API key?

Hi,
do you really need a YouTube API key for a youtube.groovy plugin to work? How do I obtain such a key for free?
Is this code up-to-date?
do you really need a YouTube API key for a youtube.groovy plugin to work? How do I obtain such a key for free?
Is this code up-to-date?