# 微信搜一搜怎样只返回公众号文章，并核对文章阅读数？

[规范网址](https://social2api.com/answers/wechat-search-only-official-account-articles/)

向 GET /v1/wechat/posts/search 传 query 与 type=article。省略 type 时同页可混入视频号，type=video 仅取视频。公众号文章的搜索卡可供筛选，精确可用的互动计数走文章指标端点。

DataXAPI 价目生效日期与版本 [2026-11-25 · v22](https://social2api.com/pricing-catalog.json)

## Agent 提示词

~~~~text
请帮我回答「微信搜一搜怎样只返回公众号文章，并核对文章阅读数？」
向 GET /v1/wechat/posts/search 传 query 与 type=article。省略 type 时同页可混入视频号，type=video 仅取视频。公众号文章的搜索卡可供筛选，精确可用的互动计数走文章指标端点。
文章筛选和卡片字段。 published_within 可选 day、week、half_year，sort 可选 relevance、latest、popular。一页约 20 条、最多 30 条。按相同 query、type、排序和时间条件传 page.next_cursor 翻页，游标一小时有效。DataXAPI 通道一页 USD 0.02。
核对卡片能提交给哪个后续接口。 归档时保留原卡片及来源字段。用文章详情核对作者归属。原卡片没有带四个文章参数的长链接时，先从账号文章列表核对同一篇的长链接，再做精确计数。无法核对的文章保留平台显示的档位。
先核对输入和权限。交付结果或可运行的步骤，保留限制及出处。实时取数前确认范围与预算。
https://social2api.com/answers/wechat-search-only-official-account-articles/
~~~~

[搜一搜内容查询](https://social2api.com/docs/api/catalog-wechat-posts-search/)

## 文章筛选和卡片字段

published\_within 可选 day、week、half\_year，sort 可选 relevance、latest、popular。一页约 20 条、最多 30 条。按相同 query、type、排序和时间条件传 page.next\_cursor 翻页，游标一小时有效。DataXAPI 通道一页 USD 0.02。

文章结果保留 title、url、published\_at、author.name。view=full 时 ext.reads\_label 可能给原展示的阅读档位，它不能当精确阅读数。搜索结果不提供账号 ID。需要账号 ID 时，把文章 URL 传文章详情，再看 data.item.author.id；需要互动读数时用带 \_\_biz、mid、idx、sn 的官方长链接走文章互动指标。

~~~~bash
set -eu
catalog_get() {
  local path=$1 cap=$2 argument; shift 2
  local query=()
  for argument in "$@"; do query+=(--data-urlencode "$argument"); done
  curl -fsSG "https://social2api.com$path" \
    -H "Authorization: Bearer $SOCIAL2API_KEY" \
    -H "X-DataXAPI-Key: $DATAXAPI_KEY" \
    -H "X-Max-Price: $cap" "${query[@]}"
}
catalog_get /v1/wechat/posts/search 0.02 "query=$WECHAT_QUERY" type=article view=full > wechat-articles.json
jq '.data.items[] | {type,title,url,published_at,account:.author.name,reads_label:.ext.reads_label}' wechat-articles.json
~~~~

## 核对卡片能提交给哪个后续接口

归档时保留原卡片及来源字段。用文章详情核对作者归属。原卡片没有带四个文章参数的长链接时，先从账号文章列表核对同一篇的长链接，再做精确计数。无法核对的文章保留平台显示的档位。

## 为什么用 Social2api

- **微信搜索 帖子搜索的取样预算** 按 DataXAPI 参考价，2 页估算 USD 0.04，通常约 40 条。 [价格和规格](https://social2api.com/pricing-catalog.json)
- **微信公众号 文章详情的费用估算** DataXAPI 每次参考价 USD 0.02，3 次估算 USD 0.06。 [价格和规格](https://social2api.com/pricing-catalog.json)
- **预算可控** 托管实时任务可设 1–36 次上游调用上限。 [来源 1](https://social2api.com/docs/api/run/#parameters)
- **免密钥试跑** 3 种托管任务可免费试跑，0 次上游调用。 [来源 1](https://social2api.com/guides/social2api-demo-contract-acceptance/)
- **接入 AI** 1 个 MCP 地址提供最多 3 个按权限可见的工具。 [来源 1](https://social2api.com/docs/api/mcp/)
- **目录覆盖** 覆盖 21 个平台分类、197 个扩展操作。 [来源 1](https://social2api.com/v1/catalog)
- **用量可查** 账单显示 30 个 UTC 自然日的上游尝试量。 [来源 1](https://social2api.com/docs/api/settings-billing/)

## 用到的接口

- [微信搜索 帖子搜索](https://social2api.com/docs/api/catalog-wechat-posts-search/) · `GET /v1/wechat/posts/search`
  输入 query。结果在 data.items，续页使用 page.next\_cursor。 DataXAPI 参考价 USD 0.02/次
- [微信公众号 文章详情](https://social2api.com/docs/api/catalog-wechat-mp-articles-get/) · `GET /v1/wechat_mp/articles/get`
  输入 url。结果在 data.item。 DataXAPI 参考价 USD 0.02/次
- [微信公众号 文章统计](https://social2api.com/docs/api/catalog-wechat-mp-articles-metrics/) · `GET /v1/wechat_mp/articles/metrics`
  输入 url。结果在 data.item。 DataXAPI 参考价 USD 0.02/次

## 相关用户讨论

- [相邻需求：微信通用搜索会混入与目标无关的结果](https://www.reddit.com/r/shanghai/comments/1n410tm/)

## 相关问答和工具

- [怎样按公众号名称或文章链接查询历史文章和正文？](https://social2api.com/answers/wechat-official-account-article-history-from-name-or-link/)。 先取得公众号原始账号 ID。只有名称时用搜一搜账号搜索，核实候选后保存 id；只有文章链接时用文章详情读取 data.item.author.id。用该账号 ID 分页读文章列表，再按返回的文章 URL 查正文。
- [社媒数据 API 问答](https://social2api.com/answers/)。 查找小红书、抖音、微信视频号的独立取数问答，核对接口的输入、返回字段、权限、分页和用量。

[搜一搜内容查询](https://social2api.com/docs/api/catalog-wechat-posts-search/)
