# How do I connect WeChat Official Account articles to Dify? (2026)

Import XTikAPI's /openapi/wechat_mp.json as a custom tool in Dify with your key as Bearer auth, and agents and workflows can list an Official Account's articles by its gh_ ID and read full text, $0.02 a call. No WeChat account or QR scan. XTikAPI reads WeChat Official Accounts with 7 endpoints from $0.02 a call. A failed call is not charged, and a verified account gets $0.50 of trial balance.

Updated 2026-11-20

## Steps

Dify's tool docs say custom tools can be imported from an OpenAPI/Swagger description.

1. Tools → Custom → create a tool.
2. Import from URL: `https://xtikapi.com/openapi/wechat_mp.json`.
3. Auth: API Key, header `Authorization`, Bearer, with a capped key.
4. Test `posts.list` with an account's gh_ ID, then add the tool to your app.

A typical workflow: list this week's articles for 5 accounts, fetch full text, then have the LLM write a digest.

## What XTikAPI returns

| Endpoint | You pass | You get |
| `wechat_mp.posts.list` | Original ID `id` (gh_…), `cursor` | A page of articles: title, link, time, cover |
| `wechat_mp.posts.detail` | Article `url` | Full text, author, time |

## What a weekly digest costs

5 accounts listed once plus full text for 15 articles: 20 calls, $0.40 a week. Model costs are separate.

## Why XTikAPI

- See before you pay: 192 of 229 endpoints show a recorded real response on their page (5 of 7 for WeChat Official Accounts).
- One shape: posts, comments and accounts from 19 platforms come back as the same objects, author in author and counts in metrics, so another platform needs no new parser.
- Spending you control: a failed call or a timeout is not charged (charged: false), X-Max-Price caps one call, and the same Idempotency-Key within 24 hours is never billed twice.
- Prepaid balance, no subscription. Balance never expires, and unused top-up money can be refunded within 14 days.
- Made for AI: every page has a Markdown twin, plus llms.txt and OpenAPI, so ChatGPT, Claude and Cursor can read it directly.

## Endpoints

- [WeChat Official Accounts article list API](https://xtikapi.com/apis/wechat_mp/posts/list) ($0.02 a call): Get WeChat MP Account Articles
- [WeChat Official Accounts article details API](https://xtikapi.com/apis/wechat_mp/posts/detail) ($0.02 a call): Get WeChat MP Article Detail

## More about WeChat Official Accounts

- [WeChat Official Accounts API](https://xtikapi.com/apis/wechat_mp)
- [How do I collect WeChat Official Account articles automatically with n8n?](https://xtikapi.com/answers/n8n-wechat-official-account-articles)
- [A miner was found in the we-mp-rss container: what should I use for WeChat RSS now?](https://xtikapi.com/answers/we-mp-rss-mining-alternative)
- [wechat-article-exporter has stopped: how else can I export WeChat Official Account articles?](https://xtikapi.com/answers/wechat-article-exporter-alternative)
- [wewe-rss has stopped working: what can I use instead?](https://xtikapi.com/answers/wewe-rss-not-working)
- [Is there an API for the read count of any WeChat Official Account article?](https://xtikapi.com/answers/wechat-article-read-count-api)
- [How do I add Xiaohongshu or WeChat Official Account data to TrendRadar?](https://xtikapi.com/answers/trendradar-xiaohongshu-wechat-data)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-20.

- [Dify docs: tools (custom tools from OpenAPI / Swagger)](https://legacy-docs.dify.ai/zh-hans/guides/tools)

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/dify-wechat-official-account-articles) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
