Is it possible? yes.
Is it Practical? no.
No, because you're dealing with data retrieval and manipulation. I mean client-side scripting is responsible for displaying data and intermediary between browser(front-end) and database(back-end). It is also handles browser functions such as alerts, effects, embedding objects, and etc. Data retrieval and manipulation is handled by server-side scripting such as PHP, Perl, Ruby on Rails, ColdFusion, ASP, and etc.
Here is a link which helped me to learn to use youtube API: