Skip to main content
Glama

SocialDataX 抖音 Douyin MCP

douyin_get_video_detail_by_url

Read-only

根据抖音作品页面链接、作品短链接或包含作品链接的分享文案获取视频或图文作品详情。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes抖音作品页面链接、作品短链接或包含作品链接的完整分享文案;不要传 video.play_url 这类播放资源链接,也不要传用户主页链接;已知 aweme_id 时优先使用 ID 入口

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
musicYes作品绑定音乐或原声资产;不表示视频播放时需要额外叠加播放;当前不可用时为 null
videoYes抖音平台播放器资源;视频作品为视频播放资源,图文作品可能为音频播放资源;无法可靠识别时为 null
authorYes作品作者信息
imagesYes作品图片展示资源列表;图文作品按顺序返回所有图片,视频作品为空数组
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
aweme_idYes作品 aweme_id
share_urlYes作品页面/分享链接;可作为按 url 查询作品详情或评论时的输入;当前不可用时为 null
like_countYes作品点赞数
topic_tagsYes作品话题标签列表;无话题标签时为空数组
descriptionYes作品文案
share_countYes作品分享数
content_typeYes作品类型:video 表示视频,image 表示图文,unknown 表示未知
publish_timeYes作品发布时间,秒级 Unix 时间戳
collect_countYes作品收藏数
comment_countYes作品评论数
cover_image_urlYes作品封面图链接;当前不可用时为 null
mentioned_usersYes作品正文中 @ 到的用户列表;无 @ 时为空数组

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / author / properties / sec_user_id / description
      Previous value: -"用户 sec_user_id;用户主页和作品工具可直接复用"New value: +"用户 sec_user_id;当前不可用时为空字符串"
    • changedOutput schema / properties / mentioned_users / items / properties / sec_user_id / description
      Previous value: -"被 @ 用户的 sec_user_id"New value: +"被 @ 用户的 sec_user_id;当前不可用时为空字符串"
  2. Changed1 schema field changed
    • changedOutput schema / properties / video / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "duration_ms": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "播放器资源时长,毫秒;当前不可用时为 null"
      -      },
      -      "media_type": {
      -        "description": "播放器资源类型:video 表示视频,audio 表示音频,unknown 表示未知",
      -        "enum": [
      -          "video",
      -          "audio",
      -          "unknown"
      -        ],
      -        "type": "string"
      -      },
      -      "play_url": {
      -        "description": "抖音平台播放器资源链接;视频作品通常为 mp4,图文作品可能为音频播放资源;不同于作品页面或分享链接,不用于查询作品详情或评论",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "play_url",
      -      "duration_ms",
      -      "media_type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "duration_ms": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "播放器资源时长,毫秒;当前不可用时为 null"
      +      },
      +      "height": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "播放器资源高度,像素;当前不可用时为 null"
      +      },
      +      "media_type": {
      +        "description": "播放器资源类型:video 表示视频,audio 表示音频,unknown 表示未知",
      +        "enum": [
      +          "video",
      +          "audio",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "play_url": {
      +        "description": "抖音平台播放器资源链接;视频作品通常为 mp4,图文作品可能为音频播放资源;不同于作品页面或分享链接,不用于查询作品详情或评论",
      +        "type": "string"
      +      },
      +      "width": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "播放器资源宽度,像素;当前不可用时为 null"
      +      }
      +    },
      +    "required": [
      +      "play_url",
      +      "duration_ms",
      +      "width",
      +      "height",
      +      "media_type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed2 schema fields changed
    • addedOutput schema / properties / points
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "本次成功调用的积分消耗与调用完成时的账户积分余额。",
      +  "properties": {
      +    "balance": {
      +      "description": "本次接口完成时看到的当前积分余额。",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "cost": {
      +      "description": "本次请求最终确认消耗的积分。",
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "cost",
      +    "balance"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "aweme_id",
      -  "content_type",
      -  "description",
      -  "publish_time",
      -  "cover_image_url",
      -  "images",
      -  "video",
      -  "music",
      -  "share_url",
      -  "mentioned_users",
      -  "topic_tags",
      -  "like_count",
      -  "comment_count",
      -  "collect_count",
      -  "share_count",
      -  "author"
      -]New value: +[
      +  "aweme_id",
      +  "content_type",
      +  "description",
      +  "publish_time",
      +  "cover_image_url",
      +  "images",
      +  "video",
      +  "music",
      +  "share_url",
      +  "mentioned_users",
      +  "topic_tags",
      +  "like_count",
      +  "comment_count",
      +  "collect_count",
      +  "share_count",
      +  "author",
      +  "points"
      +]
  4. Changed2 schema fields changed
    • removedOutput schema / properties / images / items / properties / live_photo / default
      Removed value: -null
    • changedOutput schema / properties / images / items / required
      Previous value: -[
      -  "url",
      -  "width",
      -  "height"
      -]New value: +[
      +  "url",
      +  "width",
      +  "height",
      +  "live_photo"
      +]
  5. Changed1 schema field changed
    • addedOutput schema / properties / images / items / properties / live_photo
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "duration_ms": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "图片动效视频资源时长,毫秒;当前不可用时为 null"
      +        },
      +        "format": {
      +          "description": "图片动效视频资源格式,例如 mp4",
      +          "type": "string"
      +        },
      +        "height": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "图片动效视频资源高度,像素;当前不可用时为 null"
      +        },
      +        "play_url": {
      +          "description": "图片动效视频资源链接;用于还原图文作品中单张图片的动态效果,通常为 mp4",
      +          "type": "string"
      +        },
      +        "width": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "图片动效视频资源宽度,像素;当前不可用时为 null"
      +        }
      +      },
      +      "required": [
      +        "play_url",
      +        "duration_ms",
      +        "width",
      +        "height",
      +        "format"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "图片动效视频资源;普通静态图片为 null,不表示作品主视频或背景音乐"
      +}
  6. Changed2 schema fields changed
    • addedOutput schema / properties / topic_tags
      Added value: +{
      +  "description": "作品话题标签列表;无话题标签时为空数组",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "description": "话题标签 ID;当前不可用时为空字符串",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "话题标签名称",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "aweme_id",
      -  "content_type",
      -  "description",
      -  "publish_time",
      -  "cover_image_url",
      -  "images",
      -  "video",
      -  "music",
      -  "share_url",
      -  "mentioned_users",
      -  "like_count",
      -  "comment_count",
      -  "collect_count",
      -  "share_count",
      -  "author"
      -]New value: +[
      +  "aweme_id",
      +  "content_type",
      +  "description",
      +  "publish_time",
      +  "cover_image_url",
      +  "images",
      +  "video",
      +  "music",
      +  "share_url",
      +  "mentioned_users",
      +  "topic_tags",
      +  "like_count",
      +  "comment_count",
      +  "collect_count",
      +  "share_count",
      +  "author"
      +]
  7. Changed2 schema fields changed
    • addedOutput schema / properties / mentioned_users
      Added value: +{
      +  "description": "作品正文中 @ 到的用户列表;无 @ 时为空数组",
      +  "items": {
      +    "properties": {
      +      "end": {
      +        "description": "@ 文本在原文中的结束位置",
      +        "type": "integer"
      +      },
      +      "name": {
      +        "description": "被 @ 用户昵称;当前不可用时为空字符串",
      +        "type": "string"
      +      },
      +      "sec_user_id": {
      +        "description": "被 @ 用户的 sec_user_id",
      +        "type": "string"
      +      },
      +      "start": {
      +        "description": "@ 文本在原文中的起始位置",
      +        "type": "integer"
      +      },
      +      "user_id": {
      +        "description": "被 @ 用户的 user_id",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "user_id",
      +      "sec_user_id",
      +      "name",
      +      "start",
      +      "end"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "aweme_id",
      -  "content_type",
      -  "description",
      -  "publish_time",
      -  "cover_image_url",
      -  "images",
      -  "video",
      -  "music",
      -  "share_url",
      -  "like_count",
      -  "comment_count",
      -  "collect_count",
      -  "share_count",
      -  "author"
      -]New value: +[
      +  "aweme_id",
      +  "content_type",
      +  "description",
      +  "publish_time",
      +  "cover_image_url",
      +  "images",
      +  "video",
      +  "music",
      +  "share_url",
      +  "mentioned_users",
      +  "like_count",
      +  "comment_count",
      +  "collect_count",
      +  "share_count",
      +  "author"
      +]
  8. First observed

TDQS

A4.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, so the read-only safety profile is covered. The description adds minor context such as support for both video and image-text works, but does not disclose auth, error, or response behavior. This is acceptable given the annotations but not exceptional.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence with no filler. It front-loads the core purpose and input constraints without redundant elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, read-only tool with a detailed schema parameter description and an output schema, all information needed to invoke it correctly is present. No critical usage condition or constraint is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the schema parameter description already contains the same accepted-format, exclusion, and alternative-entry guidance. The tool description therefore adds no additional parameter semantics beyond what the schema provides, so the baseline score of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb-resource pair (获取...详情) and enumerates three accepted input forms: page links, short links, and share text. It also differentiates from the aweme_id-based sibling via the schema instruction '已知 aweme_id 时优先使用 ID 入口'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly states what inputs are accepted and explicitly tells the agent not to pass video.play_url resources or user homepage links. It also instructs the agent to prefer the ID entry when aweme_id is known, providing direct routing between alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources