公共 API Catalog
结构化接口目录、参数、响应字段、计费与平台能力。
https://mcp.socialdatax.com/socialdatax/api/v1/docs/catalog
按关键词搜索小红书笔记。要找近一周的图文笔记,可设置 note_type=image、publish_time_range=week、sort_type=time_descending。合并多页后,如需按发布时间倒序展示,可用返回的 publish_time 重新排序。
按关键词和筛选条件搜索公开小红书笔记;默认搜索所有类型,设置 note_type="image" 搜索图文笔记,设置 note_type="video" 搜索视频笔记。返回结构化笔记摘要和下一页分页令牌。结果包含可识别的广告笔记,is_ad 表示是否为广告;is_cooperation_note 表示是否带有商业合作笔记标记。
单次返回数量:每页通常返回约 20 条笔记。
POST /socialdatax/api/v1/xhs/note/search
1 积分 = 0.01 元;成功调用扣减 10 积分,失败不扣费。
keyword(必填):搜索词,可传关键词或短语,例如品牌名、话题、人物名、产品名或内容需求;不要传笔记链接、主页链接、note_id、user_id 或 page_token。sort_type:笔记搜索结果排序方式。note_type:笔记类型筛选。publish_time_range:发布时间范围筛选。page_token:笔记搜索分页令牌。首次请求留空;继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回。page_token 是不透明分页令牌,只能用于同一笔记搜索链路,不能跨关键词、排序、笔记类型、发布时间范围和调用方复用;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。{
"keyword": "咖啡",
"sort_type": "general",
"note_type": "all",
"publish_time_range": "all",
"page_token": ""
}
items:笔记搜索结果中的笔记列表,包含可识别的广告笔记,已过滤非笔记卡片与不可公开笔记;当前页过滤后可能为空数组next_page_token:下一页不透明分页令牌;为空表示没有更多结果或无法继续 token 翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回。next_page_token 仅限同一工具、关键词和调用方;保持该工具支持的筛选条件不变,不得跨搜索工具复用;items 为空时不要单独据此判断结束。不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。points:本次成功调用的积分消耗与账户积分余额。{
"items": [
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第1条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-9d0def72b6e244b5.jpg",
"like_count": 19,
"collect_count": 18,
"comment_count": 0,
"share_count": 3,
"publish_time": 1785407609,
"update_time": 1785407650,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者01",
"avatar_url": "https://example.invalid/media-39af9e96130a17a1.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "video",
"title": "咖啡分享",
"summary": "第2条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-36e5998ad73bf3f9.jpg",
"like_count": 2803,
"collect_count": 884,
"comment_count": 33,
"share_count": 139,
"publish_time": 1783648938,
"update_time": 1786999577,
"video": {
"video_url": "https://example.invalid/media-ff87ba3d079d20aa.mp4",
"duration_ms": 17797,
"width": 720,
"height": 720
},
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者02",
"avatar_url": "https://example.invalid/media-e653fb632d7f60ac.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第3条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-2b58f2fe7348f358.jpg",
"like_count": 359,
"collect_count": 126,
"comment_count": 70,
"share_count": 31,
"publish_time": 1764562276,
"update_time": 1770638709,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者03",
"avatar_url": "https://example.invalid/media-db064c1ec2fffab0.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "video",
"title": "咖啡分享",
"summary": "第4条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-9b92e3ff8fbf9c93.jpg",
"like_count": 31894,
"collect_count": 1526,
"comment_count": 2587,
"share_count": 10083,
"publish_time": 1767967890,
"update_time": 1768212750,
"video": {
"video_url": "https://example.invalid/media-7f3ad40ea1e2d36a.mp4",
"duration_ms": 16485,
"width": 720,
"height": 1280
},
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者04",
"avatar_url": "https://example.invalid/media-b19521f6a2e51df2.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "video",
"title": "咖啡分享",
"summary": "第5条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-2bf898ac56b3cc25.jpg",
"like_count": 1,
"collect_count": 1,
"comment_count": 0,
"share_count": 0,
"publish_time": 1785538820,
"update_time": null,
"video": {
"video_url": "https://example.invalid/media-9cf99f5019569cbf.mp4",
"duration_ms": 11146,
"width": 720,
"height": 1280
},
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者05",
"avatar_url": "https://example.invalid/media-9fc52bf3ee2fde30.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第6条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-95a1deb5be9be6fb.jpg",
"like_count": 17,
"collect_count": 4,
"comment_count": 0,
"share_count": 29,
"publish_time": 1784468552,
"update_time": 1784546987,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者06",
"avatar_url": "https://example.invalid/media-c19ca894412ca19b.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第7条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-cb06ad43f0b0137d.jpg",
"like_count": 3,
"collect_count": 1,
"comment_count": 0,
"share_count": 4,
"publish_time": 1780302934,
"update_time": 1780302988,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者07",
"avatar_url": "https://example.invalid/media-0fe1d3b69c1ed0a0.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第8条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-3748ef9e77cb541a.jpg",
"like_count": 143,
"collect_count": 104,
"comment_count": 16,
"share_count": 152,
"publish_time": 1777290334,
"update_time": 1777290393,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者08",
"avatar_url": "https://example.invalid/media-0cf3593a135c9956.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第9条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-96a75af6873bac8d.jpg",
"like_count": 2079,
"collect_count": 534,
"comment_count": 69,
"share_count": 517,
"publish_time": 1779640644,
"update_time": 1785931808,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者09",
"avatar_url": "https://example.invalid/media-a6bdb5b10a86faa4.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第10条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-d63ce3beca5551d0.jpg",
"like_count": 19,
"collect_count": 15,
"comment_count": 6,
"share_count": 11,
"publish_time": 1785549852,
"update_time": 1785680327,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者10",
"avatar_url": "https://example.invalid/media-bda921cedc8bd621.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第11条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-6aa961912d4bb8bc.jpg",
"like_count": 5547,
"collect_count": 689,
"comment_count": 91,
"share_count": 232,
"publish_time": 1785220440,
"update_time": null,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者11",
"avatar_url": "https://example.invalid/media-08c359646b32efac.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "video",
"title": "咖啡分享",
"summary": "",
"cover_image_url": "https://example.invalid/media-bf6aacae3ecb5461.jpg",
"like_count": 1443,
"collect_count": 1088,
"comment_count": 15,
"share_count": 38,
"publish_time": 1779792511,
"update_time": 1784000220,
"video": {
"video_url": "https://example.invalid/media-88dfcf83bdb9eefa.mp4",
"duration_ms": 36270,
"width": 1280,
"height": 720
},
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者12",
"avatar_url": "https://example.invalid/media-a9127e456107fff1.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "",
"cover_image_url": "https://example.invalid/media-e1c76713f7e82915.jpg",
"like_count": 21,
"collect_count": 6,
"comment_count": 0,
"share_count": 2,
"publish_time": 1764284833,
"update_time": 1764415738,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者13",
"avatar_url": "https://example.invalid/media-ab69106b2179880b.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第14条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-01ce7f9a52bbcf17.jpg",
"like_count": 157,
"collect_count": 44,
"comment_count": 15,
"share_count": 9,
"publish_time": 1774597748,
"update_time": 1787706998,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者14",
"avatar_url": "https://example.invalid/media-c366c2ac0376024b.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第15条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-2bcca6981cfd1868.jpg",
"like_count": 5,
"collect_count": 2,
"comment_count": 4,
"share_count": 5,
"publish_time": 1778436360,
"update_time": 1778436456,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者15",
"avatar_url": "https://example.invalid/media-f59064e6a8a0cc1d.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第16条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-e87a00467955b5c0.jpg",
"like_count": 1,
"collect_count": 0,
"comment_count": 2,
"share_count": 0,
"publish_time": 1788710201,
"update_time": 1788710255,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者16",
"avatar_url": "https://example.invalid/media-ddf8d2bfe03a4ddf.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "image",
"title": "咖啡分享",
"summary": "第17条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-58d1a6dff7550c0d.jpg",
"like_count": 1,
"collect_count": 0,
"comment_count": 0,
"share_count": 0,
"publish_time": 1788760189,
"update_time": 1788760236,
"video": null,
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者17",
"avatar_url": "https://example.invalid/media-566b0bc1d1ec5b09.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
},
{
"is_cooperation_note": false,
"is_ad": false,
"note_url": "https://www.xiaohongshu.com/explore/[REDACTED_SECRET]?xsec_token=%5BREDACTED_SECRET%5D",
"note_id": "[REDACTED_SECRET]",
"note_type": "video",
"title": "咖啡分享",
"summary": "第18条咖啡体验:整理准备清单,记录使用感受。",
"cover_image_url": "https://example.invalid/media-d979c05d8971dea9.jpg",
"like_count": 45,
"collect_count": 20,
"comment_count": 2,
"share_count": 9,
"publish_time": 1776520811,
"update_time": null,
"video": {
"video_url": "https://example.invalid/media-2aad3f0a70b22417.mp4",
"duration_ms": 85241,
"width": 1280,
"height": 720
},
"author": {
"user_id": "[REDACTED_SECRET]",
"name": "生活分享者18",
"avatar_url": "https://example.invalid/media-998a99b37676cbc4.jpg",
"profile_url": "https://www.xiaohongshu.com/user/profile/[REDACTED_SECRET]",
"red_id": "[REDACTED_SECRET]"
}
}
],
"next_page_token": "opaque-xhs_search_notes-page-token",
"points": {
"cost": 10,
"balance": 990
}
}
{
"additionalProperties": false,
"properties": {
"keyword": {
"title": "Keyword",
"type": "string",
"description": "搜索词,可传关键词或短语,例如品牌名、话题、人物名、产品名或内容需求;不要传笔记链接、主页链接、note_id、user_id 或 page_token。"
},
"sort_type": {
"default": "general",
"enum": [
"general",
"time_descending",
"like_count_descending",
"comment_count_descending",
"collect_count_descending"
],
"title": "Sort Type",
"type": "string",
"description": "笔记搜索结果排序方式。",
"x-socialdatax-enum-labels": {
"general": "综合",
"time_descending": "最新发布优先",
"like_count_descending": "最多点赞优先",
"comment_count_descending": "最多评论优先",
"collect_count_descending": "最多收藏优先"
}
},
"note_type": {
"default": "all",
"enum": [
"all",
"image",
"video"
],
"title": "Note Type",
"type": "string",
"description": "笔记类型筛选。",
"x-socialdatax-enum-labels": {
"all": "不限",
"image": "图文",
"video": "视频"
}
},
"publish_time_range": {
"default": "all",
"enum": [
"all",
"day",
"week",
"half_year"
],
"title": "Publish Time Range",
"type": "string",
"description": "发布时间范围筛选。",
"x-socialdatax-enum-labels": {
"all": "不限",
"day": "一天内",
"week": "一周内",
"half_year": "半年内"
}
},
"page_token": {
"default": "",
"title": "Page Token",
"type": "string",
"description": "笔记搜索分页令牌。首次请求留空;继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回。page_token 是不透明分页令牌,只能用于同一笔记搜索链路,不能跨关键词、排序、笔记类型、发布时间范围和调用方复用;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。"
}
},
"required": [
"keyword"
],
"title": "InternalSearchNotesRequest",
"type": "object"
}
{
"$defs": {
"AuthorSummary": {
"properties": {
"user_id": {
"description": "作者 user_id",
"title": "User Id",
"type": "string"
},
"name": {
"description": "作者名称",
"title": "Name",
"type": "string"
},
"avatar_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "作者头像链接;没有头像链接时为 null",
"title": "Avatar Url"
},
"profile_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "作者主页链接;没有主页链接时为 null",
"title": "Profile Url"
},
"red_id": {
"description": "作者公开小红书号;没有小红书号时为空字符串",
"title": "Red Id",
"type": "string"
}
},
"required": [
"user_id",
"name",
"avatar_url",
"profile_url",
"red_id"
],
"title": "AuthorSummary",
"type": "object"
},
"SearchNoteItem": {
"properties": {
"is_cooperation_note": {
"default": false,
"description": "是否带有商业合作笔记标记",
"title": "Is Cooperation Note",
"type": "boolean"
},
"is_ad": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "是否为广告",
"title": "Is Ad"
},
"note_url": {
"description": "note_url 是可打开笔记内容所需的完整 URL。任何使用该返回链接的场景都必须原样保留完整 URL,包括 xsec_token 等 query 参数;例如最终回答、展示、引用、存储、输出或传递;不得修改、截断、脱敏、规范化、重组,也不得用 note_id 重新拼接链接。",
"title": "Note Url",
"type": "string"
},
"note_id": {
"description": "小红书笔记 ID。必须原样使用完整 note_id;不得截断、缩写、脱敏、补全、格式化、重组,也不得只传前缀。",
"title": "Note Id",
"type": "string"
},
"note_type": {
"description": "笔记类型;当前公开值固定为 image 或 video",
"enum": [
"image",
"video"
],
"title": "Note Type",
"type": "string",
"x-socialdatax-enum-labels": {
"image": "图文",
"video": "视频"
}
},
"title": {
"description": "笔记标题",
"title": "Title",
"type": "string"
},
"summary": {
"description": "笔记摘要;不是全文",
"title": "Summary",
"type": "string"
},
"cover_image_url": {
"description": "统一封面图",
"title": "Cover Image Url",
"type": "string"
},
"like_count": {
"description": "点赞数",
"title": "Like Count",
"type": "integer"
},
"collect_count": {
"description": "收藏数",
"title": "Collect Count",
"type": "integer"
},
"comment_count": {
"description": "评论数",
"title": "Comment Count",
"type": "integer"
},
"share_count": {
"description": "分享数",
"title": "Share Count",
"type": "integer"
},
"publish_time": {
"description": "发布时间,秒级 Unix 时间戳;0 表示未知,不应解释为实际发布日期",
"title": "Publish Time",
"type": "integer"
},
"update_time": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "更新时间,秒级 Unix 时间戳;没有有效更新时间时为 null",
"title": "Update Time"
},
"video": {
"anyOf": [
{
"$ref": "#/$defs/SearchNoteVideo"
},
{
"type": "null"
}
],
"description": "视频摘要信息;视频笔记也可能为 null,表示未提供视频信息,不代表不是视频;图文为 null"
},
"author": {
"$ref": "#/$defs/AuthorSummary",
"description": "作者信息"
}
},
"required": [
"note_url",
"note_id",
"note_type",
"title",
"summary",
"cover_image_url",
"like_count",
"collect_count",
"comment_count",
"share_count",
"publish_time",
"update_time",
"video",
"author"
],
"title": "SearchNoteItem",
"type": "object"
},
"SearchNoteVideo": {
"additionalProperties": false,
"properties": {
"video_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "视频链接;没有视频链接时为 null",
"title": "Video Url"
},
"duration_ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "视频原始时长,单位毫秒;没有时长时为 null",
"title": "Duration Ms"
},
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "视频宽度,像素;没有时为 null",
"title": "Width"
},
"height": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "视频高度,像素;没有时为 null",
"title": "Height"
}
},
"required": [
"video_url",
"duration_ms",
"width",
"height"
],
"title": "SearchNoteVideo",
"type": "object"
}
},
"properties": {
"items": {
"description": "笔记搜索结果中的笔记列表,包含可识别的广告笔记,已过滤非笔记卡片与不可公开笔记;当前页过滤后可能为空数组",
"items": {
"$ref": "#/$defs/SearchNoteItem"
},
"title": "Items",
"type": "array"
},
"next_page_token": {
"description": "下一页不透明分页令牌;为空表示没有更多结果或无法继续 token 翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回。next_page_token 仅限同一工具、关键词和调用方;保持该工具支持的筛选条件不变,不得跨搜索工具复用;items 为空时不要单独据此判断结束。不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。",
"title": "Next Page Token",
"type": "string"
},
"points": {
"type": "object",
"description": "本次成功调用的积分消耗与账户积分余额。",
"properties": {
"cost": {
"type": "integer",
"description": "本次请求最终确认消耗的积分。",
"minimum": 0
},
"balance": {
"type": "integer",
"description": "优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
}
},
"required": [
"cost",
"balance"
],
"additionalProperties": false
}
},
"required": [
"items",
"next_page_token",
"points"
],
"title": "SearchNotesResult",
"type": "object"
}
业务 API 使用 API Key 鉴权。公开文档无需登录;在线测试可手动输入 API Key,登录后也可选择账户已有 Key。手动输入的 Key 仅在当前页面使用,curl 示例始终引用 SOCIALDATAX_API_KEY 环境变量。
开发工具和 AI 可以通过以下公共入口读取最新文档,接口数据由后端统一生成。
结构化接口目录、参数、响应字段、计费与平台能力。
https://mcp.socialdatax.com/socialdatax/api/v1/docs/catalog
用于代码生成、API 客户端和支持 OpenAPI 的开发工具。
https://mcp.socialdatax.com/socialdatax/api/v1/docs/openapi.json
让支持 MCP 的 AI 工具直接检索 SocialDataX API 文档。
https://mcp.socialdatax.com/docs/mcp
Docs MCP 的机器可读服务描述和能力入口。
https://mcp.socialdatax.com/.well-known/mcp/docs-server-card.json