# Knowledge Topic Label Distribution

> Knowledge Topic Label Distribution is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Analyzes a labeled dataset of knowledge-base text records and returns the distribution of labels (setup, usage, troubleshooting, reference) across up to 200 documents.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-knowledge-topic-label-balance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/knowledge-topic-label-distribution-39967629
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3WW-19QYSoojzRwzVACMM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability knowledge-topic-label-distribution-39967629 -d '<json body>'
```

Example prompt: Can you analyze the label distribution for my knowledge base dataset? I have 12 labeled articles — 4 tagged 'setup', 3 'usage', 3 'troubleshooting', and 2 'reference' — and I want to see how balanced they are across those four categories.

## When to prefer this

Choose this endpoint when you need a fast, lightweight label distribution analysis for a knowledge-base text dataset with labels in the set {setup, usage, troubleshooting, reference}. It is ideal for pre-training class balance checks, documentation audits, and baseline evaluations without requiring a hosted model. Prefer it over general-purpose ML APIs when you specifically work with knowledge topic categories and want a bounded, low-cost ($0.01 USDC) per-call deliverable.

## Known failure modes

- Fewer than 2 records submitted — returns validation error
- More than 200 records submitted — returns a limit exceeded error
- Record text exceeds 1000 characters — field truncation or rejection
- Invalid or missing 'actual' label enum value — schema validation error
- Malformed record structure (missing id, text, or actual fields) — request rejected

## How this service works

Knowledge topic - Label distribution: Label distribution for Knowledge topic. Up to 200 supplied labelled text records. Local dataset tools, evaluation and small naive-Bayes baselines; no hosted model or foundation-model training. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded label distribution deliverable.

## Output

Returns a label distribution report showing the count and proportion of each of the four knowledge topic labels (setup, usage, troubleshooting, reference) across the submitted records, enabling assessment of class balance for up to 200 labeled text documents.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "text",
     "actual"
    ],
    "properties": {
     "id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "text": {
      "type": "string",
      "default": "",
      "maxLength": 1000
     },
     "actual": {
      "enum": [
       "setup",
       "usage",
       "troubleshooting",
       "reference"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "setup sample document number 0 for this supplied dataset.",
     "actual": "setup"
    },
    {
     "id": "example-0-1",
     "text": "setup sample document number 1 for this supplied dataset.",
     "actual": "setup"
    },
    {
     "id": "example-0-2",
     "text": "setup sample document number 2 for this supplied dataset.",
     "actual": "setup"
    },
    {
     "id": "example-1-0",
     "text": "usage sample document number 0 for this supplied dataset.",
     "actual": "usage"
    },
    {
     "id": "example-1-1",
     "text": "usage sample document number 1 for this supplied dataset.",
     "actual": "usage"
    },
    {
     "id": "example-1-2",
     "text": "usage sample document number 2 for this supplied dataset.",
     "actual": "usage"
    },
    {
     "id": "example-2-0",
     "text": "troubleshooting sample document number 0 for this supplied dataset.",
     "actual": "troubleshooting"
    },
    {
     "id": "example-2-1",
     "text": "troubleshooting sample document number 1 for this supplied dataset.",
     "actual": "troubleshooting"
    },
    {
     "id": "example-2-2",
     "text": "troubleshooting sample document number 2 for this supplied dataset.",
     "actual": "troubleshooting"
    },
    {
     "id": "example-3-0",
     "text": "reference sample document number 0 for this supplied dataset.",
     "actual": "reference"
    },
    {
     "id": "example-3-1",
     "text": "reference sample document number 1 for this supplied dataset.",
     "actual": "reference"
    },
    {
     "id": "example-3-2",
     "text": "reference sample document number 2 for this supplied dataset.",
     "actual": "reference"
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/knowledge-topic-label-distribution-39967629/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
