# BRAINIAC Product Feed Validator

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

Validates e-commerce product feed data against catalog schemas (brainiac-catalog-v1 or Google Merchant subset), returning per-field issues, missing required fields, GTIN check-digit errors, and type conflicts.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/ecommerce-catalog/product-feed-validate?utm_source=zero.xyz
- Price: $0.05/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-feed-validator-008395f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PKvV8_diJCDTQwoTYFvTS

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-feed-validator-008395f6 -d '<json body>'
```

Example prompt: Can you validate this product feed CSV against the google-merchant-subset format and tell me which fields are missing, have GTIN check-digit errors, or have type problems? Here's the CSV data: [paste CSV here].

## When to prefer this

Use this endpoint when you need a fast, schema-aware structural validation of a product feed before attempting to publish or upload it to a sales channel — especially when targeting Google Merchant Center compatibility or the brainiac-catalog-v1 spec. It is ideal for catching GTIN check-digit errors, missing required fields, unknown columns, and type mismatches before submission. Prefer it over manual review or generic JSON schema validators because it understands e-commerce domain semantics (GTINs, currencies, availability states) and returns actionable, per-row, per-field issue reports.

## Known failure modes

- Oversized input (CSV/JSON exceeds 200,000 characters or file base64 exceeds 12MB limit) causing rejection
- Invalid schema format enum value (must be 'brainiac-catalog-v1' or 'google-merchant-subset')
- Malformed base64 file payload causing parse failure
- Payment failure or insufficient USDC balance via x402 preventing execution
- Empty or whitespace-only feed input triggering minLength validation error
- Ambiguous column names in CSV that cannot be mapped to known fields

## 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: validation status ('validated'), a list of per-field issues each with row number, error code (e.g. 'check_digit', 'missing', 'type', 'unknown_column'), issue kind, affected field, human-readable detail, and product reference; a list of required fields for the chosen format; a product count; a timestamp; a corrections array; a boolean indicating whether the channel was published; and a limitations list explaining what the validator did and did not check.

## 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
  },
  "schema": {
   "type": "object",
   "properties": {
    "fields": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "name",
       "type"
      ],
      "properties": {
       "name": {
        "type": "string",
        "maxLength": 80,
        "minLength": 1
       },
       "type": {
        "enum": [
         "string",
         "number",
         "url",
         "gtin",
         "currency",
         "identifier"
        ],
        "type": "string"
       }
      },
      "additionalProperties": false
     },
     "maxItems": 40
    },
    "format": {
     "enum": [
      "brainiac-catalog-v1",
      "google-merchant-subset"
     ],
     "type": "string"
    },
    "required": {
     "type": "array",
     "items": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "maxItems": 40
    }
   },
   "additionalProperties": false
  },
  "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": 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "format": "google-merchant-subset",
  "issues": [
   {
    "row": 2,
    "code": "check_digit",
    "kind": "conflict",
    "field": "gtin",
    "detail": "The GTIN check digit does not match. The digits were not corrected.",
    "productRef": "mug-1"
   },
   {
    "row": 0,
    "code": "unknown_column",
    "kind": "unavailable",
    "field": "secret_spec",
    "detail": "The column secret_spec is not part of the catalog format and was ignored.",
    "productRef": ""
   },
   {
    "row": 2,
    "code": "missing",
    "kind": "missing",
    "field": "description",
    "detail": "The google-merchant-subset feed requires description.",
    "productRef": "mug-1"
   },
   {
    "row": 2,
    "code": "missing",
    "kind": "missing",
    "field": "imageUrl",
    "detail": "The google-merchant-subset feed requires imageUrl.",
    "productRef": "mug-1"
   },
   {
    "row": 2,
    "code": "missing",
    "kind": "missing",
    "field": "brand",
    "detail": "The google-merchant-subset feed requires brand.",
    "productRef": "mug-1"
   },
   {
    "row": 2,
    "code": "type",
    "kind": "conflict",
    "field": "gtin",
    "detail": "The field is not a GTIN with a valid check digit.",
    "productRef": "mug-1"
   }
  ],
  "status": "validated",
  "checkedAt": "2026-11-03T09:00:00.000Z",
  "corrections": [],
  "limitations": [
   "No sales channel was contacted and no product was published.",
   "Specifications, dimensions, materials, and certifications are not invented.",
   "A category is marked inferred only when one caller-supplied keyword matches the title. It is not written over a supplied category.",
   "Feed checks cover brainiac-catalog-v1 and a documented Google Merchant subset. They are not a channel approval.",
   "Image files are not downloaded. Only supplied URLs and metadata are checked."
  ],
  "productCount": 1,
  "requiredFields": [
   "sku",
   "title",
   "description",
   "link",
   "imageUrl",
   "availability",
   "price",
   "brand"
  ],
  "channelPublished": false,
  "specificationsInvented": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-product-feed-validator-008395f6/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)
