SocialDataX 今日头条 MCP is an MCP server published by com.socialdatax, hosted at mcp.socialdatax.com. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 14 tools, including toutiao_get_hot_search_list, toutiao_search_suggestions, toutiao_search_users, toutiao_get_user_info_by_user_id, toutiao_get_user_info_by_profile_url.
今日头条热搜、内容关键词搜索、搜索建议、用户搜索、内容详情、一级评论、评论回复、用户资料与用户作品;内容搜索、评论和作品支持分页。
31 connections through 4 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
读取今日头条热搜榜,返回头条当前热门关键词及上游热度信息。
No parameters.
{
"name": "toutiao_get_hot_search_list",
"description": "读取今日头条热搜榜,返回头条当前热门关键词及上游热度信息。",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoHotSearchResult",
"required": [
"items",
"pinned_items",
"points"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoHotSearchItem",
"required": [
"rank",
"hot_id",
"title",
"keyword",
"hot_value",
"url",
"cover_image_url"
],
"properties": {
"tag": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tag",
"default": null,
"description": "热点标签;没有时省略。"
},
"url": {
"type": "string",
"title": "Url",
"description": "热点链接。"
},
"rank": {
"type": "integer",
"title": "Rank",
"description": "热搜排名,按头条返回顺序生成。"
},
"title": {
"type": "string",
"title": "Title",
"description": "热点标题。"
},
"hot_id": {
"type": "string",
"title": "Hot Id",
"description": "热点 ID。"
},
"keyword": {
"type": "string",
"title": "Keyword",
"description": "热点关键词。"
},
"category": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Category",
"default": null,
"description": "热点分类;没有时省略。"
},
"hot_value": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Hot Value",
"description": "热度值;未提供时为 null。"
},
"cover_image_url": {
"type": "string",
"title": "Cover Image Url",
"description": "热点封面图;没有时为空字符串。"
}
}
},
"title": "Items",
"description": "普通热搜条目。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"pinned_items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoPinnedHotItem",
"required": [
"title",
"url"
],
"properties": {
"url": {
"type": "string",
"title": "Url",
"description": "置顶内容链接。"
},
"title": {
"type": "string",
"title": "Title",
"description": "置顶内容标题。"
}
}
},
"title": "Pinned Items",
"description": "平台置顶内容。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
获取今日头条搜索输入框的联想词;不返回用户或内容详情,不支持分页。
| Parameter | Type | Description |
|---|---|---|
| keyword * | string | 搜索关键词或短语,例如美食、旅行;不要传链接、用户 ID 或 page_token。 |
{
"name": "toutiao_search_suggestions",
"description": "获取今日头条搜索输入框的联想词;不返回用户或内容详情,不支持分页。",
"inputSchema": {
"type": "object",
"required": [
"keyword"
],
"properties": {
"keyword": {
"type": "string",
"minLength": 1,
"description": "搜索关键词或短语,例如美食、旅行;不要传链接、用户 ID 或 page_token。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoSearchSuggestionsResult",
"required": [
"items",
"points"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoSearchSuggestionItem",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"title": "Text",
"minLength": 1,
"description": "搜索输入框联想词。"
}
}
},
"title": "Items",
"description": "搜索建议列表;无匹配建议时为空数组。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}按关键词查找今日头条用户,返回用户 ID、名称、简介、粉丝数和认证说明,支持分页;已有用户 ID 或主页链接时直接查询用户资料。
| Parameter | Type | Description |
|---|---|---|
| keyword * | string | 用户名称或关键词,例如 NBA、美食;不要传内容链接或用户主页链接。 |
| page_token | string | 首次留空;续页原样传入同一用户搜索上一页的 next_page_token,并保持 keyword 不变;不能使用内容搜索令牌。 |
{
"name": "toutiao_search_users",
"description": "按关键词查找今日头条用户,返回用户 ID、名称、简介、粉丝数和认证说明,支持分页;已有用户 ID 或主页链接时直接查询用户资料。",
"inputSchema": {
"type": "object",
"required": [
"keyword"
],
"properties": {
"keyword": {
"type": "string",
"minLength": 1,
"description": "用户名称或关键词,例如 NBA、美食;不要传内容链接或用户主页链接。"
},
"page_token": {
"type": "string",
"default": "",
"description": "首次留空;续页原样传入同一用户搜索上一页的 next_page_token,并保持 keyword 不变;不能使用内容搜索令牌。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoSearchUsersResult",
"required": [
"items",
"next_page_token",
"points"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoSearchUserItem",
"required": [
"user_id",
"name",
"avatar_url",
"profile_url",
"bio",
"follower_count",
"verification_label"
],
"properties": {
"bio": {
"type": "string",
"title": "Bio",
"description": "用户简介;未填写时为空字符串。"
},
"name": {
"type": "string",
"title": "Name",
"description": "用户显示名称。"
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "头条数字用户 ID,可用于查询用户资料和作品。"
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Avatar Url",
"description": "头像链接;未提供时为 null。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "头条用户主页链接。"
},
"follower_count": {
"type": "integer",
"title": "Follower Count",
"description": "粉丝数。"
},
"verification_label": {
"type": "string",
"title": "Verification Label",
"description": "搜索结果展示的认证或身份说明;本次搜索未提供时为空字符串,不代表账号未认证。"
}
}
},
"title": "Items",
"description": "当前页用户列表。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"next_page_token": {
"type": "string",
"title": "Next Page Token",
"description": "下一页完整分页令牌;为空表示结束。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}读取头条用户资料和主页统计,缩略统计为近似值;已有数字用户 ID 时优先使用本工具,只有主页链接时使用 toutiao_get_user_info_by_profile_url。
| Parameter | Type | Description |
|---|---|---|
| user_id * | string | 头条数字用户 ID,可取搜索或详情的 author.user_id;不要传内容 ID、主页链接或主页标识。 |
{
"name": "toutiao_get_user_info_by_user_id",
"description": "读取头条用户资料和主页统计,缩略统计为近似值;已有数字用户 ID 时优先使用本工具,只有主页链接时使用 toutiao_get_user_info_by_profile_url。",
"inputSchema": {
"type": "object",
"required": [
"user_id"
],
"properties": {
"user_id": {
"type": "string",
"pattern": "^[0-9]+$",
"description": "头条数字用户 ID,可取搜索或详情的 author.user_id;不要传内容 ID、主页链接或主页标识。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoUserInfoResult",
"required": [
"user_id",
"name",
"avatar_url",
"profile_url",
"bio",
"verified",
"verification_label",
"ip_location",
"follower_count",
"following_count",
"received_like_count",
"points"
],
"properties": {
"bio": {
"type": "string",
"title": "Bio",
"description": "用户简介;未填写时为空字符串。"
},
"name": {
"type": "string",
"title": "Name",
"description": "用户显示名称。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "数字用户 ID,可用于查询用户资料。"
},
"verified": {
"type": "boolean",
"title": "Verified",
"description": "用户是否已认证。"
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Avatar Url",
"description": "用户头像链接;未提供时为 null。"
},
"ip_location": {
"type": "string",
"title": "Ip Location",
"description": "主页显示的 IP 属地;未提供时为空字符串。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "用户主页链接,可用于再次查询用户资料。"
},
"follower_count": {
"type": "integer",
"title": "Follower Count",
"description": "粉丝数;头条使用万等缩略显示时为换算的近似值。"
},
"following_count": {
"type": "integer",
"title": "Following Count",
"description": "关注数;头条使用万等缩略显示时为换算的近似值。"
},
"verification_label": {
"type": "string",
"title": "Verification Label",
"description": "认证说明;无认证说明时为空字符串。"
},
"received_like_count": {
"type": "integer",
"title": "Received Like Count",
"description": "累计获赞数;头条使用万等缩略显示时为换算的近似值。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}通过用户主页链接或分享文案读取头条用户资料和主页统计,缩略统计为近似值;同时有数字用户 ID 时优先使用 toutiao_get_user_info_by_user_id。
| Parameter | Type | Description |
|---|---|---|
| profile_url * | string | 头条用户主页链接或包含主页链接的分享文案,可取详情 author.profile_url;不要传内容链接或纯 ID。 |
{
"name": "toutiao_get_user_info_by_profile_url",
"description": "通过用户主页链接或分享文案读取头条用户资料和主页统计,缩略统计为近似值;同时有数字用户 ID 时优先使用 toutiao_get_user_info_by_user_id。",
"inputSchema": {
"type": "object",
"required": [
"profile_url"
],
"properties": {
"profile_url": {
"type": "string",
"pattern": "https?://",
"description": "头条用户主页链接或包含主页链接的分享文案,可取详情 author.profile_url;不要传内容链接或纯 ID。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoUserInfoResult",
"required": [
"user_id",
"name",
"avatar_url",
"profile_url",
"bio",
"verified",
"verification_label",
"ip_location",
"follower_count",
"following_count",
"received_like_count",
"points"
],
"properties": {
"bio": {
"type": "string",
"title": "Bio",
"description": "用户简介;未填写时为空字符串。"
},
"name": {
"type": "string",
"title": "Name",
"description": "用户显示名称。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "数字用户 ID,可用于查询用户资料。"
},
"verified": {
"type": "boolean",
"title": "Verified",
"description": "用户是否已认证。"
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Avatar Url",
"description": "用户头像链接;未提供时为 null。"
},
"ip_location": {
"type": "string",
"title": "Ip Location",
"description": "主页显示的 IP 属地;未提供时为空字符串。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "用户主页链接,可用于再次查询用户资料。"
},
"follower_count": {
"type": "integer",
"title": "Follower Count",
"description": "粉丝数;头条使用万等缩略显示时为换算的近似值。"
},
"following_count": {
"type": "integer",
"title": "Following Count",
"description": "关注数;头条使用万等缩略显示时为换算的近似值。"
},
"verification_label": {
"type": "string",
"title": "Verification Label",
"description": "认证说明;无认证说明时为空字符串。"
},
"received_like_count": {
"type": "integer",
"title": "Received Like Count",
"description": "累计获赞数;头条使用万等缩略显示时为换算的近似值。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}读取头条用户发布的作品;已有数字用户 ID 时使用本工具,有主页链接时使用按主页链接查询的工具。
| Parameter | Type | Description |
|---|---|---|
| user_id * | string | 头条数字用户 ID,可取用户信息或内容作者的 author.user_id;有主页链接时使用 toutiao_get_user_posts_by_profile_url。 |
| page_token | string | 上一页返回的分页令牌;首次留空,不能跨用户或作品类型复用。 |
| content_type | string | 作品筛选:all、article、video、micro_post。 |
{
"name": "toutiao_get_user_posts_by_user_id",
"description": "读取头条用户发布的作品;已有数字用户 ID 时使用本工具,有主页链接时使用按主页链接查询的工具。",
"inputSchema": {
"type": "object",
"required": [
"user_id"
],
"properties": {
"user_id": {
"type": "string",
"pattern": "^[0-9]+$",
"description": "头条数字用户 ID,可取用户信息或内容作者的 author.user_id;有主页链接时使用 toutiao_get_user_posts_by_profile_url。"
},
"page_token": {
"type": "string",
"default": "",
"description": "上一页返回的分页令牌;首次留空,不能跨用户或作品类型复用。"
},
"content_type": {
"enum": [
"all",
"article",
"video",
"micro_post"
],
"type": "string",
"default": "all",
"description": "作品筛选:all、article、video、micro_post。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoUserPostsResult",
"required": [
"items",
"next_page_token",
"points"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoUserPostItem",
"required": [
"post_id",
"content_type",
"title",
"content",
"post_url",
"publish_time",
"cover_image_url",
"images",
"like_count",
"comment_count",
"read_count",
"author"
],
"properties": {
"title": {
"type": "string",
"title": "Title",
"description": "作品标题;微头条没有独立标题时为空字符串。"
},
"video": {
"anyOf": [
{
"type": "object",
"title": "ToutiaoVideoData",
"required": [
"video_url",
"duration_ms",
"width",
"height"
],
"properties": {
"width": {
"type": "integer",
"title": "Width",
"description": "视频宽度,像素。"
},
"height": {
"type": "integer",
"title": "Height",
"description": "视频高度,像素。"
},
"video_url": {
"type": "string",
"title": "Video Url",
"description": "视频播放链接,有效期有限,建议获取后及时使用。"
},
"duration_ms": {
"type": "integer",
"title": "Duration Ms",
"description": "视频时长,单位毫秒。"
}
}
},
{
"type": "null"
}
],
"default": null,
"description": "视频播放信息;非视频作品省略。"
},
"author": {
"type": "object",
"title": "ToutiaoUserPostAuthor",
"required": [
"user_id",
"name",
"avatar_url",
"profile_url"
],
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"description": "作者显示名称;未提供时为 null。"
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "作者数字用户 ID,可用于查询用户资料或作品。"
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Avatar Url",
"description": "作者头像链接;未提供时为 null。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "作者头条主页链接。"
}
},
"description": "作品作者。"
},
"images": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoImageData",
"required": [
"url",
"width",
"height"
],
"properties": {
"url": {
"type": "string",
"title": "Url",
"description": "图片链接。"
},
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Width",
"description": "图片宽度,像素;未提供时为 null。"
},
"height": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Height",
"description": "图片高度,像素;未提供时为 null。"
}
}
},
"title": "Images",
"description": "作品图片;无图片时为空数组。"
},
"content": {
"type": "string",
"title": "Content",
"description": "文章为列表摘要,微头条为正文,视频通常为空字符串;完整内容请查询作品详情。"
},
"post_id": {
"type": "string",
"title": "Post Id",
"description": "作品 ID。"
},
"post_url": {
"type": "string",
"title": "Post Url",
"description": "作品链接。"
},
"is_pinned": {
"type": "boolean",
"title": "Is Pinned",
"default": false,
"description": "是否在用户主页置顶。"
},
"like_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Like Count",
"description": "点赞数;未提供时为 null。"
},
"read_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Read Count",
"description": "阅读数;未提供时为 null。"
},
"content_type": {
"enum": [
"article",
"video",
"micro_post"
],
"type": "string",
"title": "Content Type",
"description": "作品类型:article、video 或 micro_post。"
},
"publish_time": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Publish Time",
"description": "发布时间,秒级 Unix 时间戳;未提供时为 null。"
},
"comment_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Comment Count",
"description": "评论数;未提供时为 null。"
},
"cover_image_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cover Image Url",
"description": "封面图片链接;未提供时为 null。"
}
}
},
"title": "Items",
"description": "用户发布的作品列表。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"next_page_token": {
"type": "string",
"title": "Next Page Token",
"description": "下一页分页令牌;为空表示结束。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}通过头条用户主页链接读取其发布的作品;支持文章、视频和微头条及分页。
| Parameter | Type | Description |
|---|---|---|
| page_token | string | 上一页返回的分页令牌;首次留空,不能跨用户或作品类型复用。 |
| profile_url * | string | 头条用户主页链接或包含主页链接的分享文案;只有数字用户 ID 时使用 toutiao_get_user_posts_by_user_id。 |
| content_type | string | 作品筛选:all、article、video、micro_post。 |
{
"name": "toutiao_get_user_posts_by_profile_url",
"description": "通过头条用户主页链接读取其发布的作品;支持文章、视频和微头条及分页。",
"inputSchema": {
"type": "object",
"required": [
"profile_url"
],
"properties": {
"page_token": {
"type": "string",
"default": "",
"description": "上一页返回的分页令牌;首次留空,不能跨用户或作品类型复用。"
},
"profile_url": {
"type": "string",
"pattern": "https?://",
"description": "头条用户主页链接或包含主页链接的分享文案;只有数字用户 ID 时使用 toutiao_get_user_posts_by_user_id。"
},
"content_type": {
"enum": [
"all",
"article",
"video",
"micro_post"
],
"type": "string",
"default": "all",
"description": "作品筛选:all、article、video、micro_post。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoUserPostsResult",
"required": [
"items",
"next_page_token",
"points"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoUserPostItem",
"required": [
"post_id",
"content_type",
"title",
"content",
"post_url",
"publish_time",
"cover_image_url",
"images",
"like_count",
"comment_count",
"read_count",
"author"
],
"properties": {
"title": {
"type": "string",
"title": "Title",
"description": "作品标题;微头条没有独立标题时为空字符串。"
},
"video": {
"anyOf": [
{
"type": "object",
"title": "ToutiaoVideoData",
"required": [
"video_url",
"duration_ms",
"width",
"height"
],
"properties": {
"width": {
"type": "integer",
"title": "Width",
"description": "视频宽度,像素。"
},
"height": {
"type": "integer",
"title": "Height",
"description": "视频高度,像素。"
},
"video_url": {
"type": "string",
"title": "Video Url",
"description": "视频播放链接,有效期有限,建议获取后及时使用。"
},
"duration_ms": {
"type": "integer",
"title": "Duration Ms",
"description": "视频时长,单位毫秒。"
}
}
},
{
"type": "null"
}
],
"default": null,
"description": "视频播放信息;非视频作品省略。"
},
"author": {
"type": "object",
"title": "ToutiaoUserPostAuthor",
"required": [
"user_id",
"name",
"avatar_url",
"profile_url"
],
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"description": "作者显示名称;未提供时为 null。"
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "作者数字用户 ID,可用于查询用户资料或作品。"
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Avatar Url",
"description": "作者头像链接;未提供时为 null。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "作者头条主页链接。"
}
},
"description": "作品作者。"
},
"images": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoImageData",
"required": [
"url",
"width",
"height"
],
"properties": {
"url": {
"type": "string",
"title": "Url",
"description": "图片链接。"
},
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Width",
"description": "图片宽度,像素;未提供时为 null。"
},
"height": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Height",
"description": "图片高度,像素;未提供时为 null。"
}
}
},
"title": "Images",
"description": "作品图片;无图片时为空数组。"
},
"content": {
"type": "string",
"title": "Content",
"description": "文章为列表摘要,微头条为正文,视频通常为空字符串;完整内容请查询作品详情。"
},
"post_id": {
"type": "string",
"title": "Post Id",
"description": "作品 ID。"
},
"post_url": {
"type": "string",
"title": "Post Url",
"description": "作品链接。"
},
"is_pinned": {
"type": "boolean",
"title": "Is Pinned",
"default": false,
"description": "是否在用户主页置顶。"
},
"like_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Like Count",
"description": "点赞数;未提供时为 null。"
},
"read_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Read Count",
"description": "阅读数;未提供时为 null。"
},
"content_type": {
"enum": [
"article",
"video",
"micro_post"
],
"type": "string",
"title": "Content Type",
"description": "作品类型:article、video 或 micro_post。"
},
"publish_time": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Publish Time",
"description": "发布时间,秒级 Unix 时间戳;未提供时为 null。"
},
"comment_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Comment Count",
"description": "评论数;未提供时为 null。"
},
"cover_image_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cover Image Url",
"description": "封面图片链接;未提供时为 null。"
}
}
},
"title": "Items",
"description": "用户发布的作品列表。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"next_page_token": {
"type": "string",
"title": "Next Page Token",
"description": "下一页分页令牌;为空表示结束。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}读取指定一级评论下的回复,按头条默认顺序分页;comment_id 取一级评论结果,续页保持该 ID,不要改用回复项自身的 ID。
| Parameter | Type | Description |
|---|---|---|
| comment_id * | string | 一级评论 ID,取一级评论结果的 comment_id;不要传内容 ID、链接或回复项自身的 comment_id。 |
| page_token | string | 首次留空;续页原样传入同一一级评论上一页回复结果的 next_page_token,并保持 comment_id 不变;不要使用一级评论或搜索的分页令牌。 |
{
"name": "toutiao_get_post_comment_replies_by_comment_id",
"description": "读取指定一级评论下的回复,按头条默认顺序分页;comment_id 取一级评论结果,续页保持该 ID,不要改用回复项自身的 ID。",
"inputSchema": {
"type": "object",
"required": [
"comment_id"
],
"properties": {
"comment_id": {
"type": "string",
"pattern": "^[0-9]+$",
"description": "一级评论 ID,取一级评论结果的 comment_id;不要传内容 ID、链接或回复项自身的 comment_id。"
},
"page_token": {
"type": "string",
"default": "",
"description": "首次留空;续页原样传入同一一级评论上一页回复结果的 next_page_token,并保持 comment_id 不变;不要使用一级评论或搜索的分页令牌。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoCommentRepliesResult",
"required": [
"items",
"next_page_token",
"points"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoCommentReplyItem",
"required": [
"comment_id",
"parent_comment_id",
"content",
"image_urls",
"publish_time",
"like_count",
"ip_location",
"author"
],
"properties": {
"author": {
"type": "object",
"title": "ToutiaoCommentAuthor",
"required": [
"profile_url",
"user_id",
"name",
"avatar_url"
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "评论作者显示名称。"
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "评论作者用户 ID。"
},
"avatar_url": {
"type": "string",
"title": "Avatar Url",
"description": "评论作者头像链接。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "评论作者头条主页链接。"
}
},
"description": "回复作者。"
},
"content": {
"type": "string",
"title": "Content",
"description": "回复正文。"
},
"comment_id": {
"type": "string",
"title": "Comment Id",
"description": "回复项自身的评论 ID;不要作为回复列表的入口 ID。"
},
"image_urls": {
"type": "array",
"items": {
"type": "string"
},
"title": "Image Urls",
"description": "回复图片的大图链接列表;无图片时为空数组。"
},
"like_count": {
"type": "integer",
"title": "Like Count",
"description": "回复点赞数。"
},
"ip_location": {
"type": "string",
"title": "Ip Location",
"description": "回复 IP 属地;未提供时为空字符串。"
},
"publish_time": {
"type": "integer",
"title": "Publish Time",
"description": "回复发布时间,秒级 Unix 时间戳。"
},
"parent_comment_id": {
"type": "string",
"title": "Parent Comment Id",
"description": "所属一级评论 ID,用于继续查询该评论的回复。"
},
"reply_to_comment_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reply To Comment Id",
"default": null,
"description": "被回复的评论 ID;上游未提供时省略。"
}
}
},
"title": "Items",
"description": "当前页评论回复列表。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"next_page_token": {
"type": "string",
"title": "Next Page Token",
"description": "下一页完整分页令牌;为空表示结束。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}按关键词或短语查找今日头条公开内容,支持分页。不用于读取指定链接的详情或查找用户;不返回导航、百科、用户及视频聚合面板。
| Parameter | Type | Description |
|---|---|---|
| keyword * | string | 搜索词或关键词短语,例如 NBA、旅行攻略;不要传作品链接、用户主页链接或内容 ID。 |
| page_token | string | 首次留空;续页原样传入上一页的 next_page_token,并保持 keyword 不变。 |
{
"name": "toutiao_search_posts",
"description": "按关键词或短语查找今日头条公开内容,支持分页。不用于读取指定链接的详情或查找用户;不返回导航、百科、用户及视频聚合面板。",
"inputSchema": {
"type": "object",
"required": [
"keyword"
],
"properties": {
"keyword": {
"type": "string",
"minLength": 1,
"description": "搜索词或关键词短语,例如 NBA、旅行攻略;不要传作品链接、用户主页链接或内容 ID。"
},
"page_token": {
"type": "string",
"default": "",
"description": "首次留空;续页原样传入上一页的 next_page_token,并保持 keyword 不变。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoSearchResult",
"required": [
"items",
"next_page_token",
"points"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoSearchItem",
"required": [
"post_id",
"title",
"summary",
"post_url",
"publish_time",
"has_video",
"cover_image_url",
"like_count",
"comment_count",
"read_count",
"author"
],
"properties": {
"title": {
"type": "string",
"title": "Title",
"description": "内容标题。"
},
"author": {
"type": "object",
"title": "ToutiaoSearchAuthor",
"required": [
"user_id",
"name",
"avatar_url"
],
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"description": "作者显示名称;未提供时为 null。"
},
"user_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "User Id",
"description": "作者用户 ID;未提供时为 null。"
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Avatar Url",
"description": "作者头像链接;未提供时为 null。"
},
"profile_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Profile Url",
"default": null,
"description": "作者头条主页链接;没有可用用户 ID 时省略。"
}
},
"description": "内容作者。"
},
"post_id": {
"type": "string",
"title": "Post Id",
"description": "内容 ID,以字符串表示。"
},
"summary": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Summary",
"description": "搜索摘要,不是完整正文;未提供时为 null。"
},
"post_url": {
"type": "string",
"title": "Post Url",
"description": "头条内容页面链接。"
},
"has_video": {
"type": "boolean",
"title": "Has Video",
"description": "内容是否包含视频。"
},
"like_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Like Count",
"description": "点赞数;未提供时为 null。"
},
"read_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Read Count",
"description": "阅读数;未提供时为 null。"
},
"publish_time": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Publish Time",
"description": "发布时间,秒级 Unix 时间戳;未提供时为 null。"
},
"comment_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Comment Count",
"description": "评论数;未提供时为 null。"
},
"cover_image_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cover Image Url",
"description": "封面图片链接;未提供时为 null。"
}
}
},
"title": "Items",
"description": "当前页内容列表,不包含聚合面板。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"next_page_token": {
"type": "string",
"title": "Next Page Token",
"description": "下一页完整分页令牌;为空表示结束。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}读取头条文章、视频或微头条详情,包含正文、图片、作者和互动数据,视频含播放信息;输入内容数字 ID,可接续搜索结果。有链接时使用 toutiao_get_post_detail_by_url。视频说明不是语音转写。
| Parameter | Type | Description |
|---|---|---|
| post_id * | string | 头条内容数字 ID,可取搜索结果 post_id;不要传链接。 |
{
"name": "toutiao_get_post_detail_by_post_id",
"description": "读取头条文章、视频或微头条详情,包含正文、图片、作者和互动数据,视频含播放信息;输入内容数字 ID,可接续搜索结果。有链接时使用 toutiao_get_post_detail_by_url。视频说明不是语音转写。",
"inputSchema": {
"type": "object",
"required": [
"post_id"
],
"properties": {
"post_id": {
"type": "string",
"pattern": "^[0-9]+$",
"description": "头条内容数字 ID,可取搜索结果 post_id;不要传链接。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoDetailResult",
"required": [
"post_id",
"title",
"content",
"post_url",
"publish_time",
"images",
"cover_image_url",
"author",
"like_count",
"comment_count",
"read_count",
"share_count",
"collect_count",
"points"
],
"properties": {
"title": {
"type": "string",
"title": "Title",
"description": "内容标题;无独立标题的微头条可为空,请阅读 content。"
},
"video": {
"anyOf": [
{
"type": "object",
"title": "ToutiaoVideoData",
"required": [
"video_url",
"duration_ms",
"width",
"height"
],
"properties": {
"width": {
"type": "integer",
"title": "Width",
"description": "视频宽度,像素。"
},
"height": {
"type": "integer",
"title": "Height",
"description": "视频高度,像素。"
},
"video_url": {
"type": "string",
"title": "Video Url",
"description": "视频播放链接,有效期有限,建议获取后及时使用。"
},
"duration_ms": {
"type": "integer",
"title": "Duration Ms",
"description": "视频时长,单位毫秒。"
}
}
},
{
"type": "null"
}
],
"default": null,
"description": "视频播放信息;当前返回无视频信息时省略。"
},
"author": {
"type": "object",
"title": "ToutiaoDetailAuthor",
"required": [
"profile_url",
"user_id",
"name",
"avatar_url"
],
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"description": "作者显示名称;未提供时为 null。"
},
"user_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "User Id",
"description": "作者用户 ID;未提供时为 null。"
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Avatar Url",
"description": "作者头像链接;未提供时为 null。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "作者头条主页链接。"
}
},
"description": "内容作者,包含作者主页链接。"
},
"images": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoImageData",
"required": [
"url",
"width",
"height"
],
"properties": {
"url": {
"type": "string",
"title": "Url",
"description": "图片链接。"
},
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Width",
"description": "图片宽度,像素;未提供时为 null。"
},
"height": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Height",
"description": "图片高度,像素;未提供时为 null。"
}
}
},
"title": "Images",
"description": "按正文顺序返回的图片,包含链接和像素宽高;无图片时为空数组。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"content": {
"type": "string",
"title": "Content",
"description": "正文纯文本;纯图片内容或视频可能为空,请结合 images 和 video 阅读。视频说明不是语音转写。"
},
"post_id": {
"type": "string",
"title": "Post Id",
"description": "内容 ID,以字符串表示。"
},
"post_url": {
"type": "string",
"title": "Post Url",
"description": "头条内容页面链接。"
},
"like_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Like Count",
"description": "点赞数;未提供时为 null。"
},
"read_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Read Count",
"description": "阅读数;未提供时为 null。"
},
"share_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Share Count",
"description": "分享数;未提供时为 null。"
},
"publish_time": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Publish Time",
"description": "发布时间,秒级 Unix 时间戳;未提供时为 null。"
},
"collect_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Collect Count",
"description": "收藏数;未提供时为 null。"
},
"comment_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Comment Count",
"description": "评论数;未提供时为 null。"
},
"cover_image_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cover Image Url",
"description": "封面图片链接;未提供时为 null。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}通过头条内容链接或分享文案读取文章、视频或微头条详情;只有内容 ID 时使用 toutiao_get_post_detail_by_post_id。视频说明不是语音转写。
| Parameter | Type | Description |
|---|---|---|
| url * | string | 头条内容链接或包含该链接的分享文案,支持 /article/ID/、/aID/、/video/ID/ 和 /w/ID/,可取搜索结果 post_url;不要传纯 ID。 |
{
"name": "toutiao_get_post_detail_by_url",
"description": "通过头条内容链接或分享文案读取文章、视频或微头条详情;只有内容 ID 时使用 toutiao_get_post_detail_by_post_id。视频说明不是语音转写。",
"inputSchema": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"pattern": "https?://",
"description": "头条内容链接或包含该链接的分享文案,支持 /article/ID/、/aID/、/video/ID/ 和 /w/ID/,可取搜索结果 post_url;不要传纯 ID。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoDetailResult",
"required": [
"post_id",
"title",
"content",
"post_url",
"publish_time",
"images",
"cover_image_url",
"author",
"like_count",
"comment_count",
"read_count",
"share_count",
"collect_count",
"points"
],
"properties": {
"title": {
"type": "string",
"title": "Title",
"description": "内容标题;无独立标题的微头条可为空,请阅读 content。"
},
"video": {
"anyOf": [
{
"type": "object",
"title": "ToutiaoVideoData",
"required": [
"video_url",
"duration_ms",
"width",
"height"
],
"properties": {
"width": {
"type": "integer",
"title": "Width",
"description": "视频宽度,像素。"
},
"height": {
"type": "integer",
"title": "Height",
"description": "视频高度,像素。"
},
"video_url": {
"type": "string",
"title": "Video Url",
"description": "视频播放链接,有效期有限,建议获取后及时使用。"
},
"duration_ms": {
"type": "integer",
"title": "Duration Ms",
"description": "视频时长,单位毫秒。"
}
}
},
{
"type": "null"
}
],
"default": null,
"description": "视频播放信息;当前返回无视频信息时省略。"
},
"author": {
"type": "object",
"title": "ToutiaoDetailAuthor",
"required": [
"profile_url",
"user_id",
"name",
"avatar_url"
],
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"description": "作者显示名称;未提供时为 null。"
},
"user_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "User Id",
"description": "作者用户 ID;未提供时为 null。"
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Avatar Url",
"description": "作者头像链接;未提供时为 null。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "作者头条主页链接。"
}
},
"description": "内容作者,包含作者主页链接。"
},
"images": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoImageData",
"required": [
"url",
"width",
"height"
],
"properties": {
"url": {
"type": "string",
"title": "Url",
"description": "图片链接。"
},
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Width",
"description": "图片宽度,像素;未提供时为 null。"
},
"height": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Height",
"description": "图片高度,像素;未提供时为 null。"
}
}
},
"title": "Images",
"description": "按正文顺序返回的图片,包含链接和像素宽高;无图片时为空数组。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"content": {
"type": "string",
"title": "Content",
"description": "正文纯文本;纯图片内容或视频可能为空,请结合 images 和 video 阅读。视频说明不是语音转写。"
},
"post_id": {
"type": "string",
"title": "Post Id",
"description": "内容 ID,以字符串表示。"
},
"post_url": {
"type": "string",
"title": "Post Url",
"description": "头条内容页面链接。"
},
"like_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Like Count",
"description": "点赞数;未提供时为 null。"
},
"read_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Read Count",
"description": "阅读数;未提供时为 null。"
},
"share_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Share Count",
"description": "分享数;未提供时为 null。"
},
"publish_time": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Publish Time",
"description": "发布时间,秒级 Unix 时间戳;未提供时为 null。"
},
"collect_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Collect Count",
"description": "收藏数;未提供时为 null。"
},
"comment_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Comment Count",
"description": "评论数;未提供时为 null。"
},
"cover_image_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cover Image Url",
"description": "封面图片链接;未提供时为 null。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}读取头条文章、视频或微头条的一级评论,按头条默认顺序返回,支持分页,不包含评论回复;输入内容数字 ID,支持接续搜索结果;有链接时使用 toutiao_get_post_comments_by_url。
| Parameter | Type | Description |
|---|---|---|
| post_id * | string | 头条内容数字 ID,可取搜索结果 post_id;不要传链接。 |
| page_token | string | 首次留空;续页原样传入同一内容上一页评论结果的 next_page_token;不要使用搜索结果的分页令牌。 |
{
"name": "toutiao_get_post_comments_by_post_id",
"description": "读取头条文章、视频或微头条的一级评论,按头条默认顺序返回,支持分页,不包含评论回复;输入内容数字 ID,支持接续搜索结果;有链接时使用 toutiao_get_post_comments_by_url。",
"inputSchema": {
"type": "object",
"required": [
"post_id"
],
"properties": {
"post_id": {
"type": "string",
"pattern": "^[0-9]+$",
"description": "头条内容数字 ID,可取搜索结果 post_id;不要传链接。"
},
"page_token": {
"type": "string",
"default": "",
"description": "首次留空;续页原样传入同一内容上一页评论结果的 next_page_token;不要使用搜索结果的分页令牌。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoCommentsResult",
"required": [
"items",
"next_page_token",
"points"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoCommentItem",
"required": [
"comment_id",
"content",
"image_urls",
"publish_time",
"like_count",
"has_replies",
"ip_location",
"author"
],
"properties": {
"author": {
"type": "object",
"title": "ToutiaoCommentAuthor",
"required": [
"profile_url",
"user_id",
"name",
"avatar_url"
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "评论作者显示名称。"
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "评论作者用户 ID。"
},
"avatar_url": {
"type": "string",
"title": "Avatar Url",
"description": "评论作者头像链接。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "评论作者头条主页链接。"
}
},
"description": "评论作者。"
},
"content": {
"type": "string",
"title": "Content",
"description": "评论正文。"
},
"comment_id": {
"type": "string",
"title": "Comment Id",
"description": "一级评论 ID,以字符串表示。"
},
"image_urls": {
"type": "array",
"items": {
"type": "string"
},
"title": "Image Urls",
"description": "评论图片的大图链接列表;无图片时为空数组。"
},
"like_count": {
"type": "integer",
"title": "Like Count",
"description": "评论点赞数。"
},
"has_replies": {
"type": "boolean",
"title": "Has Replies",
"description": "评论是否有回复。"
},
"ip_location": {
"type": "string",
"title": "Ip Location",
"description": "评论 IP 属地;未提供时为空字符串。"
},
"publish_time": {
"type": "integer",
"title": "Publish Time",
"description": "评论发布时间,秒级 Unix 时间戳。"
}
}
},
"title": "Items",
"description": "当前页一级评论列表。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"next_page_token": {
"type": "string",
"title": "Next Page Token",
"description": "下一页完整分页令牌;为空表示结束。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}通过头条内容链接或分享文案读取一级评论,按头条默认顺序返回,支持分页,不包含评论回复;只有内容 ID 时使用 toutiao_get_post_comments_by_post_id。
| Parameter | Type | Description |
|---|---|---|
| url * | string | 头条内容链接或包含该链接的分享文案,支持 /article/ID/、/aID/、/video/ID/ 和 /w/ID/,可取搜索结果 post_url;不要传纯 ID。 |
| page_token | string | 首次留空;续页原样传入同一内容上一页评论结果的 next_page_token;不要使用搜索结果的分页令牌。 |
{
"name": "toutiao_get_post_comments_by_url",
"description": "通过头条内容链接或分享文案读取一级评论,按头条默认顺序返回,支持分页,不包含评论回复;只有内容 ID 时使用 toutiao_get_post_comments_by_post_id。",
"inputSchema": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"pattern": "https?://",
"description": "头条内容链接或包含该链接的分享文案,支持 /article/ID/、/aID/、/video/ID/ 和 /w/ID/,可取搜索结果 post_url;不要传纯 ID。"
},
"page_token": {
"type": "string",
"default": "",
"description": "首次留空;续页原样传入同一内容上一页评论结果的 next_page_token;不要使用搜索结果的分页令牌。"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"title": "ToutiaoCommentsResult",
"required": [
"items",
"next_page_token",
"points"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"title": "ToutiaoCommentItem",
"required": [
"comment_id",
"content",
"image_urls",
"publish_time",
"like_count",
"has_replies",
"ip_location",
"author"
],
"properties": {
"author": {
"type": "object",
"title": "ToutiaoCommentAuthor",
"required": [
"profile_url",
"user_id",
"name",
"avatar_url"
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "评论作者显示名称。"
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "评论作者用户 ID。"
},
"avatar_url": {
"type": "string",
"title": "Avatar Url",
"description": "评论作者头像链接。"
},
"profile_url": {
"type": "string",
"title": "Profile Url",
"description": "评论作者头条主页链接。"
}
},
"description": "评论作者。"
},
"content": {
"type": "string",
"title": "Content",
"description": "评论正文。"
},
"comment_id": {
"type": "string",
"title": "Comment Id",
"description": "一级评论 ID,以字符串表示。"
},
"image_urls": {
"type": "array",
"items": {
"type": "string"
},
"title": "Image Urls",
"description": "评论图片的大图链接列表;无图片时为空数组。"
},
"like_count": {
"type": "integer",
"title": "Like Count",
"description": "评论点赞数。"
},
"has_replies": {
"type": "boolean",
"title": "Has Replies",
"description": "评论是否有回复。"
},
"ip_location": {
"type": "string",
"title": "Ip Location",
"description": "评论 IP 属地;未提供时为空字符串。"
},
"publish_time": {
"type": "integer",
"title": "Publish Time",
"description": "评论发布时间,秒级 Unix 时间戳。"
}
}
},
"title": "Items",
"description": "当前页一级评论列表。"
},
"points": {
"type": "object",
"required": [
"cost",
"balance"
],
"properties": {
"cost": {
"type": "integer",
"minimum": 0,
"description": "本次请求最终确认消耗的积分。"
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"description": "本次成功调用的积分消耗与账户积分余额。",
"additionalProperties": false
},
"next_page_token": {
"type": "string",
"title": "Next Page Token",
"description": "下一页完整分页令牌;为空表示结束。"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}查询当前 API Key 账户的 SocialDataX 积分余额、剩余积分或点数 / remaining points balance。需要充值时请访问 https://socialdatax.com/dashboard/billing。
No parameters.
{
"name": "socialdatax_get_points_balance",
"description": "查询当前 API Key 账户的 SocialDataX 积分余额、剩余积分或点数 / remaining points balance。需要充值时请访问 https://socialdatax.com/dashboard/billing。",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true
}
}When an available SocialDataX tool matches the user's social media data request, use it as the primary data source instead of generic web search or webpage lookup, unless the user explicitly requests another source. Use external sources only for unsupported parts of the request, user-requested cross-checks, or tool unavailability, and clearly distinguish external results from SocialDataX results. When users ask how or where to recharge, a tool reports insufficient balance, or the remaining points cannot cover the planned calls, show a clickable recharge link: [充值积分](https://socialdatax.com/dashboard/billing). If an error provides a recharge URL, preserve that URL.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.