API Acre · Developer Code Change Review

by API Acre

POSTBaseSolana

$0.05

per call · USD Coin on Base

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.

Endpoint

POST https://apiacre.com/v1/developer/code-change-review

3

Calls / 30d

2

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/developer/code-change-review", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "after": "def invoice_total(items, discount=0):\n    subtotal = sum(...",
    "before": "def invoice_total(items):\n    return sum(item[\"price\"] fo...",
    "filename": "billing.py",
    "language": "python"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/developer/code-change-review" \
  -H "Content-Type: application/json" \
  -d '{"after":"def invoice_total(items, discount=0):\n    subtotal = sum(...","before":"def invoice_total(items):\n    return sum(item[\"price\"] fo...","filename":"billing.py","language":"python"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "after": {
      "classes": 0,
      "functions": 1,
      "lines": {
        "blank": 0,
        "code": 5,
        "comments": 0,
        "total": 5
      },
      "source": {
        "characters": 194,
        "sha256": "f37990278fe5bda7fdae643ec96f54997271ed3992cefdd5f407736c2...",
        "utf8Bytes": 194
      }
    },
    "analysis": {
      "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."
      ],
      "method": "two deterministic code-metrics snapshots plus Python func...",
      "version": "apiacre-code-change-review/1"
    },
    "attentionLevel": "medium",
    "attentionScore": 2,
    "before": {
      "classes": 0,
      "functions": 1,
      "lines": {
        "blank": 0,
        "code": 2,
        "comments": 0,
        "total": 2
      },
      "source": {
        "characters": 74,
        "sha256": "69316f24997a9cbf73019f697f3f2373e39da67d1835885998775037c...",
        "utf8Bytes": 74
      }
    },
    "changed": true,
    "execution": {
      "codeExecuted": false,
      "networkAccessed": false
    },
    "filename": "billing.py",
    "findings": [
      {
        "evidence": {
          "added": 1
        },
        "id": "new-work-markers",
        "message": "The change adds TODO, FIXME, HACK, or XXX markers.",
        "severity": "low"
      }
    ],
    "functionChanges": {
      "added": [],
      "addedCount": 0,
      "changedCount": 1,
      "removedCount": 0
    },
    "language": "python",
    "reviewDecision": "review",
    "summary": {
      "classDelta": 0,
      "codeLineDelta": 3,
      "functionDelta": 0,
      "lineDelta": 3
    }
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [
      {
        "method": "POST",
        "reason": "Inspect exact line additions, removals, and a bounded uni...",
        "service": "document.diff",
        "title": "Document diff"
      }
    ],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "developer.code-change-review",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from API Acre & similar services