# Wechat Official Account (New) (`potato_2004/wechat-official-account-new`) Actor

Welcome to the WeChat Official Account RSS Service project. This project provides an RSS feed for WeChat Official Accounts by fetching article lists using gh_id.

- **URL**: https://apify.com/potato_2004/wechat-official-account-new.md
- **Developed by:** [potato](https://apify.com/potato_2004) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## WeChat Official Account RSS Service

Welcome to the WeChat Official Account RSS Service project. This project provides an RSS feed for WeChat Official Accounts by fetching article lists using gh_id.

### Project Status

Please note that this project is in its initial stages. As a result, many WeChat Official Accounts and articles may not yet be included in the database. We appreciate your understanding and patience as we continue to develop and expand our coverage.

### How to Use

1. Fetching Articles:

Use the gh_id of the WeChat Official Account to get the list of articles.

2. Requesting New Accounts:
   If you require a specific WeChat Official Account that is not currently available, please submit a request through the issues page. We will do our best to add it as soon as possible.
   Contributing

We welcome contributions to this project. If you have suggestions, bug reports, or feature requests, please open an issue.

### Contact

If you have any questions or need further assistance, feel free to reach out via the issues page or contact us directly.

Thank you for your support!

## 中文说明

欢迎使用微信公众账号 RSS 服务项目。这个项目通过使用 gh_id 获取微信公众账号的文章列表，提供 RSS 服务。

### 项目状态

请注意，该项目处于初期阶段，因此许多微信公众号和文章可能尚未收录。感谢您的理解和耐心，我们会继续开发和扩展我们的覆盖范围。

### 如何使用

1. 获取文章:

使用微信公众号的 gh_id 获取文章列表。

2. 请求新账号:

如果您需要的微信公众号当前不可用，请通过 issues 页面 提交请求。我们会尽快添加。

### 贡献

我们欢迎对该项目的贡献。如果您有建议、错误报告或功能请求，请打开一个 issue。

### 联系方式

如果您有任何问题或需要进一步的帮助，请通过 issues 页面联系我们。

感谢您的支持！

# Actor input Schema

## `gh_id` (type: `string`):

WeChat Official Account ID

## `page` (type: `integer`):

The page number to retrieve

## `page_size` (type: `integer`):

The number of items to retrieve per page

## `after_at` (type: `string`):

Retrieve items after this timestamp (in ISO 8601 format)

## Actor input object example

```json
{
  "gh_id": "gh_2ba2404c01c0",
  "page": 1,
  "page_size": 10,
  "after_at": ""
}
```

# Actor output Schema

## `articles` (type: `string`):

Article records saved in the default dataset. Use the overview view for the title, URL, publication time, author, and account name.

## `summary` (type: `string`):

Run statistics including the requested gh_id, fetched pages, saved items, duplicates, and errors.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "gh_id": "gh_2ba2404c01c0",
    "page": 1,
    "page_size": 10,
    "after_at": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("potato_2004/wechat-official-account-new").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "gh_id": "gh_2ba2404c01c0",
    "page": 1,
    "page_size": 10,
    "after_at": "",
}

# Run the Actor and wait for it to finish
run = client.actor("potato_2004/wechat-official-account-new").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "gh_id": "gh_2ba2404c01c0",
  "page": 1,
  "page_size": 10,
  "after_at": ""
}' |
apify call potato_2004/wechat-official-account-new --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,potato_2004/wechat-official-account-new"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3oeEsupcF4ZKuXa4e/builds/s9pfcZOM0GzKoa8GG/openapi.json
