{
  "openapi": "3.0.1",
  "info": {
    "title": "💬 WeChat Channels Video & Feed Scraper (微信视频号)",
    "description": "Search WeChat Channels (微信视频号) videos and creator feeds by keyword, inspect share cards, comments, and video details with decryption keys. $0 Actor Start Fee — no login or WeChat client required.",
    "version": "0.3",
    "x-build-id": "a7tYOhd0vhAlRNLMv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ethereal_wool~wechat-channels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ethereal_wool-wechat-channels-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/ethereal_wool~wechat-channels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ethereal_wool-wechat-channels-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/ethereal_wool~wechat-channels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ethereal_wool-wechat-channels-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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "standard",
              "videoMetrics",
              "channelVideos",
              "channelSearchVideos",
              "collectionVideos",
              "videoComments"
            ],
            "type": "string",
            "description": "Select a feed, public metrics, or the original combined inputs. Each feed item or metrics row costs one result event.",
            "default": "standard"
          },
          "channels": {
            "title": "Channel usernames",
            "maxItems": 50,
            "type": "array",
            "description": "Up to 50 public finder usernames, such as a username ending in @finder returned by a channel feed.",
            "items": {
              "type": "string"
            }
          },
          "videos": {
            "title": "Videos",
            "maxItems": 50,
            "type": "array",
            "description": "For videoMetrics, use public WeChat share links. For videoComments, use numeric video IDs as strings.",
            "items": {
              "type": "string"
            }
          },
          "collections": {
            "title": "Collection IDs",
            "maxItems": 50,
            "type": "array",
            "description": "Numeric collection IDs as strings.",
            "items": {
              "type": "string"
            }
          },
          "collectionChannel": {
            "title": "Collection owner",
            "type": "string",
            "description": "Optional finder username of the collection owner."
          },
          "searchKeyword": {
            "title": "Within-channel keyword",
            "maxLength": 100,
            "type": "string",
            "description": "One term for channelSearchVideos."
          },
          "maxPages": {
            "title": "Pages per target",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum pages per target and per expanded reply thread. maxItems caps the combined rows.",
            "default": 3
          },
          "parentCommentId": {
            "title": "Export one reply thread",
            "type": "string",
            "description": "For videoComments with one video, supply its parent comment ID as a string to start directly with replies."
          },
          "expandReplies": {
            "title": "Expand reported reply threads",
            "type": "boolean",
            "description": "Deliver top-level comments and expand those reporting replies. Every delivered parent or reply counts toward maxItems.",
            "default": false
          },
          "shareUrls": {
            "title": "Public share links (preview mode)",
            "maxItems": 50,
            "type": "array",
            "description": "Paste up to 50 WeChat video share links (weixin.qq.com/sph/...). When filled in, only public previews run. $0.01 per delivered card. Search inputs and the provider proxy are ignored.",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Search keywords (videos)",
            "type": "array",
            "description": "Keywords to search WeChat Channels videos for. Each keyword is searched independently. Chinese keywords return the most results.",
            "default": [
              "美食"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Video search mode",
            "enum": [
              "comprehensive",
              "latest",
              "both"
            ],
            "type": "string",
            "description": "How to rank video-search results. 'comprehensive' = relevance; 'latest' = newest first; 'both' = run both and merge.",
            "default": "comprehensive"
          },
          "userKeywords": {
            "title": "Account keywords",
            "type": "array",
            "description": "Keywords to search WeChat accounts for. Returns matching accounts with name, description and avatar. A delivered account costs $0.01.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "videoIds": {
            "title": "Video IDs / exportIds",
            "type": "array",
            "description": "WeChat Channels video numeric ids (preferred, e.g. '14941130915890399732') or exportIds ('export/UzFf...', they expire) to fetch full detail: engagement counts, region, and the download-ready media URL + decode key. Use a numeric objectId or the exportId from video search. A delivered detail costs $0.03 total.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum total number of items to scrape across all modes.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Route the upstream API calls through an Apify Proxy to vary the source IP. Usually not needed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}