{
  "openapi": "3.0.1",
  "info": {
    "title": "WeChat Official Account Scraper 公众号—Articles  & MD",
    "description": "Scrape WeChat Official Account (微信公众号) articles, account profiles & verified corporate owners by keyword or mp.weixin.qq.com URLs. Extract full article text, LLM-ready Markdown, HD images, 19-digit Doc ID, WeChat ID & IP province with zero login. Ready for n8n & Claude MCP.",
    "version": "0.0",
    "x-build-id": "ttiWZuOC4Ovce0I61"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axon-studio~wechat-official-account-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axon-studio-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/axon-studio~wechat-official-account-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axon-studio-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/axon-studio~wechat-official-account-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axon-studio-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": {
          "mode": {
            "title": "1. Scrape Mode",
            "enum": [
              "article_search",
              "account_articles",
              "article_details"
            ],
            "type": "string",
            "description": "Choose how to discover and extract WeChat Official Account articles.",
            "default": "article_search"
          },
          "keywords": {
            "title": "2. Search Keywords (Chinese or English)",
            "type": "array",
            "description": "Enter one or more keywords in Chinese or English (e.g., 'DeepSeek', 'Tesla', '新能源汽车', 'artificial intelligence'). Automatically translated into Chinese when Auto-Localize is enabled.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "accountNames": {
            "title": "3. Target Official Account Names (Optional, for 'Official Account Articles' mode)",
            "type": "array",
            "description": "Optional: Enter specific WeChat Official Account names (e.g., '财联社', '第一财经', '晚点LatePost', '36氪') to extract articles published by those accounts.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "publishedWithin": {
            "title": "4. Published Within (Time Filter)",
            "enum": [
              "any",
              "1d",
              "7d",
              "30d",
              "180d"
            ],
            "type": "string",
            "description": "Filter WeChat Official Account articles by publication recency.",
            "default": "any"
          },
          "sortBy": {
            "title": "5. Sort Order",
            "enum": [
              "relevance",
              "newest",
              "popular"
            ],
            "type": "string",
            "description": "Sort extracted articles by relevance, newest publication timestamp first, or content depth/popularity.",
            "default": "relevance"
          },
          "articleUrls": {
            "title": "6. Direct WeChat Article URLs (Optional, for 'Direct Article URLs' mode)",
            "type": "array",
            "description": "Optional: Paste direct https://mp.weixin.qq.com/s/... URLs to extract their full text, LLM Markdown, and HD images directly.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "autoLocalize": {
            "title": "7. Auto-Translate English Keywords to Chinese",
            "type": "boolean",
            "description": "Automatically translates English brand or topic queries into Simplified Chinese via built-in dictionary and Google Translate.",
            "default": true
          },
          "maxResults": {
            "title": "8. Max Articles to Extract",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of WeChat Official Account articles to extract (Free tier preview: 10 lifetime runs, up to 15 articles per run; up to 5,000 unlocked for paid plans).",
            "default": 50
          },
          "onlyNewResults": {
            "title": "9. Enable Delta Mode (Only Emit Unseen Articles)",
            "type": "boolean",
            "description": "Remembers previously scraped article IDs across scheduled runs and outputs only newly published articles.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "10. Proxy Configuration",
            "type": "object",
            "description": "Optional proxy settings. Works out-of-the-box without proxies.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}