{
  "openapi": "3.0.1",
  "info": {
    "title": "WeChat Channels Comment Sentiment & Consumer Insights",
    "description": "Analyze WeChat Channels comments and replies for sentiment, recurring questions, objections, purchase intent, supplied brand and competitor mentions, evidence quotes, and content opportunities.",
    "version": "0.1",
    "x-build-id": "IFl2BfDNGpdD8HBJg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrupulous_buckler~wechat-channels-comment-sentiment-consumer-insights/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrupulous_buckler-wechat-channels-comment-sentiment-consumer-insights",
        "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/scrupulous_buckler~wechat-channels-comment-sentiment-consumer-insights/runs": {
      "post": {
        "operationId": "runs-sync-scrupulous_buckler-wechat-channels-comment-sentiment-consumer-insights",
        "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/scrupulous_buckler~wechat-channels-comment-sentiment-consumer-insights/run-sync": {
      "post": {
        "operationId": "run-sync-scrupulous_buckler-wechat-channels-comment-sentiment-consumer-insights",
        "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": "Data source",
            "enum": [
              "demo",
              "liveVideoComments",
              "datasetComments",
              "uploadedComments"
            ],
            "type": "string",
            "description": "Preview a static example without the report fee, collect public comments from video links, analyze Apify Datasets, or analyze uploaded comments.",
            "default": "demo"
          },
          "videoUrls": {
            "title": "WeChat Channels video links",
            "type": "array",
            "description": "One to five public WeChat Channels video share links. Used only in live mode.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "datasetId": {
            "title": "Primary comments Dataset ID",
            "type": "string",
            "description": "Dataset from SocialDataX WeChat Channels API or another compatible comments export.",
            "default": ""
          },
          "sourceDatasetIds": {
            "title": "Additional comments Dataset IDs",
            "type": "array",
            "description": "Optional additional Apify Datasets. Report rows and previously analyzed report rows are ignored.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "uploadedComments": {
            "title": "Uploaded comments",
            "type": "array",
            "description": "Paste strings or JSON comment records. Common comment, reply, author, likes, video and parent-comment fields are recognized.",
            "default": []
          },
          "topic": {
            "title": "Research topic",
            "type": "string",
            "description": "Short report topic, product, campaign, category or customer question.",
            "default": "WeChat Channels audience discussion"
          },
          "commentKeywords": {
            "title": "Keywords to measure inside comments",
            "type": "array",
            "description": "Examples: price, side effects, where to buy, product names, campaign phrases or usage scenarios.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "requireKeywordMatch": {
            "title": "Analyze only comments matching a supplied keyword",
            "type": "boolean",
            "description": "Off by default so surrounding conversation context is preserved.",
            "default": false
          },
          "knownEntities": {
            "title": "Brands, products and other entities",
            "type": "array",
            "description": "Exact names to measure. The Actor does not automatically identify every possible brand.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "competitorNames": {
            "title": "Competitor names",
            "type": "array",
            "description": "Exact competitor brand or product names to identify and compare.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeReplies": {
            "title": "Collect reply threads in live mode",
            "type": "boolean",
            "description": "After collecting top-level comments, request replies for a limited number of comment threads when upstream IDs are available. Each upstream run can incur separate charges.",
            "default": true
          },
          "maxReplyThreads": {
            "title": "Maximum reply threads to collect",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Limits extra upstream calls used for comment replies.",
            "default": 5
          },
          "maxTotalComments": {
            "title": "Comments and replies to analyze (maximum 100)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "One $1.99 report analyzes at most 100 normalized comments and replies in total.",
            "default": 100
          },
          "maxCommentsPerVideo": {
            "title": "Maximum top-level comments per video",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Live-mode limit before reply collection.",
            "default": 50
          },
          "maxEvidence": {
            "title": "Maximum evidence excerpts per report section",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "Limits the number of auditable source-comment excerpts returned in each report section.",
            "default": 20
          },
          "maxOpportunities": {
            "title": "Maximum content opportunities",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Limits the number of evidence-linked content opportunities returned in the report.",
            "default": 10
          },
          "regulatedTopic": {
            "title": "Health or other regulated topic",
            "type": "boolean",
            "description": "Adds risky-claim evidence and safer framing. This is a screening aid, not legal or medical approval.",
            "default": false
          },
          "includeSourceComments": {
            "title": "Keep normalized source comments inside the report",
            "type": "boolean",
            "description": "Useful for audit and export; turn off for a smaller report row.",
            "default": true
          },
          "upstreamMaxChargeUsd": {
            "title": "Maximum separate upstream charge",
            "minimum": 0.01,
            "maximum": 10,
            "type": "number",
            "description": "Maximum total charge allowed for each SocialDataX upstream Actor run. This is separate from the $1.99 report fee.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}