# WeChat article monitoring and export: an agent skill

> What did these Official Accounts publish this week, and can I have it all as Markdown? A free skill for your AI on 1 platforms: e.g. 35 calls, at most $0.70, one table back.

Canonical page: https://okdata.online/skills/wechat-articles/

**What did these Official Accounts publish this week, and can I have it all as Markdown?** Lists the new articles of each WeChat Official Account you name over the past days, with reads and likes where WeChat gives them; exports the articles you pick as Markdown with their comments; then sums it up per account as a weekly report.

## Tell your AI

```text
Install the okdata skill okdata-wechat-articles from https://okdata.online/.well-known/agent-skills/okdata-wechat-articles/SKILL.md into your skills folder.
```

- SKILL.md: https://okdata.online/.well-known/agent-skills/okdata-wechat-articles/SKILL.md
- Download (.zip): https://okdata.online/skills/okdata-wechat-articles.zip

## Example run

| Platform | Endpoint | Calls | At most |
|---|---|---|---|
| WeChat Official Accounts | [wechat_mp.accounts.articles.list](https://okdata.online/apis/wechat_mp/accounts/articles/list/) | 5 | $0.10 |
| WeChat Official Accounts | [wechat_mp.articles.metrics](https://okdata.online/apis/wechat_mp/articles/metrics/) | 10 | $0.20 |
| WeChat Official Accounts | [wechat_mp.articles.get](https://okdata.online/apis/wechat_mp/articles/get/) | 10 | $0.20 |
| WeChat Official Accounts | [wechat_mp.articles.comments.list](https://okdata.online/apis/wechat_mp/articles/comments/list/) | 10 | $0.20 |

Total: 35 calls, ≤ $0.70

## Ask it like this

- Turn what these 5 Official Accounts published this week into a weekly report, and export the articles as Markdown.
- Which article from these accounts got the most reads this week? Export it with its comments.
- Every Monday, list last week's articles from our three competitors' Official Accounts with links.

## What it does

1. For an account given by name, call the account search once with the name as `query` and take the matching id. Skip this for accounts given by id or article link.
2. For each account, call its article list once and keep the articles published in the last `days` days.
3. (If the platform has it.) For each post kept, call the metrics endpoint with its link to add reads and likes.
4. For each article to export, call the article endpoint with its link (`url`) and save the full text as one Markdown file: the title as the heading, then the account, publish time and link, then the body.
5. (If the platform has it.) For each exported article, call the comments endpoint with its link, one page, and add the comments at the end under a Comments heading.

## What you get back

Account, Title, Published, Reads, Likes, Comments, Markdown file, Link

## Inputs it needs

| Input | Needed | Meaning |
|---|---|---|
| `accounts` | yes | Official Account names, ids or article links, comma-separated. |
| `days` | no | How many days back to list, 1 to 30; 7 if not given. |
| `export` | no | Which articles to export in full: `all`, or titles or links, comma-separated; `all` if not given. |

## Platforms and endpoints

- WeChat Official Accounts: [Official Account article history](https://okdata.online/apis/wechat_mp/accounts/articles/list/) `wechat_mp.accounts.articles.list`, $0.02 per call · about 10 articles per page
- WeChat Official Accounts: [Official Account article detail](https://okdata.online/apis/wechat_mp/articles/get/) `wechat_mp.articles.get`, $0.02 per call
- WeChat Official Accounts: [Official Account search](https://okdata.online/apis/wechat_mp/accounts/search/) `wechat_mp.accounts.search`, $0.058 per account · at most $0.58 per call
- WeChat Official Accounts: [Official Account article stats](https://okdata.online/apis/wechat_mp/articles/metrics/) `wechat_mp.articles.metrics`, $0.02 per call
- WeChat Official Accounts: [Official Account article comments](https://okdata.online/apis/wechat_mp/articles/comments/list/) `wechat_mp.articles.comments.list`, $0.02 per call · about 20 comments per page

The job it belongs to: [Competitor monitoring API](https://okdata.online/solutions/competitor-monitoring/)
