"result": 0, "downloadlink": "https://e.pcloud.link/publink/getfile?code=k7Mv7XZabc123&filename=example.zip"
This returns a JSON with downloadlink – that link directly downloads the file. curl "https://api.pcloud.com/getpubliplink?code=k7Mv7XZabc123&forcedownload=1" Response:
https://e.pcloud.link/publink/getfile?code=<SHARE_CODE> Where <SHARE_CODE> is the value after ?code= in your original share link.