{"staticExample":true,"notice":"Demonstration data only; purchase the endpoint for fresh analysis.","requestExample":{"code":"def greet(name):\n    return f'Hello {name}'","language":"python"},"purchase":{"endpoint":"https://apiacre.com/v1/developer/code-metrics","method":"POST","protocol":"x402","network":"eip155:8453","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"asset":"USDC","exactAmount":"0.025","authorizationRequired":true,"fullHandoffUrl":"https://apiacre.com/catalog/developer.code-metrics","browserCheckoutUrl":"https://apiacre.com/try/developer.code-metrics","documentationUrl":"https://apiacre.com/services/developer.code-metrics","sampleUrl":"https://apiacre.com/samples/developer.code-metrics","buyerGuideUrl":"https://apiacre.com/buyers","coinbaseAgenticWallet":{"client":"official-coinbase","payCommand":"npx --yes awal@latest x402 pay https://apiacre.com/v1/developer/code-metrics \\\n  -X POST \\\n  -d '{\"code\":\"def greet(name):\\n    return f'\"'\"'Hello {name}'\"'\"'\",\"language\":\"python\"}' \\\n  --max-amount 25000 \\\n  --json","documentationUrl":"https://docs.cdp.coinbase.com/agentic-wallet/cli/skills/pay-for-service","maximumUsdc":"0.025","maximumAtomicUsdc":"25000","authenticationRequired":true,"copyingCommandPays":false,"runningCommandMayPay":true},"agentcash":{"client":"third-party","checkCommand":"npx --yes agentcash@latest check https://apiacre.com/v1/developer/code-metrics","fetchCommand":"npx --yes agentcash@latest fetch https://apiacre.com/v1/developer/code-metrics \\\n  --method POST \\\n  --header 'content-type: application/json' \\\n  --body '{\"code\":\"def greet(name):\\n    return f'\"'\"'Hello {name}'\"'\"'\",\"language\":\"python\"}' \\\n  --payment-protocol x402 \\\n  --payment-network base \\\n  --max-amount 0.025","maximumUsdc":"0.025","copyingCommandPays":false,"fetchMayAutomaticallyPay":true},"priceUsdc":"0.025","path":"/v1/developer/code-metrics","url":"https://apiacre.com/v1/developer/code-metrics","checkoutUrl":"https://apiacre.com/try/developer.code-metrics","freshResultRequiresPayment":true},"result":{"request_id":"018f1f54-7f38-7ba2-8dc3-5f90272d9f1a","service":"developer.code-metrics","version":"1","data":{"language":"python","source":{"sha256":"d588756864c1c6b9016a1829ea9283915950ef23e5b1c04018413ed71456a34e","characters":43,"utf8Bytes":43},"lines":{"total":2,"code":2,"comments":0,"blank":0},"classes":0,"functions":1,"branchPoints":0,"estimatedCyclomaticComplexity":1,"complexityPerFunction":1.0,"maximumFunctionComplexity":1,"functionMetrics":[{"name":"greet","kind":"function","line":1,"endLine":2,"lines":2,"parameters":1,"branchPoints":0,"estimatedCyclomaticComplexity":1}],"functionsTruncated":false,"syntax":{"engine":"python-ast","valid":true,"error":null},"maximumLineLength":26,"averageLineLength":21.0,"commentDensity":0.0,"blankLineDensity":0.0,"longLineCount":0,"workMarkerCount":0,"maintainabilitySignal":95,"reviewSignals":[],"analysis":{"version":"apiacre-code-metrics/3","method":"Python AST with deterministic lexical metrics","limitations":["AST complexity is a static heuristic, not a runtime or control-flow proof.","Comment counts include comment-only lines, not inline comments or block-comment spans."]}},"meta":{"duration_ms":42,"cached":false,"sources":[],"warnings":[],"next_actions":[{"service":"developer.code-change-review","title":"Code change review","reason":"Compare the measured source with a caller-supplied baseline and surface syntax, complexity, function, and maintainability regressions.","method":"POST","path":"/v1/developer/code-change-review","price":"$0.05","input_template":{"before":"$baselineSourceCode","after":"$request.code","language":"$request.language","filename":"$filename"},"use_output":"Inspect result.data.reviewDecision, findings, and functionChanges before approving the change.","handoff_path":"/catalog/developer.code-change-review","checkout_path":"/try/developer.code-change-review","sample_path":"/samples/developer.code-change-review","maximum_atomic_usdc":"50000","handoff_payment_required":false,"executes_automatically":false,"authorization_required":true},{"service":"data.schema","title":"JSON Schema generator","reason":"Create a reusable validation contract for code-quality metric snapshots.","method":"POST","path":"/v1/data/schema","price":"$0.025","input_template":{"content":"$json([$result.data])","format":"json"},"use_output":"Use result.data.schema to validate future metric snapshots.","handoff_path":"/catalog/data.schema","checkout_path":"/try/data.schema","sample_path":"/samples/data.schema","maximum_atomic_usdc":"25000","handoff_payment_required":false,"executes_automatically":false,"authorization_required":true}]}},"customerEvidence":{"evidenceType":"minimum-independent-production-settlement","observedThrough":"2026-09-01T11:24:57.584032Z","settlementNetwork":"eip155:8453","minimumIndependentSettlements":1,"operatorValidationExcluded":true,"buyerDataPublished":false,"settlementIdentifiersPublished":false,"aggregateUrl":"https://apiacre.com/use-cases#customer-evidenced","claimBoundary":"At least one independently attributed production settlement was observed for this service by observedThrough. This does not establish a unique buyer count, endorsement, repeat demand, a forecast, or a guarantee."}}