公众号的 gh_ 编号是什么,怎么拿?
`gh_` 编号就是公众号的原始 ID,比如 `gh_13c97ab93ce8`。要列一个公众号的文章就要它,名字不行。简单的办法是把这个账号的任意一篇文章交给详情调用(12 积分),看 `author.id`。只有名字时,先搜它的文章。
三种拿法
| 你手里有 | 这样做 | 花多少 |
|---|---|---|
| 一篇文章的链接 | 读这篇文章,author.id 就是 | 12 积分 |
| 只有公众号名字 | 用名字搜文章,从确实是它发的结果里取 author.id | 12 积分 |
| 公众号自己的后台 | 如果是你自己的账号:设置里的账号详情能看到原始 ID | 免费 |
拿到以后做什么
用账号文章列表 列它的文章,每页 12 积分;或者建一个每日监控和私有 RSS 地址。
一次真实的请求
curl https://api.socialtoai.com/v1/user_posts \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "wechat", "id": "gh_13c97ab93ce8" }'{ "request_id": "req_00000000-0000-4000-8000-000000000001", "schema_version": "v1", "fetched_at": "2026-10-12T19:02:58.000Z", "action": "user_posts", "platform": "wechat", "status": "ok", "items": [ { "platform": "wechat", "id": "…", "ref": "…", "approx": [], "type": "content", "url": "https://example.com/…", "format": "article", "title": "…", "text": null, "published_at": "2026-10-12T13:35:48.000Z", "author": { "id": "…", "username": null, "name": null, "verified": null, "followers": null }, "metrics": { "likes": null, "comments": null, "shares": null, "collects": null, "views": null, "reposts": null }, "images": null, "hashtags": null, "is_pinned": null } ], "unavailable": ["author.username", "author.name", "author.verified", "author.followers", "metrics.likes", "metrics.comments", "metrics.shares", "metrics.collects", "metrics.views", "metrics.reposts", "images", "hashtags", "is_pinned"], "page": { "has_more": true, "cursor": "cur_…", "cursor_expires_at": "2026-10-12T19:32:58.000Z" }, "warnings": [], "applied_params": { "id": "gh_13c97ab93ce8" }, "cost_credits": 12, "billing": { "cost_credits": 12, "balance_credits": 88, "today_spend_credits": 12, "daily_limit_credits": null, "daily_remaining_credits": null, "display": "本次 12 积分(约 $0.04),余额 88 积分(约 $0.29)" }, "replayed": false}常见问题
gh_ 编号和主页上的微信号是一个东西吗?
不是。微信号是账号主人自己设的,有的账号没有;原始 ID 每个账号都有。
文章链接里的 __biz 是什么?
是账号的另一个编码,只出现在链接里。这里的文章列表不接受它,把文章交给详情调用,看 author.id 就行。
要微信账号吗?
不用。不用你的账号,不会牵连你的账号。
发布于:最近更新: