公共 API Catalog
结构化接口目录、参数、响应字段、计费与平台能力。
https://mcp.socialdatax.com/socialdatax/api/v1/docs/catalog
按关键词搜索微信公众号文章,查看请求参数、文章列表返回字段、分页方式和在线调用示例。
按搜索词查找公众号文章,支持排序、发布时间筛选和分页。翻页时保持搜索词及筛选条件不变。结果中的 summary 是摘要片段;读取全文时,将 article_url 作为 url 传给文章详情接口。查询指定公众号发布的文章请使用账号文章列表接口。
POST /socialdatax/api/v1/wechat/mp/article/search
1 积分 = 0.01 元;成功调用扣减 10 积分,失败不扣费。
keyword(必填):公众号文章搜索词或关键词短语;例如量子位、人工智能。不要传文章链接或公众号账号 ID。page_token:文章搜索分页令牌;首次留空,继续翻页原样传回 next_page_token,并保持 keyword、sort_type 和 publish_time_range 不变。请在 3 天内续页;令牌失效后需重新搜索。sort_type:排序方式:general(综合/相关性,默认)、time_descending(最新发布)、hot(最热,顺序以平台结果为准)。publish_time_range:发布时间范围:all(不限,默认)、day(最近一天)、week(最近七天)、half_year(最近半年)。{
"keyword": "量子位",
"sort_type": "time_descending",
"publish_time_range": "week",
"page_token": ""
}
items:本页公众号文章搜索结果。next_page_token:下一页分页令牌;空字符串表示已结束,应停止翻页;非空时完整原样传回 page_token,并保持 keyword、sort_type 和 publish_time_range 不变。请在 3 天内续页;令牌失效后需重新搜索。points:本次成功调用的积分消耗与调用完成时的账户积分余额。{
"items": [
{
"title": "人工智能行业动态",
"summary": "文章摘要",
"account_name": "量子位",
"read_count_text": "阅读 8万+",
"cover_image_url": "https://example.invalid/wechat-mp-cover.jpg",
"article_url": "https://mp.weixin.qq.com/s/cyog0u9QpLFvdBsh9JR3_g",
"publish_time": 1790115069
}
],
"next_page_token": "",
"points": {
"cost": 10,
"balance": 990
}
}
{
"additionalProperties": false,
"properties": {
"keyword": {
"description": "公众号文章搜索词或关键词短语;例如量子位、人工智能。不要传文章链接或公众号账号 ID。",
"maxLength": 100,
"minLength": 1,
"title": "Keyword",
"type": "string"
},
"page_token": {
"default": "",
"description": "文章搜索分页令牌;首次留空,继续翻页原样传回 next_page_token,并保持 keyword、sort_type 和 publish_time_range 不变。请在 3 天内续页;令牌失效后需重新搜索。",
"title": "Page Token",
"type": "string"
},
"sort_type": {
"default": "general",
"description": "排序方式:general(综合/相关性,默认)、time_descending(最新发布)、hot(最热,顺序以平台结果为准)。",
"enum": [
"general",
"time_descending",
"hot"
],
"title": "Sort Type",
"type": "string",
"x-socialdatax-enum-labels": {
"general": "综合",
"time_descending": "最新发布优先"
}
},
"publish_time_range": {
"default": "all",
"description": "发布时间范围:all(不限,默认)、day(最近一天)、week(最近七天)、half_year(最近半年)。",
"enum": [
"all",
"day",
"week",
"half_year"
],
"title": "Publish Time Range",
"type": "string",
"x-socialdatax-enum-labels": {
"all": "不限",
"day": "一天内",
"week": "一周内",
"half_year": "半年内"
}
}
},
"required": [
"keyword"
],
"title": "PublicWechatMpArticleSearchRequest",
"type": "object"
}
{
"$defs": {
"PublicWechatMpArticleSearchItemResponse": {
"additionalProperties": false,
"properties": {
"title": {
"description": "搜索卡片展示标题;精确标题以文章详情为准。",
"title": "Title",
"type": "string"
},
"summary": {
"description": "搜索结果中的摘要片段,不是文章全文;不可用时为空字符串。",
"title": "Summary",
"type": "string"
},
"account_name": {
"description": "发布文章的公众号名称;不可用时为空字符串。",
"title": "Account Name",
"type": "string"
},
"read_count_text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "阅读量展示文案,如“阅读 8万+”;不是精确计数,不可用时为 null。",
"title": "Read Count Text"
},
"cover_image_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "文章封面链接;不可用时为 null。",
"title": "Cover Image Url"
},
"article_url": {
"description": "文章链接;读取正文时作为 url 传给公众号文章详情接口,也可用于统计或评论查询。",
"title": "Article Url",
"type": "string"
},
"publish_time": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "搜索源返回的发布时间,秒级 Unix 时间戳;可能与详情不同,精确发布时间以详情为准;不可用时为 null。",
"title": "Publish Time"
}
},
"required": [
"title",
"summary",
"account_name",
"read_count_text",
"cover_image_url",
"article_url",
"publish_time"
],
"title": "PublicWechatMpArticleSearchItemResponse",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"items": {
"description": "本页公众号文章搜索结果。",
"items": {
"$ref": "#/$defs/PublicWechatMpArticleSearchItemResponse"
},
"title": "Items",
"type": "array"
},
"next_page_token": {
"description": "下一页分页令牌;空字符串表示已结束,应停止翻页;非空时完整原样传回 page_token,并保持 keyword、sort_type 和 publish_time_range 不变。请在 3 天内续页;令牌失效后需重新搜索。",
"title": "Next Page Token",
"type": "string"
},
"points": {
"type": "object",
"description": "本次成功调用的积分消耗与调用完成时的账户积分余额。",
"properties": {
"cost": {
"type": "integer",
"description": "本次请求最终确认消耗的积分。",
"minimum": 0
},
"balance": {
"type": "integer",
"description": "本次接口完成时看到的当前积分余额。",
"minimum": 0
}
},
"required": [
"cost",
"balance"
],
"additionalProperties": false
}
},
"required": [
"items",
"next_page_token",
"points"
],
"title": "PublicWechatMpArticleSearchResponse",
"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