# 微信公众号 公众号当日文章 API (wechat_oa.account_today_articles)

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

微信公众号当日文章按 `account` 只取一个公众号当天发出的文章，字段与历史文章一致：标题、链接、封面图、发布时间、排位、原创声明、删除状态，外加公众号名称和 ID。它回答「这个号今天发了什么」，适合媒体监测、公关和行业研究团队定时调用，收集各个号当天的新文章，不必反复读取完整历史。

`account` 的写法与公众号历史文章相同，例如 gh_ 开头的原始 ID。每篇文章都有 `id` 和 `url`，定时任务可以据此跳过已经存过的文章；每行都带 `account_ghid`，名称相近的公众号不会被混为一谈。`is_deleted` 会标出发出后又被删除的文章，做发文统计时可以单独列出。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| account | not declared | yes | not declared | 公众号标识，可用微信号、gh_ 开头的原始 ID，或可解析公众号的账号/文章 URL；不是个人微信号。account_principal 取主体资料，account_articles 取历史文章列表，account_today_articles 取当日文章。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| url | 该记录在原平台上的可访问链接。 |
| cover_image_url | 封面图。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| position | 这篇文章在同一次推送（群发）里的排位，数字越小越靠前，最小的是头条；不是阅读量或热度排名。 |
| is_original | 是否为原创声明文章。 |
| is_deleted | 内容是否已被删除。 |
| account_name | 公众号名称。 |
| account_id | 公众号 ID。 |
| account_ghid | 公众号的 gh_ 开头原始 ID，微信体系内的唯一标识。 |
| 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": "account_today_articles",
  "params": {
    "account": "36氪"
  }
}'
```

```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": "account_today_articles",
        "params": {
            "account": "36氪",
        },
    },
    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; the list keeps the first 2 of 7. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "wechat_oa",
  "action": "account_today_articles",
  "results": [
    {
      "id": 2248908872,
      "title": "宝马、问界、奔驰共建补能网络，高端汽车品牌进入「共舞」时代",
      "url": "https://mp.weixin.qq.com/s?__biz=MzI2NDk5NzA0Mw==&mid=2248908872&idx=1&sn=b947e11e00b541817c764f998bef50ac&chksm=e881dcfe9868a635a128ecdb5b65dc8abf05f74a2d686d1ddbdc85726f4cac8a0010cb8772ce&scene=126&sessionid=1794064554#rd",
      "cover_image_url": "https://mmbiz.qpic.cn/mmbiz_jpg/o02wSnKAPeHXzCLyGZpLRnRqXQM0Gp2uqjDcia9jqSWJcB5MzO1yFuzTggOAElzic0mpDwDstUPyzqkJ5N7cPmMyh1qyEAsWDtYmKapzh3cvE/640?wxtype=jpeg&wxfrom=25",
      "posted_at": "2026-11-07T13:30:00+00:00",
      "position": 1,
      "is_original": false,
      "account_name": "36氪",
      "account_ghid": "gh_240fbf8b33e4",
      "platform": "wechat_oa"
    },
    {
      "id": 2248908872,
      "title": "纯过日子的年轻人，开始研究「迷走神经」",
      "url": "https://mp.weixin.qq.com/s?__biz=MzI2NDk5NzA0Mw==&mid=2248908872&idx=2&sn=c2aae3c1b574fa998a71828f7926dfbf&chksm=e81ebb2809ce82da0fc50dd7d7c278329021d0f31a82edef686e810c04535cc97b300c335760&scene=126&sessionid=1794064554#rd",
      "cover_image_url": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/o02wSnKAPeGqNXL6cCXXibQ33Gs3vcySEms5ItnXbvZzJBewJR8tIGnKgkibd1pzXl25nZIDKQlm4SeVh1Cib6HAyvr20ia76j9Dk2BmAPRpGC4/300?wxtype=jpeg&wxfrom=25",
      "posted_at": "2026-11-07T13:30:00+00:00",
      "position": 2,
      "is_original": false,
      "account_name": "36氪",
      "account_ghid": "gh_240fbf8b33e4",
      "platform": "wechat_oa"
    }
  ],
  "count": 7,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 返回空结果是什么意思？

可能只是这个公众号当天还没有发文。空结果不计费，监测任务可以在当天晚些时候再查一次，不必把它当成报错处理。

### 和公众号历史文章有什么区别？

公众号历史文章读取这个号过去发布的文章，当日文章只返回当天的。两者接受同样的 `account`、返回同样的字段，所以每日任务用当日文章即可，漏掉的日子再用公众号历史文章补齐。

### `posted_at` 是什么时区？

UTC，ISO 8601 格式。北京时间比 UTC 快 8 小时，北京时间 0 点到 8 点之间发出的文章，按 UTC 会落在前一天，按天分组前要先换算。平台给的若是非标准时间字符串，会原样返回，解析时做好容错。

## 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
