{
  "openapi": "3.0.1",
  "info": {
    "title": "WeChat Articles Scraper",
    "description": "WeChat Articles Scraper SD - WeChat Articles Scraper is a social media data tool that extracts WeChat Official Account (公众号) articles by keyword: title, summary, account, publish date, cover image and article link, plus full text, images and account details for article links. No login.",
    "version": "1.0",
    "x-build-id": "39ZkkVEqjrOg2Cvi7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~wechat-articles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-wechat-articles-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/neuro-scraper~wechat-articles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-wechat-articles-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/neuro-scraper~wechat-articles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-wechat-articles-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",
            "type": "array",
            "description": "Words to search WeChat Official Account articles for, one per line (Chinese works best, e.g. 人工智能, 新能源汽车, a brand name). Each keyword returns up to Max items per keyword.",
            "items": {
              "type": "string"
            }
          },
          "articleUrls": {
            "title": "Article links",
            "type": "array",
            "description": "WeChat article links (https://mp.weixin.qq.com/s/... or https://mp.weixin.qq.com/s?__biz=...&mid=...&idx=...&sn=...). Each gives one full row: text, HTML, images, author, account id, WeChat id, bio, original flag, IP province and albums.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Results page links",
            "type": "array",
            "description": "Optional: a WeChat article results page link you already have (with ?query=...&type=2). It is read like a keyword.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Rows per keyword (or results link). The Actor follows the result pages until this number; logged out about 10 pages of 10 results are shown per keyword, so split broad topics into several keywords for more.",
            "default": 20
          },
          "maxPagesPerQuery": {
            "title": "Max pages per keyword",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Result pages to read per keyword (10 results each, at most 10 pages are shown logged out).",
            "default": 10
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "latest"
            ],
            "type": "string",
            "description": "relevance = the order WeChat search returns; latest = the results of each keyword sorted newest first (the Actor reads the pages, then sorts).",
            "default": "relevance"
          },
          "publishTime": {
            "title": "Published within",
            "enum": [
              "all",
              "day",
              "week",
              "month",
              "half_year",
              "year"
            ],
            "type": "string",
            "description": "Keep only articles published in this window (applied by the Actor to the results it reads).",
            "default": "all"
          },
          "publishedAfter": {
            "title": "Only articles published after",
            "type": "string",
            "description": "A date (2026-11-01), an ISO time or a period (\"7 days\", \"2 weeks\", \"3 months\"). Older articles are skipped. China time when no time zone is given."
          },
          "accountNames": {
            "title": "Only these accounts",
            "type": "array",
            "description": "Keep only results from these Official Accounts (exact account name, e.g. 新华网). Applied by the Actor to the results of your keywords.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new articles (monitoring)",
            "type": "boolean",
            "description": "Remembers the articles saved by earlier runs (a key-value store in your account) and skips them next time.",
            "default": false
          },
          "resolveArticleUrls": {
            "title": "Add article links",
            "type": "boolean",
            "description": "Follows each result to its mp.weixin.qq.com article link (one extra request per row). These links are temporary (they expire after some hours); biz + mid + idx stay stable when the article is opened.",
            "default": true
          },
          "includeContent": {
            "title": "Open each article (full text)",
            "type": "boolean",
            "description": "Tries to open every search result for its full text, images and account details. Since November 2026 WeChat answers result links with a verification page that the Actor never solves; the row then keeps its search data and says so in contentStatus. Article links in 'Article links' always open.",
            "default": false
          },
          "includeHtml": {
            "title": "Include article HTML",
            "type": "boolean",
            "description": "Adds the article body as HTML (content). Text (contentText) and Markdown (contentMarkdown) are always included when an article is opened.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies in China (the default) work best: the search answered from residential IPs in China and from Bangladesh (measured 2026-11-14), and a blocked IP is replaced automatically.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "CN"
            }
          },
          "maxConcurrency": {
            "title": "Parallel keywords",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many keywords / results links are read at the same time, each on its own session and proxy IP.",
            "default": 3
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Extra pause between two requests of one worker, in milliseconds. 0 = the Actor's own short pacing (0.4-1.0 s).",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}