# WeChat Article URL to Markdown & Full Text API (AI/RAG)

**Use case:** 

Convert direct mp.weixin.qq.com WeChat Official Account article URLs into clean, structured Markdown and plain text with inline HD image links, author, WeChat ID, and Biz ID. Built for AI agents, Claude MCP, Dify, and RAG pipelines.

## Input

```json
{
  "mode": "article_search",
  "keywords": [
    "DeepSeek",
    "新能源汽车"
  ],
  "accountNames": [],
  "publishedWithin": "any",
  "sortBy": "relevance",
  "articleUrls": [
    "https://mp.weixin.qq.com/s?src=11&timestamp=1794075511&ver=7074&signature=dX965Rx5535UKvQ01r2tb6998sOAVyxU5RTw1qWMgEp5LxzvxNNsTmAhWpftTQN*ZmtCRCjj-f2wEOl-xuyOLBFI5RIbpUkt6HZjBs7Jpse9jW4*3cA*C2A-PWUQF0VG&new=1",
    "https://mp.weixin.qq.com/s?src=11&timestamp=1794075511&ver=7074&signature=HmvfaF70ZcVgbO1vvtVYi8Bzj6dG1Hx482A8YEw4pehab6w7oLZuw7XAtFlM-6abQL3EFRFXGDlJcjk6QHYASRpzUy88ctwZnEfX17enekOo6pGuGb7pp37AwqdgZDak&new=1"
  ],
  "autoLocalize": false,
  "maxResults": 10,
  "onlyNewResults": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "docId": {
    "label": "Doc ID",
    "format": "string"
  },
  "articleId": {
    "label": "Article ID",
    "format": "string"
  },
  "mode": {
    "label": "Scrape Mode",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "accountName": {
    "label": "Official Account Name",
    "format": "string"
  },
  "accountId": {
    "label": "WeChat ID (微信号)",
    "format": "string"
  },
  "accountBiz": {
    "label": "Account Biz ID",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "publishedAtIso": {
    "label": "Published At (ISO)",
    "format": "string"
  },
  "wordCount": {
    "label": "Length (Chars)",
    "format": "integer"
  },
  "regionEn": {
    "label": "IP Region (EN)",
    "format": "string"
  },
  "summary": {
    "label": "Summary / Excerpt",
    "format": "string"
  },
  "articleText": {
    "label": "Full Article Text",
    "format": "string"
  },
  "articleMarkdown": {
    "label": "Article Markdown (LLM Ready)",
    "format": "string"
  },
  "images": {
    "label": "Article HD Images",
    "format": "array"
  },
  "articleUrl": {
    "label": "Article URL",
    "format": "string"
  },
  "queryUsed": {
    "label": "Query Used",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The WeChat Official Account Scraper 公众号—Articles  & MD Actor is ready to run with the inputs already set for "WeChat Article URL to Markdown & Full Text API (AI/RAG)". [Sign up or log in](https://console.apify.com/create-task-from-example/HYgH0c73xZ1QZaNvg) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "WeChat Article URL to Markdown & Full Text API (AI/RAG)" task

The WeChat Official Account Scraper 公众号—Articles  & MD Actor will start running based on the input automatically. You can also change all the input fields, like 1. scrape mode, 2. search keywords (chinese or english), and more, to match your specific use case.

### 3. Receive the "WeChat Article URL to Markdown & Full Text API (AI/RAG)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as doc id, article id, scrape mode, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "WeChat Article URL to Markdown & Full Text API (AI/RAG)" task via API](https://apify.com/axon-studio/wechat-official-account-scraper.md).

## About this Actor

This example demonstrates how to use [WeChat Official Account Scraper 公众号—Articles  & MD](https://apify.com/axon-studio/wechat-official-account-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/axon-studio/wechat-official-account-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/axon-studio/wechat-official-account-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
