# apiacre.com Code Change Review

> apiacre.com Code Change Review is a paid API for AI agents from apiacre.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-10).

Compares before/after source code snapshots to return syntax validation, structural deltas, function-level changes, complexity metrics, and bounded review findings without executing code or making network requests.

## Facts

- Endpoint: POST https://apiacre.com/v1/developer/code-change-review?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apiacre-com-code-change-review-7681849e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eO8NcMJWozDE61gBvkMdl

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 apiacre-com-code-change-review-7681849e -d '<json body>'
```

Example prompt: Can you review the change I made to billing.py — here's the original code and the updated version — and tell me if complexity went up, whether any functions changed signatures, and if there are any review flags I should know about?

## When to prefer this

Choose this endpoint when you need deterministic, static code-metrics comparison between two source snapshots without executing code or touching the network — especially when you want structured, machine-readable deltas (complexity, maintainability, branch points, function signatures) and bounded review findings with severity levels. Prefer it over LLM-based code review when reproducibility and fingerprint-level auditability matter, or when you need to enforce a code quality gate in an automated pipeline.

## Known failure modes

- Invalid or unparseable source code in either snapshot causes syntax engine to report an error and may limit function-level diff
- Truncated function lists when code is very large reduce completeness of function-level deltas
- Renamed functions appear as one removal plus one addition rather than a rename
- Language not supported by the syntax engine falls back to limited analysis
- Missing required before or after fields returns a 4xx error
- Very large source snapshots may exceed payload limits

## How this service works

Compare caller-supplied before and after source snapshots without execution or network access, returning source fingerprints, syntax regressions, structural deltas, function-level changes, and bounded review findings.

## Output

Returns a JSON object containing: SHA-256 fingerprints and byte counts for both snapshots, syntax validity per version, line/code/comment counts, estimated cyclomatic complexity, maintainability signal scores, a summary delta object (line delta, complexity delta, branch point delta, etc.), a list of findings with severity and evidence, an attention level (low/medium/high), a review decision, function-level changes (added, removed, changed with parameter and complexity deltas), and execution/network access confirmation flags.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "string"
  },
  "before": {
   "type": "string"
  },
  "filename": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ]
  },
  "language": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "after": {
    "lines": {
     "code": 5,
     "blank": 0,
     "total": 5,
     "comments": 0
    },
    "source": {
     "sha256": "f37990278fe5bda7fdae643ec96f54997271ed3992cefdd5f407736c2...",
     "utf8Bytes": 194,
     "characters": 194
    },
    "classes": 0,
    "functions": 1
   },
   "before": {
    "lines": {
     "code": 2,
     "blank": 0,
     "total": 2,
     "comments": 0
    },
    "source": {
     "sha256": "69316f24997a9cbf73019f697f3f2373e39da67d1835885998775037c...",
     "utf8Bytes": 74,
     "characters": 74
    },
    "classes": 0,
    "functions": 1
   },
   "changed": true,
   "summary": {
    "lineDelta": 3,
    "classDelta": 0,
    "codeLineDelta": 3,
    "functionDelta": 0
   },
   "analysis": {
    "method": "two deterministic code-metrics snapshots plus Python func...",
    "version": "apiacre-code-change-review/1",
    "limitations": [
     "Static heuristics do not prove runtime behavior, correctn...",
     "Function-level deltas are complete only when both Python ...",
     "Renamed functions appear as one removal and one addition."
    ]
   },
   "filename": "billing.py",
   "findings": [
    {
     "id": "new-work-markers",
     "message": "The change adds TODO, FIXME, HACK, or XXX markers.",
     "evidence": {
      "added": 1
     },
     "severity": "low"
    }
   ],
   "language": "python",
   "execution": {
    "codeExecuted": false,
    "networkAccessed": false
   },
   "attentionLevel": "medium",
   "attentionScore": 2,
   "reviewDecision": "review",
   "functionChanges": {
    "added": [],
    "addedCount": 0,
    "changedCount": 1,
    "removedCount": 0
   }
  },
  "meta": {
   "cached": false,
   "sources": [],
   "warnings": [],
   "duration_ms": 42,
   "next_actions": [
    {
     "title": "Document diff",
     "method": "POST",
     "reason": "Inspect exact line additions, removals, and a bounded uni...",
     "service": "document.diff"
    }
   ]
  },
  "service": "developer.code-change-review",
  "version": "1",
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apiacre-com-code-change-review-7681849e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apiacre.com](https://www.zero.xyz/host/apiacre.com/llms.txt)
