Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Universal Video Link Parser

https://api.sandbase.ai/v1/api/hybrid/video-data

Parse a shared video link from Douyin, TikTok and other supported platforms and get the video details, author and no-watermark media URLs.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 2 個選填

Playground

輸入
url
Whether to return minimal data
Base64 encoding URL
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

Universal Video Link Parser API

This API takes a shared video link from Douyin, TikTok or another supported platform and returns the video details, the author profile and media URLs. The only required input is url. The example response is for a Douyin video.

Use cases

  • Resolve a short Douyin share link such as https://v.douyin.com/L4FJNR3/ to its full video ID in aweme_id.
  • Collect the caption in desc, the hashtags in cha_list and the post time in create_time for a shared video.
  • Read the author's avatar images and video count to build a creator card from a pasted link.
  • Use the minimal parameter to request a smaller response when you only need the main video fields.

Request

curl -X POST "https://api.sandbase.ai/v1/api/hybrid/video-data" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://v.douyin.com/L4FJNR3/", "minimal": false, "base64_url": false}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
urlstringYesurl
base64_urlbooleanNoBase64 encoding URL
minimalbooleanNoWhether to return minimal data

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "activity_video_type": 0,
  "admire_auth": {
    "admire_button": 1,
    "author_can_admire": 0,
    "exit_admire_in_aweme_post": 0,
    "is_admire": 0,
    "is_click_admire_icon_recently": 0,
    "is_fifty_admire_author_stable_fans": 0,
    "is_iron_fans_in_aweme_post": 0,
    "is_show_admire_button": 0,
    "is_show_admire_tab": 0
  },
  "anchors": null,
  "authentication_token": "MS4wLjAA…",
  "author": {
    "accept_private_policy": false,
    "account_cert_info": "{}",
    "account_region": "",
    "ad_cover_url": null,
    "allow_story_normal_like": true,
    "apple_account": 0,
    "authority_status": 0,
    "avatar_168x168": {
      "height": 720,
      "uri": "168x168/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
      "url_list": [
        "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5e…"
      ],
      "width": 720
    },
    "avatar_300x300": {
      "height": 720,
      "uri": "300x300/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
      "url_list": [
        "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5e…"
      ],
      "width": 720
    },
    "avatar_larger": {
      "height": 720,
      "uri": "1080x1080/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
      "url_list": [
        "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_7582e9bc5e…"
      ],
      "width": 720
    },
    "avatar_medium": {
      "height": 720,
      "uri": "720x720/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
      "url_list": [
        "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c…"
      ],
      "width": 720
    },
    "avatar_thumb": {
      "height": 720,
      "uri": "100x100/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c154ae24a5edff9989f80",
      "url_list": [
        "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_7582e9bc5e5c…"
      ],
      "width": 720
    }
  },
  "author_mask_tag": 0,
  "author_user_id": 59840491348,
  "aweme_control": {
    "can_comment": true,
    "can_forward": true,
    "can_share": true,
    "can_show_comment": true
  },
  "aweme_id": "6918273131559881997",
  "aweme_listen_struct": {
    "listen_diversion": {
      "extra": [
        {
          "key": "new_guide_prefix",
          "val": "下载汽水"
        }
      ],
      "popup_scene": 4,
      "side_desc": "听更多精彩内容",
      "sub_title_type": "relation"
    },
    "trace_info": "{\"copyright_not_speech\":\"true\",\"copyright_reason\":\"label_risk_music_or_speech\",\"…"
  },
  "aweme_type": 0,
  "aweme_type_tags": ""
}

Response fields

FieldMeaning
aweme_idID of the video. It is a numeric string.
descCaption text of the video, including hashtags written as #tag.
create_timeTime the video was posted. The value 1610786002 looks like a Unix timestamp in seconds.
author_user_idNumeric ID of the account that posted the video.
author.aweme_countNumber of videos on the author's account.
author.avatar_168x168 / author.avatar_300x300 / author.avatar_medium / author.avatar_larger / author.avatar_thumbAuthor avatar images in several sizes. Each object has uri, width, height and a url_list of image links.
cha_list[].cha_nameName of a hashtag challenge attached to the video.
cha_list[].cidID of the hashtag challenge.
cha_list[].descDescription text of the hashtag challenge.
cityCity code for the video. The example value is 330100.

Notes

  • Send a share link in url. The example uses a short v.douyin.com link.
  • Set base64_url to true to send the url value Base64 encoded.
  • The response holds many nested and null fields. Set minimal to true to get less data.
  • The result is returned in outputs[0].data.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Hybrid每次呼叫 $0.001JSON

問題

常見問題

我要如何使用 Universal Video Link Parser API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/hybrid/video-data。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Universal Video Link Parser API 的費用是多少?

每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Universal Video Link Parser API 接受哪些參數?

必要:url (string)。 選填:minimal (boolean) 和 base64_url (boolean)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Universal Video Link Parser API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Hybrid 開發者帳號或 API 金鑰嗎?

不需要。Universal Video Link Parser 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Hybrid API 存取權。