Reset Password
Check your e-mail for further instructions.
Reset
This method can't be used from web applications. Referrer is restricted to pcloud.com.
Name
getpubaudiolink
Auth
no
Description
Create a link to a audio file of a public link file. The link could be used for streaming.
Same as getaudiolink, but works on public file identified by code (and fileid if link is to a folder)
The code could be obtained from:
URL
https://api.pcloud.com/getpubaudiolink
Required
| Parameter | Description |
| code | string either 'code' or 'shortcode' |
Optional
| Parameter | Description |
| fileid | int id of the file, if the public link is to a folder |
| forcedownload | int Download with Content-Type = application/octet-stream |
| contenttype | string Set Content-Type |
| abitrate | int audio bit rate in kilobits, from 16 to 320 |
| Code | Description |
| 1000 | Log in required. |
| 1004 | No fileid or path provided. |
| 1005 | Unknown content-type requested. |
| 1028 | Please provide link 'code'. |
| 1029 | Please provide 'fileid'. |
| 2000 | Log in failed. |
| 2002 | A component of parent directory does not exist. |
| 2009 | File not found. |
| 2010 | Invalid path. |
| 2044 | Video links can only be generated for videos. |
| 4000 | Too many login tries from this IP address. |
| 5002 | Internal error, no servers available. Try again later. |
| 7001 | Invalid link 'code'. |
| 7002 | This link is deleted by the owner. |
| 7004 | This link has expired. |
| 7005 | This link has reached its traffic limit. |
| 7006 | This link has reached maximum downloads. |