All Products
Search
Document Center

Drive and Photo Service:GetShareLinkByAnonymous

最終更新日:Aug 04, 2025

Queries the information about a share link anonymously.

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_by_anonymous HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo

The request parameters.

share_idstringYes

The share ID.

7JQX1FswpQ8

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

creator_idstring

The ID of the user who created the share link.

c9b7a5aa04d14ae3867fdc886fa01da4
creator_namestring

The name of the user who created the share link. The value is masked.

AB***CD
creator_phonestring

The mobile number of the user who created the share link. The value is masked.

136****00
expirationstring

The time when the share link expires.

2020-08-20T06:51:27.292Z
updated_atstring

The time when the share link was last modified.

2019-08-20T06:51:27.292Z
avatarstring

The profile picture of the user who created the share link.

https://aliyunpds.com/a.jpg
share_namestring

The name of the share link.

preview_countlong

The number of times that the shared files are previewed.

80
save_countlong

The number of times that the shared files are saved.

2
download_countlong

The number of times that the shared files are downloaded.

50
report_countlong

The number of times that the shared files are reported.

0
video_preview_countlong

The number of times that the videos are previewed in the shared files.

5
access_countlong

The number of times that the shared files are visited.

30
disable_previewboolean

Indicates whether the previews of the shared files are prohibited.

false
disable_saveboolean

Indicates whether the saves of the shared files are prohibited.

false
disable_downloadboolean

Indicates whether the downloads of the shared files are prohibited.

false
preview_limitlong

The maximum number of times that the shared files can be previewed.

100
save_limitlong

The maximum number of times that the shared files can be saved.

100
download_limitlong

The maximum number of times that the shared files can be downloaded.

100
save_download_limitlong

The maximum number of times that the shared files can be saved and downloaded.

200
has_pwdboolean

Indicates whether a password is specified for the share link.

true

Examples

Sample success responses

JSONformat

{
  "creator_id": "c9b7a5aa04d14ae3867fdc886fa01da4",
  "creator_name": "AB***CD",
  "creator_phone": "136****00",
  "expiration": "2020-08-20T06:51:27.292Z",
  "updated_at": "2019-08-20T06:51:27.292Z",
  "avatar": "https://aliyunpds.com/a.jpg",
  "share_name": "",
  "preview_count": 80,
  "save_count": 2,
  "download_count": 50,
  "report_count": 0,
  "video_preview_count": 5,
  "access_count": 30,
  "disable_preview": false,
  "disable_save": false,
  "disable_download": false,
  "preview_limit": 100,
  "save_limit": 100,
  "download_limit": 100,
  "save_download_limit": 200,
  "has_pwd": true
}

Error codes

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