You can create Playlist Converter Url with prefield playlist to convert or grabbing playlist from an external URL.
It is like a user use the text input playlist but the text input is already field.
If you have, for example, a website with playlist you can provide an export button.
Some examples using Node.js, javacsript in the browser and the general process to adapt to any language: