{
  "openapi": "3.0.1",
  "info": {
    "title": "Chinese AI Visibility Analyzer — Kimi, GLM, DeepSeek & Qwen",
    "description": "Measure brand visibility across Moonshot AI/Kimi, Z.ai/GLM, DeepSeek and Alibaba/Qwen with grounded citations, or normalize AI visibility datasets you already have.",
    "version": "0.4",
    "x-build-id": "2A3Yik0T6BKtuKHnW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zinin~chinese-ai-visibility-dataset-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zinin-chinese-ai-visibility-dataset-analyzer",
        "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/zinin~chinese-ai-visibility-dataset-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-zinin-chinese-ai-visibility-dataset-analyzer",
        "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/zinin~chinese-ai-visibility-dataset-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-zinin-chinese-ai-visibility-dataset-analyzer",
        "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",
        "required": [
          "brand"
        ],
        "properties": {
          "mode": {
            "title": "Analysis mode",
            "enum": [
              "live",
              "import"
            ],
            "type": "string",
            "description": "Older inputs that omit mode and contain import sources remain compatible."
          },
          "brand": {
            "title": "Brand to track",
            "pattern": "^[^\\u0000-\\u001F\\u007F-\\u009F]+$",
            "minLength": 1,
            "maxLength": 100,
            "type": "string",
            "description": "Exact company, product or brand name to find in model answers."
          },
          "brandAliases": {
            "title": "Brand aliases",
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Alternative spellings, transliterations or local-language names.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "brandWebsite": {
            "title": "Brand official website",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "Optional. Used to detect the official domain for branded-query classification and source-backed mention evidence. If omitted, a URL-shaped brand alias is used instead."
          },
          "competitors": {
            "title": "Competitors and aliases",
            "maxItems": 20,
            "type": "array",
            "description": "Optional JSON array such as [{\"name\":\"Adidas\",\"aliases\":[\"阿迪达斯\"]}].",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name"
              ],
              "properties": {
                "name": {
                  "title": "Competitor name",
                  "description": "Canonical competitor name.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "aliases": {
                  "title": "Competitor aliases",
                  "description": "Alternative spellings and local-language names.",
                  "type": "array",
                  "editor": "stringList",
                  "maxItems": 20,
                  "uniqueItems": true,
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                }
              }
            }
          },
          "queries": {
            "title": "Buyer-intent queries",
            "minItems": 1,
            "maxItems": 5,
            "uniqueItems": true,
            "type": "array",
            "description": "Use questions a real buyer asks while comparing products or vendors.",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 300
            }
          },
          "models": {
            "title": "Chinese AI families",
            "minItems": 1,
            "maxItems": 4,
            "uniqueItems": true,
            "type": "array",
            "description": "All four are selected by default. Stable family names map to tested model endpoints internally.",
            "items": {
              "type": "string",
              "enum": [
                "moonshot-kimi",
                "zai-glm",
                "deepseek",
                "alibaba-qwen"
              ],
              "enumTitles": [
                "Moonshot AI — Kimi K2.6",
                "Z.ai — GLM 4.6",
                "DeepSeek — V3.1",
                "Alibaba — Qwen 3.5 Flash (02-23)"
              ]
            }
          },
          "market": {
            "title": "Market",
            "minLength": 2,
            "maxLength": 80,
            "type": "string",
            "description": "Buyer market for live answers, or fallback market for imported rows.",
            "default": "United States"
          },
          "language": {
            "title": "Answer language",
            "minLength": 2,
            "maxLength": 40,
            "type": "string",
            "description": "Natural-language name such as English, Chinese, Russian or Georgian.",
            "default": "English"
          },
          "maxModelConcurrency": {
            "title": "Parallel model runs",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "One or two model batches at a time."
          },
          "inlineRows": {
            "title": "Inline JSON rows",
            "maxItems": 1000,
            "type": "array",
            "description": "Rows from a supported collector or aiObservation 1.0.",
            "items": {
              "type": "object"
            }
          },
          "inlineCsv": {
            "title": "Inline CSV",
            "maxLength": 500000,
            "type": "string",
            "description": "Header row plus up to 1,000 records."
          },
          "sourceDatasetIds": {
            "title": "Source Dataset IDs",
            "maxItems": 10,
            "uniqueItems": true,
            "type": "array",
            "description": "Buyer-accessible Apify Datasets."
          },
          "sourceDatasetHints": {
            "title": "Dataset adapter hints",
            "maxItems": 10,
            "type": "array",
            "description": "One source adapter per selected Dataset in the same order.",
            "items": {
              "type": "string"
            }
          },
          "sourceActorHint": {
            "title": "Inline source adapter",
            "enum": [
              "auto",
              "fayoussef/bulk-llm-runner",
              "apify/chatgpt-search-scraper",
              "apify/google-ai-overviews-scraper",
              "apify/perplexity-search-scraper",
              "apify/gemini-search-scraper",
              "zinin/llm-brand-visibility",
              "zinin/ai-overview-tracker",
              "ai-observation-1.0"
            ],
            "type": "string",
            "description": "Optional adapter hint for inline JSON or CSV rows."
          },
          "maxRows": {
            "title": "Maximum imported source rows",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard import cap before normalization and deduplication.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}