# 微信公众号 文章正文 API (wechat_oa.article_detail)

- Canonical page: [https://everyinfra.com/wechat-oa-api/article_detail](https://everyinfra.com/wechat-oa-api/article_detail?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "wechat_oa", "action": "article_detail", "params": {...}}
- Price: $0.005556 per call ($5.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=wechat_oa&action=article_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | article_comments / comment_replies / article_metrics / article_detail 使用 mp.weixin.qq.com 的文章自身链接（打开文章后复制：/s/<id> 短链，或带 __biz、mid、idx、sn 的链接）；从搜索结果复制的临时链接（带 signature/timestamp）可能读不了，读不了时扣费前返回 422。账号类接口仅把它作为公众号解析的最低优先级输入。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。article_search 的结果多数不带 id，认文章用 url。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| url | 该记录在原平台上的可访问链接。 |
| content_text | 文章正文（纯文本，无 HTML 标签）。公众号正文完整交付，不分页。 |
| content_html | 文章正文（原始 HTML，保留排版与图片引用）。与 content_text 内容相同，按需二选一使用。 |
| author | 文章作者（可能是个人笔名，不一定是公众号名）。 |
| account_name | 公众号名称。 |
| account_ghid | 公众号的原始 ID，微信体系内唯一。多数以 gh_ 开头，但并非全部，不要按前缀校验。 |
| digest | 文章摘要（公众号后台填写的摘要，非正文截取）。 |
| cover_image_url | 封面图。 |
| images | 正文内图片 URL 列表。 |
| hashtags | 文章话题标签列表。 |
| is_original | 是否为原创声明文章。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| ip_region | 发布时显示的 IP 属地（省份/国家）。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "wechat_oa",
  "action": "article_detail",
  "params": {
    "url": "https://mp.weixin.qq.com/s?__biz=MzA4MTg0MjA5OQ==&mid=2655362972&idx=1&sn=b56fabd8e4c53259498100f05f20dbb0"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "wechat_oa",
        "action": "article_detail",
        "params": {
            "url": "https://mp.weixin.qq.com/s?__biz=MzA4MTg0MjA5OQ==&mid=2655362972&idx=1&sn=b56fabd8e4c53259498100f05f20dbb0",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-07T14:47:42Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "wechat_oa",
  "action": "article_detail",
  "results": {
    "id": "•••",
    "title": "恭喜那些不刮腋毛的人",
    "url": "https://mp.weixin.qq.com/s?__biz=MzA4MTg0MjA5OQ==&mid=2655362972&idx=1&sn=b56fabd8e4c53259498100f05f20dbb0&chksm=85ad05a56ef4e900b9f46195267e0c42f6b5e5b23dfb7987dbcb52ee20884d8a210841e5fccb",
    "content_text": "说个恐怖故事，夏天来了，各种熏臭开始弥散，其中最令人窒息的大概就是——\n狐臭\n图片来源：🍠\n没有人希望自己有狐臭。在《狐臭问题》上，从来只关乎谁更能「忍受」它，而非谁更想「得到」它。\n但！偏偏一些时候，你冷不防就会被它攻击，更令人虎躯一震的是……它似乎恰恰来自于咱自己？！\n这下真的慌了……\n闻到后第一阶段：你迅速夹紧了两个「鸡翅膀」，胳膊死死藏好腋窝，不敢大幅抬手，生怕熏到旁人。下一秒若无其事地扫视四周，小松一口气：还好还好，没有谁面露不快。\n然后悄咪咪躲进厕所，以一种极为扭曲的姿势，头钻腋下使劲嗅闻胳肢窝，却 yue～地一声臭吐了自己。\n苍天呐！😵‍💫…",
    "content_html": "<section style=\"box-sizing: border-box;font-style: normal;font-weight: 400;text-align: justify;font-size: 16px;color: rgb(62, 62, 62);\" data-pm-slice=\"0 0 []\"><section style=\"text-align: center;margin: 15px 0%;line-height: 0;box-sizing: border-box;\"><section style=\"max-width: 100…",
    "author": "不•••的",
    "account_name": "丁香生活研究",
    "account_ghid": "gh_038cf5c345ed",
    "digest": "腋！",
    "cover_image_url": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/RB4K8vYw4Eql4qg1eLjzSUicX2QZXAGic4sBh2whicr3LA5P1pPtMCcmtSyBaB3XMzlRtLbyWkXX1UNOibfdqtgYQUjR7Bhiancuuib9T8ao9gBdA/0?wx_fmt=jpeg",
    "images": [
      "https://mmbiz.qpic.cn/sz_mmbiz_gif/RB4K8vYw4EprRBWc0s3B2iajqUyCnedg4bNdetQDNUbLlDWLeOshOQcMuGZlX5C3wJXwvG0USvIUMfvzFY4yyiaHe2U3wndhy7VujhUuGfgJ8/640?wx_fmt=gif&from=appmsg",
      "https://mmbiz.qpic.cn/mmbiz_png/RB4K8vYw4Eojoxm87qiaGyP37MLExveN5CChLaegr7RwhHqEccZsoIdPpEz35RI51v8GC4WorwepFbeYTZhOWcicdanBIHLkFHb1WtxOXbBhw/640?wx_fmt=png&from=appmsg",
      "https://mmbiz.qpic.cn/sz_mmbiz_jpg/RB4K8vYw4Eomv5NwicCA6htyhZ0I6uHEn8JoIjiaUs47SKuRQaiaqDOT9ypxCp0BG9AzeCpiayqar6YQPuUvcdmJo4LFFXdW1GbsBbc7Ln6zLYw/640?wx_fmt=jpeg&from=appmsg"
    ],
    "is_original": false,
    "posted_at": "2026-07-31T03:55:58+00:00",
    "ip_region": "浙江",
    "platform": "wechat_oa"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=wechat_oa
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
