# How do I connect WeChat Official Account data to Dify? (MCP, 2026)

2 ways: add https://api.dataxapi.com/mcp under Integrations, Tools, MCP in Dify with your key in a header, so an Agent can read accounts, or call the article list from a workflow's HTTP Request node at $0.0200 an account. Finding an account, listing its articles and reading 3 of them comes to $0.10, and the model is paid for apart. DataXAPI reads WeChat Official Accounts with 8 endpoints, from $0.0200 a call; a failed call is not charged.

Updated 2026-11-04

## With an Agent: MCP

1. Go to Integrations, Tools, MCP and add an MCP server. Dify takes servers with HTTP transport, which this is. URL is `https://api.dataxapi.com/mcp`, Name is `DataXAPI`, Server Identifier is `dataxapi`. Under Advanced Options, Custom Headers, set `Authorization` to `Bearer` and your key.

2. Make an Agent app, or an Agent node in a workflow, and pick the DataXAPI tools. Then ask: “Use DataXAPI to find this Official Account, list its latest articles and summarise 3 of them.”

Keep the identifier once it is set: Dify's apps refer to the server by it, and changing it stops the tools in those apps. Custom headers came in Dify 1.9.0, so a self-hosted Dify older than that lacks this field. Whoever in the workspace uses this server spends this key, so give it a daily limit.

## In a fixed workflow: HTTP Request node

1. Add an HTTP Request node: GET `https://api.dataxapi.com/v1/wechat_mp/accounts/articles/list`, with the parameter `id` set to the account's original ID. For authorization choose API Key, then Bearer, and enter your key.

2. The articles are in `data.items` of the response body, each with `id`, `title`, `url` and `published_at`. Compare `id` with what you stored to keep the new ones.

3. For the full text, another node: GET `https://api.dataxapi.com/v1/wechat_mp/articles/get` with `url` set to the article's link, at $0.0200 an article. Only know an account's name? `wechat.accounts.search` finds the original ID, once.

## What it comes to

That question is one `wechat.accounts.search` at $0.0200, one `wechat_mp.accounts.articles.list` at $0.0200 and three `wechat_mp.articles.get` at $0.0200, $0.10. 100 such questions are $10. In the fixed workflow, 5 accounts once a day are 150 calls a month, $3. An Agent decides how many calls to make, so its bill can differ; a failed call is not charged. These steps follow Dify's documents as read on 2026-11-04; its screens may differ in your version.

## Endpoints

- [WeChat Official Account live search](https://dataxapi.com/apis/wechat/accounts/search/) ($0.0200 / a call): Find WeChat Official Accounts and service accounts for search terms through WeChat Search, closest first, possibly followed by less related ones: original ID, WeChat ID, name, bio, avatar, whether verified, owner, number of original articles. Charged per call; no followers or reads, for estimates of those use wechat_mp.accounts.search.
- [WeChat Official Account articles](https://dataxapi.com/apis/wechat_mp/accounts/articles/list/) ($0.0200 / a call): Get a page of the articles a WeChat Official Account published, newest first: title, digest, link, time published.
- [WeChat Official Account article detail](https://dataxapi.com/apis/wechat_mp/articles/get/) ($0.0200 / a call): Get one WeChat Official Account article by its link: title, text, time published, the account's name and IDs.

## How-to guides

- [How to list a WeChat Official Account's past articles](https://dataxapi.com/guides/wechat-official-account-articles/)

## Sources

What this page says of other services is from their own pages and documents, read on 2026-11-04. Prices and features change: check the source before you decide.

- [Dify: tools and MCP](https://docs.dify.ai/en/cloud/use-dify/workspace/tools)
- [Dify: HTTP Request node](https://docs.dify.ai/en/cloud/use-dify/nodes/http-request)
- [Dify 1.9.0 release notes: MCP server headers](https://github.com/langgenius/dify/releases/tag/1.9.0)

## More about WeChat Official Accounts

- [WeChat Search API](https://dataxapi.com/apis/wechat/)
- [WeChat Official Accounts API](https://dataxapi.com/apis/wechat_mp/)
- [Is there an API for WeChat Official Account articles?](https://dataxapi.com/answers/is-there-an-api-for-wechat-official-account-articles/)
- [How do I get WeChat Channels data?](https://dataxapi.com/answers/how-to-get-wechat-channels-data/)
- [What is __biz in a WeChat article link?](https://dataxapi.com/answers/wechat-official-account-biz/)
- [What do mid, idx and sn mean in a WeChat article link?](https://dataxapi.com/answers/wechat-article-link-mid-idx-sn/)
- [What is a WeChat Official Account's original ID (gh_)?](https://dataxapi.com/answers/wechat-official-account-original-id/)
- [What is a WeChat Channels account ID (…@finder), and what is an export ID?](https://dataxapi.com/answers/wechat-channels-finder-id/)
- [What WeChat data APIs are there? Official Accounts, Channels and WeChat Search (2026)](https://dataxapi.com/answers/wechat-data-apis/)
- [Which APIs get WeChat Official Account data: past articles, full text, reads, comments? (2026)](https://dataxapi.com/answers/wechat-official-account-data-apis/)
- [WeChat returns ret=200013 freq control when listing an account's articles: what now? (2026)](https://dataxapi.com/answers/wechat-ret-200013-freq-control/)
- [wechat-article-exporter has stopped: what else exports WeChat articles in bulk? (2026)](https://dataxapi.com/answers/wechat-article-exporter-alternative/)
- [How do I export a WeChat Official Account's past articles in bulk? (2026)](https://dataxapi.com/answers/export-wechat-history-articles/)
- [Is DataXAPI the same as Alibaba's DataX?](https://dataxapi.com/answers/dataxapi-is-not-datax/)
- [How do I let my AI read WeChat Official Accounts? (ChatGPT, Claude, Codex, 2026)](https://dataxapi.com/answers/let-your-ai-read-wechat/)
- [How can my AI watch competitors each week without an annual plan?](https://dataxapi.com/answers/track-competitors-with-ai-pay-per-lookup/)
- [How do I turn a WeChat Official Account into RSS? (2026)](https://dataxapi.com/answers/wechat-official-account-rss/)
- [wewe-rss has stopped working: what now? (2026)](https://dataxapi.com/answers/wewe-rss-not-working/)
- [How do I watch dozens of WeChat Official Accounts and push updates to Feishu? (2026)](https://dataxapi.com/answers/monitor-wechat-accounts-feishu/)
- [How do I export all of a WeChat Channels account's videos? (2026)](https://dataxapi.com/answers/export-wechat-channels-account-videos/)
- [How do I add WeChat Official Accounts and Xiaohongshu to TrendRadar? (2026)](https://dataxapi.com/answers/trendradar-wechat-xiaohongshu/)
- [What is fakeid for a WeChat Official Account? (2026)](https://dataxapi.com/answers/wechat-fakeid/)
- [How do I collect WeChat Official Account articles in n8n? (2026)](https://dataxapi.com/answers/wechat-official-account-n8n/)
- [How do I sync WeChat Official Account article data to a Feishu Base? (2026)](https://dataxapi.com/answers/wechat-official-account-feishu-base/)
- [How do I connect WeChat Official Account data to Coze (扣子)? (2026)](https://dataxapi.com/answers/wechat-official-account-coze/)
- [How do I find an industry's hit articles on WeChat Official Accounts? (2026)](https://dataxapi.com/answers/wechat-official-account-hit-articles-by-industry/)
- [How do I send WeChat Official Account articles to an ima knowledge base automatically? (2026)](https://dataxapi.com/answers/wechat-articles-to-ima-knowledge-base/)
- [How do I save WeChat Official Account articles to Obsidian automatically? (2026)](https://dataxapi.com/answers/wechat-articles-to-obsidian/)
- [How do I export WeChat Channels data? (2026)](https://dataxapi.com/answers/export-wechat-channels-data/)
- [Can WeChat Channels comments be exported? (2026)](https://dataxapi.com/answers/export-wechat-channels-comments/)
- [How do I check keyword trends in the WeChat Index, in bulk? (2026)](https://dataxapi.com/answers/wechat-index-keyword-trends/)
- [How do I get an AI to write WeChat articles into Feishu Base with Skills and the Feishu CLI? (2026)](https://dataxapi.com/answers/skill-feishu-cli-write-base/)
- [How to get WeChat Official Account article reads and likes](https://dataxapi.com/guides/wechat-article-reads-and-likes/)
- [How to get WeChat Channels video comments](https://dataxapi.com/guides/wechat-channels-video-comments/)
- [How to list a WeChat Channels account's videos](https://dataxapi.com/guides/wechat-channels-user-videos/)
- [How to get WeChat Search results by keyword](https://dataxapi.com/guides/wechat-search-posts/)

---

Catalog revision bf04cdef3b75e745. [HTML version](https://dataxapi.com/answers/wechat-official-account-dify/)
