As of July 2012, it seems to be working. But there is no guarantee that the apple will not change its scheme for creating them, and it is possible that they will consider this as a private API and reject your application. Therefore, use at your own risk .
URL has two important parameters: p
and t
. The first seems to identify the server, and the second identifies the actual file. A direct download link is made by connecting these values ββto this URL:
https://p[p]-ubiquityws.icloud.com/ws/file/[t]
Looking at your example:
https://www.icloud.com/documents/dl/?p=3&t=BAKsXkcDP-p8sdTS8NgBLWRQxE281oe4hogA
p
3
and t
- BAKsXkcDP-p8sdTS8NgBLWRQxE281oe4hogA
. So your direct download link will be
https://p3-ubiquityws.icloud.com/ws/file/BAKsXkcDP-p8sdTS8NgBLWRQxE281oe4hogA
Whenever I posted a link to iCloud, p
was 01
; so itβs possible that you may need a null value of your value, in which case your URL will be
https://p03-ubiquityws.icloud.com/ws/file/BAKsXkcDP-p8sdTS8NgBLWRQxE281oe4hogA
It would be great to know if this is necessary.
source share