# CoinOpSelect Code Complexity Analyzer

> CoinOpSelect Code Complexity Analyzer is a paid API for AI agents from coinop.publicvm.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Analyzes source code and returns a complexity report for the provided code snippet or file.

## Facts

- Endpoint: POST https://coinop.publicvm.com/api/v1/code/complexity?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinopselect-code-complexity-analyzer-5ff10d0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V69SnZs6pZ_KlHij28HK_

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 coinopselect-code-complexity-analyzer-5ff10d0a -d '<json body>'
```

Example prompt: Can you analyze this Python function for code complexity and give me a report? Here's the source: def fibonacci(n): return n if n <= 1 else fibonacci(n-1) + fibonacci(n-2)

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use code complexity analysis without setting up a local static analysis tool or CI pipeline integration. It is well-suited for one-off checks, agent-driven code review workflows, or lightweight code quality gates where spinning up a full static analysis suite is overkill.

## Known failure modes

- Empty or missing 'source' field returns an empty or error report
- Malformed source code may produce incomplete or meaningless complexity metrics
- Payment failure via x402 protocol results in 402 response before analysis runs
- Very large source inputs may time out or return partial results
- Non-code text submitted as source may yield nonsensical complexity output

## How this service works

Paid on-chain token, wallet, contract and research data over x402 on Base.

## Output

Returns a JSON object with a 'query' field set to 'complexity' and a 'report' object containing complexity metrics and analysis results for the submitted source code.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "source": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "complexity",
  "report": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinopselect-code-complexity-analyzer-5ff10d0a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coinop.publicvm.com](https://www.zero.xyz/host/coinop.publicvm.com/llms.txt)
