All Products
Search
Document Center

Drive and Photo Service:GetShareLink

Last Updated:Mar 21, 2025

Queries the share URL of a file.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v2/share_link/get HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo

The request parameters.

share_idstringYes

The share ID.

7JQX1FswpQ8

Response parameters

ParameterTypeDescriptionExample
ShareLink

The data returned.

Examples

Sample success responses

JSONformat

{
  "share_id": "7JQX1FswpQ8",
  "share_pwd": "abcF123x",
  "drive_id": "1",
  "file_id_list": "[\"520b217f13adf4fc24f2191991b1664ce045b393\"]",
  "expiration": "2020-06-28T11:33:00.000+08:00",
  "expired": false,
  "created_at": "2019-08-20T06:51:27.292Z",
  "updated_at": "2019-08-20T06:51:27.292Z",
  "description": "videos",
  "share_name": "video-1.MP4",
  "creator": "c9b7a5aa04d14ae3867fdc886fa01da4",
  "status": "enabled",
  "preview_count": 10,
  "save_count": 2,
  "download_count": 5,
  "report_count": 0,
  "video_preview_count": 1,
  "access_count": 4,
  "disable_preview": false,
  "disable_save": false,
  "disable_download": false,
  "preview_limit": 100,
  "save_limit": 100,
  "download_limit": 100,
  "require_login": false,
  "share_all_files": true,
  "share_msg": ""
}

Error codes

For a list of error codes, visit the Service error codes.