# BRAINIAC Product Category Classifier

> BRAINIAC Product Category Classifier is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-17).

Classifies e-commerce products into taxonomy categories and validates/infers categories from product data supplied as a list, CSV, JSON, or file.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/ecommerce-catalog/product-category-classify?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-product-category-classifier-604e8cf7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6BL2rpXoIHH8vnOmxa8JV

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 brainiac-product-category-classifier-604e8cf7 -d '<json body>'
```

Example prompt: Classify the categories for my product list — I'll give you the titles, brands, and any existing categories I already have, and I need you to tell me whether each one matches a known taxonomy, infer categories for any missing ones, and flag any conflicts.

## When to prefer this

Use this endpoint when you need to classify, validate, or infer e-commerce product categories at scale without setting up an account or subscription. It is well-suited for one-off catalog audits, pre-listing checks, or agent-driven pipelines that process product feeds. It supports flexible input (array, CSV, JSON, or file) and returns per-product classification results with conflict detection, making it preferable over manual taxonomy lookups or heavyweight PIM systems for lightweight catalog enrichment tasks.

## Known failure modes

- No products supplied — request rejected if both 'products' array and file/csv/json fields are absent
- Category conflict when multiple keyword rules match — no category chosen, returned as conflict issue
- Oversized input — CSV or JSON exceeding 200,000 characters or file base64 exceeding 12MB will be rejected
- Unknown taxonomy — categories not in the supported taxonomy cannot be matched
- Ambiguous product data — sparse titles or missing attributes may result in no suggested category

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object containing: a 'status' field (e.g. 'classified'), a 'classifications' array with per-product rows showing productRef, inferred/observed status, suppliedCategory, matchedCategory, suggestedCategory, and detail; an 'issues' array listing conflicts or inferred categories with row numbers and codes; productCount; checkedAt timestamp; channelPublished (always false); specificationsInvented (always false); and a limitations list explaining what the service does and does not do.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000,
   "minLength": 1
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/csv",
      "application/json",
      "text/plain"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000,
   "minLength": 1
  },
  "products": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "mpn": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "sku": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "gtin": {
      "type": "string",
      "maxLength": 20,
      "minLength": 1
     },
     "link": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1
     },
     "size": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "brand": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "color": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "price": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "title": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1
     },
     "width": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "height": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "length": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "weight": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "category": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1
     },
     "currency": {
      "type": "string",
      "maxLength": 12,
      "minLength": 1
     },
     "imageAlt": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1
     },
     "imageUrl": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1
     },
     "material": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "condition": {
      "type": "strin
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "issues": [
   {
    "row": 2,
    "code": "category_inferred",
    "kind": "inferred",
    "field": "category",
    "detail": "One caller-supplied keyword matched the title. The category was not copied onto the product.",
    "productRef": "shirt-1"
   },
   {
    "row": 3,
    "code": "category",
    "kind": "conflict",
    "field": "category",
    "detail": "More than one keyword rule matched: Home > Kitchen, Apparel. No category was chosen.",
    "productRef": "mix-1"
   }
  ],
  "status": "classified",
  "checkedAt": "2026-11-03T09:00:00.000Z",
  "limitations": [
   "No sales channel was contacted and no product was published.",
   "Specifications, dimensions, materials, and certifications are not invented.",
   "…"
  ],
  "productCount": 3,
  "classifications": [
   {
    "row": 1,
    "detail": "The supplied category matches the taxonomy. It was not inferred.",
    "status": "observed",
    "inferred": false,
    "productRef": "mug-1",
    "matchedCategory": "Home > Kitchen",
    "suppliedCategory": "Home > Kitchen",
    "suggestedCategory": ""
   },
   {
    "row": 2,
    "detail": "One caller-supplied keyword matched the title. The category was not copied onto the product.",
    "status": "inferred",
    "inferred": true,
    "productRef": "shirt-1",
    "matchedCategory": "",
    "suppliedCategory": "",
    "suggestedCategory": "Apparel"
   },
   "…"
  ],
  "channelPublished": false,
  "specificationsInvented": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-product-category-classifier-604e8cf7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
