|
| 1 | +--- |
| 2 | +icon: iconfont icon-api |
| 3 | +order: 62 |
| 4 | +category: |
| 5 | + - Guide |
| 6 | +tag: |
| 7 | + - Storage |
| 8 | + - Guide |
| 9 | + - 123 Open |
| 10 | +sticky: true |
| 11 | +star: true |
| 12 | +author: Qianshi (okatu-loli) |
| 13 | +--- |
| 14 | + |
| 15 | +# 123 Open (Open Platform) |
| 16 | + |
| 17 | +`123 Open` is an open platform API provided by 123YunPan (123 Cloud Drive), which allows mounting and access within Alist using key-based authentication. |
| 18 | + |
| 19 | +It supports file browsing, uploading, previewing, downloading, and file management. Alist also automatically maintains the token lifecycle. |
| 20 | + |
| 21 | +::: warning Paid Features Required |
| 22 | +Basic features like file listing are free, but **direct link functionalities (e.g., preview, download) require paid open platform access**. |
| 23 | + |
| 24 | +Please visit [123YunPan](https://www.123pan.com/) to purchase the "VIP" service and go to the [123 Open Platform](https://www.123pan.com/developer) to create an application and obtain your credentials (Client ID and Client Key). |
| 25 | +::: |
| 26 | + |
| 27 | +::::: tabs#123 Open |
| 28 | + |
| 29 | +@tab Integration Guide |
| 30 | + |
| 31 | +## Integration Guide |
| 32 | + |
| 33 | +To mount 123YunPan resources to Alist using `123 Open`, complete the following steps: |
| 34 | + |
| 35 | +### Prerequisites |
| 36 | + |
| 37 | +- You have a registered and logged-in 123YunPan account |
| 38 | +- You have created an application at the [123YunPan Open Platform](https://www.123pan.com/developer) and obtained: |
| 39 | + - **Client ID** |
| 40 | + - **Client Key** |
| 41 | +- (Optional) You have subscribed to the "VIP" service to enable advanced features such as direct links |
| 42 | + |
| 43 | +::: warning Notes |
| 44 | +During the mounting process, Alist will use the `Client ID` and `Client Key` to automatically obtain and maintain an access token in the background, without user intervention. |
| 45 | + |
| 46 | +This process happens locally, with no third-party relay, so there is **no risk of privacy leakage**. |
| 47 | +However, please keep your `Client ID` and `Client Key` safe to avoid exposure. |
| 48 | +::: |
| 49 | + |
| 50 | +--- |
| 51 | + |
| 52 | +@tab Direct Link Settings |
| 53 | + |
| 54 | +## Configure Direct Link Space (for Preview/Download) |
| 55 | + |
| 56 | +::: danger Required Setting |
| 57 | +If Direct Link Space is not enabled, Alist cannot generate preview or download links. |
| 58 | +::: |
| 59 | + |
| 60 | +### 1. Enable Direct Link Space |
| 61 | + |
| 62 | +Visit [123YunPan](https://www.123pan.com/) and follow these steps: |
| 63 | + |
| 64 | +1. Locate the target folder and right-click it |
| 65 | +2. Click **Enable Direct Link Space** |
| 66 | +3. After enabling, the directory will show a direct link icon 🔗 |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | +### 2. Get Folder ID |
| 71 | + |
| 72 | +1. Enter the folder |
| 73 | +2. The Folder ID is the last part of the URL in your browser's address bar |
| 74 | +3. Use this ID in Alist as the mount directory |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +@tab Feature Support |
| 79 | + |
| 80 | +## Feature Support Details |
| 81 | + |
| 82 | +The following features are currently supported by the `123 Open` driver: |
| 83 | + |
| 84 | +### ✅ Supported Features |
| 85 | + |
| 86 | +- 📁 **Browse files/folders** |
| 87 | +- 📥 **Download / Preview** (requires direct link enabled) |
| 88 | +- 📤 **Upload files** (supports instant and chunked upload) |
| 89 | +- 🗂️ **Create folders** |
| 90 | +- ✏️ **Rename** |
| 91 | +- 🗃️ **Move files/folders** |
| 92 | +- 🗑️ **Delete** |
| 93 | +- 🔐 **Automatic token acquisition and refresh** |
| 94 | + |
| 95 | +::: tip Upload Note |
| 96 | +If the uploaded file does not include a complete hash, Alist will cache the file and calculate the MD5 automatically. |
| 97 | +::: |
| 98 | + |
| 99 | +### ⚠️ Unsupported Features |
| 100 | + |
| 101 | +::: warning The following features are not currently supported: |
| 102 | + |
| 103 | +- ❌ Copy files/folders |
| 104 | +- ❌ Online compression/decompression |
| 105 | +- ❌ Archive (batch) download |
| 106 | + ::: |
| 107 | + |
| 108 | +::: danger Root Directory Limitation |
| 109 | +Although the root directory (ID = 0) can be mounted, **direct link features such as preview, video playback, or image viewing are not available in the root directory**. |
| 110 | + |
| 111 | +It is recommended to mount a **subfolder with Direct Link Space enabled**. |
| 112 | +::: |
| 113 | + |
| 114 | +--- |
| 115 | + |
| 116 | +::::: |
| 117 | + |
| 118 | +## Default Download Method |
| 119 | + |
| 120 | +```mermaid |
| 121 | +--- |
| 122 | +title: Default Download Method |
| 123 | +--- |
| 124 | +flowchart TB |
| 125 | + style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff |
| 126 | + style a2 fill:#ff7575,stroke:#333,stroke-width:4px |
| 127 | + subgraph ide1 [ ] |
| 128 | + a1 |
| 129 | + end |
| 130 | + a1[302]:::someclass====|Default|a2[User Device] |
| 131 | + classDef someclass fill:#f96 |
| 132 | + c1[Local Proxy]-.Alternative.->a2[User Device] |
| 133 | + b1[Proxy URL]-.Alternative.->a2[User Device] |
| 134 | + click a1 "../drivers/common.html#webdav-strategy" |
| 135 | + click b1 "../drivers/common.html#webdav-strategy" |
| 136 | + click c1 "../drivers/common.html#webdav-strategy" |
0 commit comments