# BRAINIAC Ad Fraud Campaign Anomaly Detector

> BRAINIAC Ad Fraud Campaign Anomaly Detector 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-12).

Analyzes advertising campaign row data to detect statistical anomalies and impossible metric ratios that may indicate ad fraud or data quality issues.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/ad-fraud/campaign-anomaly-detect?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-ad-fraud-campaign-anomaly-detector-bc6ec35a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lHS0R-qO2PsDUBfSsZ2TQ

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-ad-fraud-campaign-anomaly-detector-bc6ec35a -d '<json body>'
```

Example prompt: Check these 8 campaign rows for ad fraud anomalies — row IDs R1 through R8, with impressions, clicks, conversions, and spend per day — and tell me if anything looks statistically impossible or suspicious.

## When to prefer this

Use this endpoint when you need a fast, pay-per-call statistical anomaly check on advertising campaign metrics without setting up an account or integrating a full fraud platform. It is especially useful for agents auditing campaign data before reporting, investigating suspicious metrics, or validating data quality. It does not replace a full fraud investigation platform but is ideal for lightweight, row-level statistical screening at $0.04 per call via x402 on Base.

## Known failure modes

- Fewer than 1 or more than 200 rows submitted — schema validation error
- Missing required 'id' field on any row — validation failure
- Insufficient rows for z-score calculation (fewer than 8 comparable rates) — z-score signals skipped
- Missing optional metrics (clicks, conversions, impressions) — those signals skipped silently
- Malformed numeric values or out-of-range numbers — rejected by schema validation

## 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

Returns a JSON object with: a list of anomaly signals (each with type, severity, affected fields, and explanation), a verdict (e.g. 'review'), a risk score (0–100), a confidence level, an analysis summary, evidence of how calculations were made, and a list of limitations explaining what the results do and do not imply about fraud.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "day": {
      "type": "string",
      "maxLength": 20
     },
     "spend": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "clicks": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "campaignId": {
      "type": "string",
      "maxLength": 80
     },
     "conversions": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "impressions": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "signals": [
   {
    "type": "conversions_above_clicks",
    "basis": "fact",
    "fields": [
     "rows[7].conversions",
     "rows[7].clicks"
    ],
    "severity": "high",
    "explanation": "Row R8 has more conversions than clicks."
   },
   {
    "type": "ctr_outlier",
    "basis": "calculation",
    "fields": [
     "rows[7].clicks",
     "rows[7].impressions"
    ],
    "severity": "medium",
    "explanation": "Row R8 has a click-through rate 559.2 standard deviations from the other supplied rows."
   }
  ],
  "success": true,
  "verdict": "review",
  "analysis": "The supplied campaign rows include an outlier or an impossible ratio. That is not a fraud verdict.",
  "evidence": [
   {
    "kind": "calculation",
    "detail": "Click-through rates were compared with leave-one-out z-scores across 8 rows.",
    "fields": [
     "rows"
    ]
   }
  ],
  "confidence": "high",
  "risk_score": 40,
  "limitations": [
   "Anomalies are statistics over the supplied rows only. They are not a fraud verdict.",
   "A z-score is calculated only when at least eight comparable rates exist.",
   "Impossible ratios, such as conversions above clicks, are facts about the supplied numbers.",
   "Missing metrics are skipped. They do not increase the anomaly score."
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-ad-fraud-campaign-anomaly-detector-bc6ec35a/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)
