Support Forums

Support for Netlify functions

Support for Netlify Lambda Functions

Hi, I want to know if it is possible to use youtube-dl in a Netlify function, can anyone answer that.

Hi @Abdul_Samad

In short, no.

As per the docs

Currently, you can deploy serverless functions built with JavaScript, TypeScript, and Go.

As youtube-dl is a python script, it won’t work. (See thread: https://answers.netlify.com/t/python-lambda-functions/3423.)

However as serverless functions have a 10 second execution limit you would have little chance in downloading much. Add to this the fact there is nowhere to download to, no file system per se. And I’m not sure such an activity would pass the Terms of Use or Self-Serve Subscription Agreement.

Hope this helps.