# Atlas Research Code Review API

> Atlas Research Code Review API is a paid API for AI agents from atlasresearch2026.pythonanywhere.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Performs static code analysis on submitted code, returning flagged lines with rule identifiers and severity hints.

## Facts

- Endpoint: POST https://atlasresearch2026.pythonanywhere.com/api/code-review?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/atlas-research-code-review-api-0f6ef929
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ymyXWuZcb7GrGfFTYDm8-

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 atlas-research-code-review-api-0f6ef929 -d '<json body>'
```

Example prompt: Can you scan this Python script for security vulnerabilities and tell me which lines have high-severity issues like shell injection?

## When to prefer this

Choose this endpoint when you need a lightweight, per-call static code analysis with per-line severity flagging and rule identification, especially in pay-per-use agent workflows using x402/USDC micropayments on Base. It is well-suited for quick spot-checks or CI gating without a persistent subscription.

## Known failure modes

- Missing required 'input' field returns a validation error
- Non-POST method rejected
- Malformed JSON body causes 400-level error
- Empty or unreadable code body may return zero candidates with no error
- Payment of 0.05 USDC not completed results in 402 Payment Required

## How this service works

Atlas Research: a sourced European gold market snapshot, payable per call with 0.001 USDC on Base via x402, plus the Ring Rush game.

## Output

Returns a JSON object containing the SHA256 hash of the submitted file, the filename, a list of candidate violations each with a line number, rule identifier (e.g. 'os-shell'), and severity hint (e.g. 'high'), plus a total candidate count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sha256": "...",
  "filename": "sample.py",
  "candidates": [
   {
    "line": 5,
    "rule": "os-shell",
    "severity_hint": "high"
   }
  ],
  "candidate_count": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/atlas-research-code-review-api-0f6ef929/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from atlasresearch2026.pythonanywhere.com](https://www.zero.xyz/host/atlasresearch2026.pythonanywhere.com/llms.txt)
