{
  "openapi": "3.0.1",
  "info": {
    "title": "WeChat Official Account Scraper: Search & Articles 微信公众号",
    "description": "Search WeChat (微信) articles by keyword, get the articles a WeChat Official Account (微信公众号) published, an article's full text by its link, and its current reads, likes, shares and comments. No login, no cookie, no QR code. Pay only for results returned.",
    "version": "1.0",
    "x-build-id": "kU7UuW6zdTlkUCaBX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataxapi~wechat-official-account-articles/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataxapi-wechat-official-account-articles",
        "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/dataxapi~wechat-official-account-articles/runs": {
      "post": {
        "operationId": "runs-sync-dataxapi-wechat-official-account-articles",
        "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/dataxapi~wechat-official-account-articles/run-sync": {
      "post": {
        "operationId": "run-sync-dataxapi-wechat-official-account-articles",
        "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": {
          "accounts": {
            "title": "Accounts by original ID (公众号原始 ID)",
            "type": "array",
            "description": "One account per line. Returns its articles newest first: title, digest, link, time published, lead or below, format, cover. The account's original ID, mostly starting with gh_ but not always, not the account's name.",
            "items": {
              "type": "string"
            }
          },
          "maxArticlesPerAccount": {
            "title": "Articles per account",
            "minimum": 10,
            "maximum": 1000,
            "type": "integer",
            "description": "How many to return for each entry above, 10 at least (one page). Each one returned is one charged result.",
            "default": 10
          },
          "searchQueries": {
            "title": "Search keywords (搜索词)",
            "type": "array",
            "description": "One keyword or phrase per line, in Chinese for the best results. Returns what WeChat Search finds: Official Account articles (and Channels videos unless you choose articles only) with title, digest, the account's name, time published and link.",
            "items": {
              "type": "string"
            }
          },
          "resultType": {
            "title": "Articles or videos",
            "enum": [
              "article",
              "video"
            ],
            "type": "string",
            "description": "Official Account articles only (article) or Channels videos only (video); both mixed when left out."
          },
          "searchSort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "latest",
              "popular"
            ],
            "type": "string",
            "description": "By relevance, by time published (newest first) or by how hot.",
            "default": "relevance"
          },
          "publishedWithin": {
            "title": "Published within",
            "enum": [
              "day",
              "week",
              "half_year"
            ],
            "type": "string",
            "description": "Only those published in the last day, week or half year."
          },
          "maxResultsPerQuery": {
            "title": "Results per keyword",
            "minimum": 20,
            "maximum": 1000,
            "type": "integer",
            "description": "How many to return for each entry above, 20 at least (one page). Each one returned is one charged result.",
            "default": 20
          },
          "articleUrls": {
            "title": "Article links (文章链接)",
            "type": "array",
            "description": "One article per line. Returns the whole article: title, full text, byline, the account's name and IDs, time published, IP location. Works with: Link to the article, pasted as it is: the long link with __biz, mid, idx and sn, the short /s/ link, or a share text with one of them in it.",
            "items": {
              "type": "string"
            }
          },
          "countArticleUrls": {
            "title": "Article links to read counts of (要查阅读数的文章)",
            "type": "array",
            "description": "One article per line, the long link with __biz, mid, idx and sn. Returns its current reads, likes, recommends, shares, saves and comments. Works with: The article's long link, with __biz, mid, idx and sn.",
            "items": {
              "type": "string"
            }
          },
          "fullText": {
            "title": "Full text of each listed article (文章全文)",
            "type": "boolean",
            "description": "Also read the full text of every article listed for the accounts above. Each full text is one more charged result.",
            "default": false
          },
          "counts": {
            "title": "Reads, likes, shares, comments (阅读点赞数)",
            "type": "boolean",
            "description": "Also read each article's current counts. Each set of counts is one more charged result.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}