Remotely accessing shared data


I have a question about remotely accessing shared data hosted on NextCloud.

I am trying to automate extracting data from password protected nextcould links that have been shared with a colleague. I have the link and the password, but would like to bypass using a web interface and pull the data directly into my VM. Can anyone point me in the right direction for how to figure this out?