Resolve a share link
resolve_share_linkUse this when the user pastes a cloud drive share link (Google Drive, Baidu Netdisk 百度网盘) or a social post link (YouTube, X or Twitter, Reddit, TikTok, Pinterest, Instagram, Threads, Facebook, LinkedIn, Telegram, Bilibili) and wants the files, a direct download or the canonical link. Pass url, or the whole share message; password is the Baidu extraction code (提取码) when sent apart from the link. A drive link returns its files with name, size and date, and Google Drive a direct_url with ready curl, aria2c and Aria2 or Motrix hand-off. A social link returns canonical_url: the platform's own form of the link, tracking parameters dropped, short links followed once. Public links only; private files are refused. Nothing stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The share link as the owner sent it, such as https://drive.google.com/file/d/<id>/view or https://pan.baidu.com/s/1<code>?pwd=abcd. | |
| password | No | The share's extraction code (Baidu 提取码), when the owner sent one apart from the link. A pwd= in the link is read on its own. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | Yes | ISO 8601 time the data was published by its source or fetched from it. A cached answer keeps the time of its fetch. | |
| files | Yes | ||
| title | Yes | ||
| source | Yes | Who the data comes from, to cite and to check it against. | |
| status | Yes | ||
| message | Yes | One plain sentence on what was found or what to do next. | |
| download | Yes | direct: direct_url works with curl. sign_in_required: the drive lists the files but serves bytes only to a signed-in account. | |
| provider | Yes | The registry id of the drive, such as google_drive or baidu. | |
| truncated | Yes | True when the share holds more entries than the answer lists. | |
| canonical_url | Yes | The link in the provider's own canonical form, read from a social share link or a short link's redirect. Null for a drive share, which resolves to files instead. |