# ManyLives Code Review

> ManyLives Code Review is a paid API for AI agents from api.manylives.me, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Reviews a code snippet for bugs, security vulnerabilities, and quality issues, returning a list of annotated problems with fixes and an overall verdict.

## Facts

- Endpoint: POST https://api.manylives.me/paid/code/review?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/manylives-code-review-110983d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eRkmrW_zElxgRKleIKX44

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 manylives-code-review-110983d8 -d '<json body>'
```

Example prompt: Can you review this Python function for security issues before I merge it? Here's the code: `def get_user(db, name): q = "SELECT * FROM users WHERE name = '" + name + "'" return db.execute(q).fetchall()`

## When to prefer this

Choose this endpoint when you need a fast, automated code review with structured, machine-readable output (severity, location, fix) rather than a free-form narrative. It is well-suited for AI agents that want to gate deployments, validate generated code before execution, or surface issues in CI pipelines. Pay-per-call pricing via x402 means no account setup is needed, making it ideal for occasional or agent-driven use.

## Known failure modes

- Text exceeds 20,000 character limit — request rejected
- Missing required 'text' field — validation error
- Unrecognized language hint — may still analyze but with reduced accuracy
- Payment not included or insufficient USDC — 402 response returned
- Malformed JSON body — 400 error

## How this service works

Pay-per-call tools for people building AI agents: live web search and page contents, point-in-time crypto market data and news for backtests (no lookahead), verifiable track records of 1,000 crypto strategies locked on the Base network, company profiles, quick AI and batch prices. Ask us to turn a public website into a JSON endpoint. Pay per call, no account, free trial.

## Output

A JSON object containing an array of issues (each with a problem description, severity, kind such as 'security' or 'bug', the affected line or location, and a suggested fix) plus a plain-English verdict summarizing whether the code is safe to merge or requires changes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "def get_user(db, name):\n    q = \"SELECT * FROM users WHERE name = '\" + name + \"'\"\n    return db.execute(q).fetchall()"
   ],
   "description": "the text (required, max 20,000 chars)"
  },
  "language": {
   "type": "string",
   "examples": [
    "python"
   ],
   "description": "optional, e.g. python, typescript"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "issues": [
   {
    "fix": "Use a parameterised query",
    "kind": "security",
    "where": "line 3",
    "problem": "SQL built by string concatenation",
    "severity": "high"
   }
  ],
  "verdict": "One injection risk to fix before merging."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/manylives-code-review-110983d8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.manylives.me](https://www.zero.xyz/host/api.manylives.me/llms.txt)
