It's also possible create an HTTP service that acts as a wrapper to yt-dlp with just a few lines of shell, I created this example in the following link:
https://dhuan.github.io/mock/latest/examples.html#youtube-do...