{
  "openapi": "3.0.1",
  "info": {
    "title": "WeChat Official Account Scraper: WeChat Articles, 微信公众号",
    "description": "WeChat Official Account (公众号) scraper and WeChat API, no login: WeChat search for articles by keyword, or read article links, accounts and albums (合集). Chinese articles with title, account, author, exact publish time, digest, cover, permanent link, IP region, full text. Misses free.",
    "version": "0.1",
    "x-build-id": "njlvG5q95qEtYVgQH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~wechat-official-account-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-wechat-official-account-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/hyperbach~wechat-official-account-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-wechat-official-account-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/hyperbach~wechat-official-account-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-wechat-official-account-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "Keywords (article search)",
            "maxItems": 100,
            "type": "array",
            "description": "Words to search WeChat Official Account articles for, one search each (Chinese words give the lane's results, e.g. 人工智能). A Sogou WeChat search link (weixin.sogou.com/weixin?…query=…) is read as its words. Up to 100 articles a search (the source's own end).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "articleUrls": {
            "title": "Article links",
            "maxItems": 2000,
            "type": "array",
            "description": "WeChat article links, one row each: the permanent link (mp.weixin.qq.com/s?__biz=…&sn=…), the short link (mp.weixin.qq.com/s/…), a temporary link from a search (…src=11&signature=…, served for hours) or a Sogou result link (weixin.sogou.com/link?url=…). A link to a deleted article, a closed account or a wrong id gives a free row with the source's own words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "accounts": {
            "title": "Accounts (a sample of their articles)",
            "maxItems": 50,
            "type": "array",
            "description": "An official account by its WeChat id (rmrbwx), its name (人民日报) or one of its article links. The Actor searches the account's WeChat id and keeps the articles whose page names the account: a sample of what the search index holds, not the account's history (that list needs a WeChat client session). A gh_ id or a __biz alone gives a free row asking for one of the three forms.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "albumUrls": {
            "title": "Album (合集) links",
            "maxItems": 50,
            "type": "array",
            "description": "Album links (mp.weixin.qq.com/mp/appmsgalbum?__biz=…&album_id=…): every article of the album, with the album's own article count and total read count.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerKeyword": {
            "title": "Max articles per keyword or account",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "The most article rows each keyword or account search delivers (the source lists at most 100 a search); 0 = all it lists. Albums read every article unless Max results stops the run.",
            "default": 20
          },
          "sortBy": {
            "title": "Order of a search",
            "enum": [
              "relevance",
              "latest",
              "oldest",
              "hot"
            ],
            "type": "string",
            "description": "relevance = the source's own order; latest or oldest = this Actor reads the whole list (up to 100), then reads the pages until it holds the newest (oldest) articles by each page's own publish second (Sogou's index time can trail it by days; oldest assumes Sogou indexed each article within 31 days of its publish second). The source sorts nothing for a logged-out reader. hot (the lane leader's name) is read as relevance: no logged-out count ranks WeChat articles.",
            "default": "relevance"
          },
          "publishedWithin": {
            "title": "Published within",
            "enum": [
              "any",
              "day",
              "week",
              "month",
              "halfYear",
              "year"
            ],
            "type": "string",
            "description": "Only articles published in this period, checked on each article's exact publish second (the source applies no time filter for a logged-out reader). An article outside is left out: no row, no charge.",
            "default": "any"
          },
          "publishedAfter": {
            "title": "Published on or after (date)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "A date like 2026-11-01 (Beijing time, as the articles show it): only articles published on that day or later."
          },
          "publishedBefore": {
            "title": "Published on or before (date)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "A date like 2026-11-09 (Beijing time): only articles published on that day or earlier."
          },
          "excludeKeywords": {
            "title": "Leave out search cards with these words",
            "type": "array",
            "description": "A search card whose title or snippet holds any of these words is left out before its page is read (no row, no charge).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyFromAccounts": {
            "title": "Only from these accounts",
            "type": "array",
            "description": "Keep only articles of these accounts: names, WeChat ids, gh_ ids or __biz values, matched on each article's own page (its current name). Other articles are left out: no row, no charge.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "strictKeywordMatch": {
            "title": "Title must hold the keyword",
            "type": "boolean",
            "description": "Leave out a search card whose title does not hold the keyword (the source also matches the article body). Words split by spaces: any one of them is enough.",
            "default": false
          },
          "searchCardsOnly": {
            "title": "Search cards only (faster, fewer fields)",
            "type": "boolean",
            "description": "For searches and albums: a row from the search card (title, account name, the source's index time, snippet, cover, the temporary link) or the album's list, without reading each article's page. The card's title and account name are the search index's (a renamed account can keep its old name there). Off = every row is read from the article's own page. onlyFromAccounts and the accounts input still read each card's page: the card names no account id. On in the example input: since 2026-11-13 WeChat answers the links a search gives with its verification page.",
            "default": false
          },
          "includeContent": {
            "title": "Include the full text",
            "type": "boolean",
            "description": "Add the article's text, its Markdown and its pictures (URL, width, ratio), the text length and the reading minutes.",
            "default": false
          },
          "includeHtml": {
            "title": "Include the text's HTML",
            "type": "boolean",
            "description": "Add the article body's own HTML (large: inline styles kept). Turns on the full text too.",
            "default": false
          },
          "translateTo": {
            "title": "Translate the title and digest to",
            "pattern": "^([A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*)?$",
            "type": "string",
            "description": "A language code such as en, de, ja or pt-BR: each row gets a machine translation of its title and digest beside the originals (labelled as a machine translation). Empty = no translation."
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged article rows of the whole run; 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}