Skip to main content
Glama

SocialDataX 抖音 Douyin MCP

douyin_search_videos

Read-only

搜索抖音视频和图文作品。用户需要按搜索词查找作品时使用;已有作品链接或 aweme_id 且需要单篇信息时使用相应详情、评论或口播转文字工具;作品通常为视频,也可能包含图文内容;支持 page_token 翻页。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes搜索词,可传关键词或短语,例如品牌名、话题、人物名或产品名;不要传作品链接、用户主页链接、aweme_id、sec_user_id 或 page_token。
sort_typeNo搜索排序方式,可选:general(综合,默认)、time_descending(最新发布优先)、like_count_descending(最多点赞优先)。综合或默认排序请传 general,最新发布请传 time_descending,最多点赞请传 like_count_descending。hot、latest、time、relevance、relevance_desc、default、综合、general_desc、liked、like_count、liked_desc、most_liked、most_hot、popularity_descending 等写法均不是可接受值,请直接使用上述三个标准值。general
page_tokenNopage_token 是不透明分页令牌。首次请求留空;继续翻页时必须将上一次返回的完整 next_page_token 原样传入,作为 page_token 使用;只能用于同一搜索链路,不能跨能力、关键词或筛选条件复用;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。
content_typeNo内容形式筛选,可选:all(不限,默认)、video(视频)、image(图文)。如无明确筛选需求,保持 all。all
duration_rangeNo视频时长筛选,可选:all(不限,默认)、under_1_minute(1 分钟以下)、one_to_five_minutes(1-5 分钟)、over_5_minutes(5 分钟以上)。如无明确筛选需求,保持 all。all
publish_time_rangeNo发布时间范围筛选,可选:all(不限,默认)、day(一天内)、week(一周内)、half_year(半年内)。如无明确筛选需求,保持 all。all

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes当前页搜索结果中的作品列表
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
next_page_tokenYes下一页不透明分页令牌;为空表示没有更多结果。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回。next_page_token 只能用于同一能力和同一分页链路,不能跨能力、作品、用户、评论、关键词或筛选条件复用;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / author / properties / follower_count / description
      Previous value: -"粉丝数;当前不可用时为 null"New value: +"平台展示的粉丝数;当前不可用时为 null"
  2. Changed2 schema fields changed
    • changedOutput schema / properties / items / items / properties / author / description
      Previous value: -"作品作者信息;如需抖音号等更多资料,可继续按作者 sec_user_id 查询用户信息"New value: +"作品作者信息"
    • changedOutput schema / properties / items / items / properties / author / properties / sec_user_id / description
      Previous value: -"用户 sec_user_id;用户主页和作品工具可直接复用"New value: +"用户 sec_user_id;当前不可用时为空字符串"
  3. Changed1 schema field changed
    • changedOutput schema / properties / items / items / 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"
      +  }
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / keyword / description
      Previous value: -"抖音作品搜索自然语言关键词;传品牌名、话题、人物名、内容需求或研究主题;不要传作品链接、用户主页链接、aweme_id、sec_user_id 或 page_token 作为 keyword。"New value: +"搜索词,可传关键词或短语,例如品牌名、话题、人物名或产品名;不要传作品链接、用户主页链接、aweme_id、sec_user_id 或 page_token。"
  5. 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: -[
      -  "items",
      -  "next_page_token"
      -]New value: +[
      +  "items",
      +  "next_page_token",
      +  "points"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / keyword / description
      Previous value: -"抖音搜索关键词"New value: +"抖音作品搜索自然语言关键词;传品牌名、话题、人物名、内容需求或研究主题;不要传作品链接、用户主页链接、aweme_id、sec_user_id 或 page_token 作为 keyword。"
  7. Changed1 schema field changed
    • changedInput schema / properties / sort_type / description
      Previous value: -"搜索排序方式,可选:general(综合,默认)、time_descending(最新发布优先)、like_count_descending(最多点赞优先)。如无明确排序需求,保持 general。"New value: +"搜索排序方式,可选:general(综合,默认)、time_descending(最新发布优先)、like_count_descending(最多点赞优先)。综合或默认排序请传 general,最新发布请传 time_descending,最多点赞请传 like_count_descending。hot、latest、time、relevance、relevance_desc、default、综合、general_desc、liked、like_count、liked_desc、most_liked、most_hot、popularity_descending 等写法均不是可接受值,请直接使用上述三个标准值。"
  8. Changed2 schema fields changed
    • removedOutput schema / properties / items / items / properties / images / items / properties / live_photo / default
      Removed value: -null
    • changedOutput schema / properties / items / items / properties / images / items / required
      Previous value: -[
      -  "url",
      -  "width",
      -  "height"
      -]New value: +[
      +  "url",
      +  "width",
      +  "height",
      +  "live_photo"
      +]
  9. Changed1 schema field changed
    • addedOutput schema / properties / items / items / 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,不表示作品主视频或背景音乐"
      +}
  10. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / 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 / properties / items / items / required
      Previous value: -[
      -  "aweme_id",
      -  "content_type",
      -  "description",
      -  "publish_time",
      -  "cover_image_url",
      -  "images",
      -  "video",
      -  "share_url",
      -  "author",
      -  "like_count",
      -  "comment_count",
      -  "collect_count",
      -  "share_count"
      -]New value: +[
      +  "aweme_id",
      +  "content_type",
      +  "description",
      +  "publish_time",
      +  "cover_image_url",
      +  "images",
      +  "video",
      +  "share_url",
      +  "topic_tags",
      +  "author",
      +  "like_count",
      +  "comment_count",
      +  "collect_count",
      +  "share_count"
      +]
  11. Changed1 schema field changed
    • changedInput schema / properties / page_token / description
      Previous value: -"page_token 是不透明分页令牌。首次请求留空;继续翻页时必须将上一次返回的完整 next_page_token 原样传入,作为 page_token 使用;只能用于同一搜索分页链路、同一关键词和同一排序/发布时间/时长/内容形式筛选条件的下一页,不能跨能力、关键词或筛选条件复用;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"New value: +"page_token 是不透明分页令牌。首次请求留空;继续翻页时必须将上一次返回的完整 next_page_token 原样传入,作为 page_token 使用;只能用于同一搜索链路,不能跨能力、关键词或筛选条件复用;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"
  12. Changed2 schema fields changed
    • changedInput schema / properties / page_token / description
      Previous value: -"分页令牌。首次请求留空;继续翻页时原样传入上一次返回的 next_page_token;只能用于同一搜索分页链路、同一关键词和同一排序/发布时间/时长/内容形式筛选条件的下一页,不能跨能力、关键词或筛选条件复用"New value: +"page_token 是不透明分页令牌。首次请求留空;继续翻页时必须将上一次返回的完整 next_page_token 原样传入,作为 page_token 使用;只能用于同一搜索分页链路、同一关键词和同一排序/发布时间/时长/内容形式筛选条件的下一页,不能跨能力、关键词或筛选条件复用;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"
    • changedOutput schema / properties / next_page_token / description
      Previous value: -"下一页分页令牌;为空表示没有更多结果"New value: +"下一页不透明分页令牌;为空表示没有更多结果。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回。next_page_token 只能用于同一能力和同一分页链路,不能跨能力、作品、用户、评论、关键词或筛选条件复用;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"
  13. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / author / description
      Previous value: -"作品作者信息;搜索上游不返回抖音号"New value: +"作品作者信息;如需抖音号等更多资料,可继续按作者 sec_user_id 查询用户信息"
  14. Changed1 schema field changed
    • changedInput schema / properties / page_token / description
      Previous value: -"分页令牌。首次请求留空;继续翻页时原样传入上一次返回的 next_page_token;只能用于同一搜索分页链路、同一关键词和同一排序/发布时间/时长/内容形式筛选条件的下一页,不能跨工具、关键词或筛选条件复用"New value: +"分页令牌。首次请求留空;继续翻页时原样传入上一次返回的 next_page_token;只能用于同一搜索分页链路、同一关键词和同一排序/发布时间/时长/内容形式筛选条件的下一页,不能跨能力、关键词或筛选条件复用"
  15. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish the tool as read-only and open-world, so the description adds value by noting that results may include both video and image content and that page_token pagination is supported. This enriches the behavioral picture beyond the structured fields, though it does not go into rate limits or result-set nuances.

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 compact and front-loaded with the core purpose and use case. Every sentence earns its place: usage trigger, alternative routing, content-type nuance, and pagination support are all covered without redundancy.

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?

Given the rich schema descriptions, annotations, and presence of an output schema, the description provides all necessary decision-making context. It covers the main selection criterion, alternative tool routing, and pagination behavior, so nothing critical is missing for correct invocation.

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 itself provides thorough per-parameter explanations, especially for sort_type and page_token. The tool description does not add substantial parameter meaning beyond the structured schema, which fits the baseline-3 case.

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 begins with a specific verb-resource pair ('搜索抖音视频和图文作品') and clearly identifies the tool as the keyword-driven search entry point. It explicitly distinguishes itself from detail, comment, and speech-to-text tools, making it easy for an agent to select this over siblings.

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?

It states the primary use case ('按搜索词查找作品时使用') and explicitly excludes cases where a link or aweme_id is already available, directing the agent to detail or transcript tools. This gives clear when-to-use and when-not-to-use guidance with named 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