{"api":"v1","generated_at":"2026-09-15T20:42:42.165Z","licence":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"TOLL, with a link to the page cited"},"page":"https://tollindex.com/e/apiacre-com-v1-developer-code-metrics-251fe8","pinned_page":"https://tollindex.com/e/apiacre-com-v1-developer-code-metrics-251fe8/at/2026-09-15T16-57Z","pinned":false,"method":"https://tollindex.com/ledger/method","snapshot_at":"2026-09-15T16:57:44.360Z","snapshot_stamp":"2026-09-15T16-57Z","endpoint":{"slug":"apiacre-com-v1-developer-code-metrics-251fe8","canonical_url":"https://apiacre.com/v1/developer/code-metrics","resource":"https://apiacre.com/v1/developer/code-metrics","http_method":"POST","type":"http","x402_version":2,"registries":["cdp"],"primary_registry":"cdp","curated_by_coinbase":false,"description":"Measure caller-supplied source code with Python AST analysis or a deterministic lexical fallback, including per-function complexity, a SHA-256 fingerprint, density ratios, syntax status, and actionable maintainability signals without retaining or forwarding the code.","service_name":"API Acre","declared_category":null,"declared_tags":["developer","research","code","metrics","complexity"],"route_template":null,"registry_updated":"2026-08-31T00:32:32.418Z"},"derived":{"note":"fields no registry supplies; TOLL derives them and marks them derived on the page","title":"developer code metrics","category":"compute","first_observed_by_toll":"2026-09-10T19:08:24.178Z","last_observed_by_toll":"2026-09-15T16:57:44.360Z","observation_began":"2026-09-10"},"presence":{"listed_now":true,"first_absent_at":null,"delisting_confirmed_at":null,"events":[{"registry":"cdp","at":"2026-09-10T19:08:24.178Z","event":"listed"}]},"accepts":[{"registry":"cdp","ordinal":0,"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","asset_name":"USD Coin","symbol":"USDC","decimals":6,"amount_display":"0.025 USDC","amount_units":0.025,"decimals_known":true,"pay_to":"0xa0BFa4f07281c9b248DC3AED2217836BcA24869B","scheme":"exact"},{"registry":"cdp","ordinal":1,"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","asset_name":null,"symbol":"USDC","decimals":6,"amount_display":"0.025 USDC","amount_units":0.025,"decimals_known":true,"pay_to":"B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan","scheme":"exact"}],"counters":{"observed_at":"2026-09-15T16:57:44.360Z","calls_30d":2,"unique_payers_30d":2,"last_called_at":"2026-08-31T00:32:31.921Z"},"validation":{"latest":{"observed_at":"2026-09-15T04:13:04.123Z","state":"pass","failed_checks":[],"endpoint_http_status":402,"run_id":"daily-2026-09-15"},"uptime":[{"days":7,"observed":5,"passed":5,"ratio":1},{"days":30,"observed":5,"passed":5,"ratio":1},{"days":90,"observed":5,"passed":5,"ratio":1}],"history_90d":[{"observed_at":"2026-09-15T04:13:04.123Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-15","state_changed":false},{"observed_at":"2026-09-14T04:11:16.292Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-14","state_changed":false},{"observed_at":"2026-09-13T04:10:41.570Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-13","state_changed":false},{"observed_at":"2026-09-12T06:26:01.458Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-12","state_changed":false},{"observed_at":"2026-09-11T09:54:19.760Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-11","state_changed":true}]},"seller":{"wallet":"0xa0BFa4f07281c9b248DC3AED2217836BcA24869B","page":"https://tollindex.com/seller/0xa0BFa4f07281c9b248DC3AED2217836BcA24869B","endpoints":74,"hosts":1},"reports":0,"registry_record":{"cdp":[{"tags":["developer","research","code","metrics","complexity"],"type":"http","accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"payTo":"0xa0BFa4f07281c9b248DC3AED2217836BcA24869B","amount":"25000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":300},{"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","extra":{"feePayer":"Hc3sdEAsCGQcpgfivywog9uwtk8gUBUZgsxdME1EJy88"},"payTo":"B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan","amount":"25000","scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","maxTimeoutSeconds":300}],"iconUrl":"https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1786471603/bazaar-icons/3cd5dfbdc8c7913d.png","quality":{"lastCalledAt":"2026-08-31T00:32:31.921Z","l30DaysTotalCalls":2,"l30DaysUniquePayers":2},"resource":"https://apiacre.com/v1/developer/code-metrics","extensions":{"bazaar":{"info":{"input":{"body":{"code":"def greet(name):\n    return f'Hello {name}'","language":"python"},"type":"http","method":"POST","bodyType":"json"},"output":{"type":"json","example":{"data":{"lines":{"code":2,"blank":0,"total":2,"comments":0},"source":{"sha256":"d588756864c1c6b9016a1829ea9283915950ef23e5b1c04018413ed71...","utf8Bytes":43,"characters":43},"syntax":{"error":null,"valid":true,"engine":"python-ast"},"classes":0,"analysis":{"method":"Python AST with deterministic lexical metrics","version":"apiacre-code-metrics/3","limitations":["AST complexity is a static heuristic, not a runtime or co...","Comment counts include comment-only lines, not inline com..."]},"language":"python","functions":1,"branchPoints":0,"longLineCount":0,"reviewSignals":[],"commentDensity":0,"functionMetrics":[{"kind":"function","line":1,"name":"greet","endLine":2}],"workMarkerCount":0,"blankLineDensity":0,"averageLineLength":21,"maximumLineLength":26,"functionsTruncated":false,"complexityPerFunction":1,"maintainabilitySignal":95,"maximumFunctionComplexity":1,"estimatedCyclomaticComplexity":1},"meta":{"cached":false,"sources":[],"warnings":[],"duration_ms":42,"next_actions":[{"title":"Code change review","method":"POST","reason":"Compare the measured source with a caller-supplied baseli...","service":"developer.code-change-review"}]},"service":"developer.code-metrics","version":"1","request_id":"018f1f54-7f38-7ba2-8dc3-5f90272d9f1a"}}},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["code"],"properties":{"code":{"type":"string"},"language":{"type":"string"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["request_id","service","version","data","meta"],"properties":{"data":{"type":"object","required":["language","source","lines","classes","functions","branchPoints","estimatedCyclomaticComplexity","complexityPerFunction","maximumFunctionComplexity","functionMetrics","functionsTruncated","syntax","maximumLineLength","averageLineLength","commentDensity","blankLineDensity","longLineCount","workMarkerCount","maintainabilitySignal","reviewSignals","analysis"],"properties":{"lines":{"type":"object"},"source":{"type":"object"},"syntax":{"type":"object"},"classes":{"type":"integer"},"analysis":{"type":"object"},"language":{"type":"string"},"functions":{"type":"integer"},"branchPoints":{"type":"integer"},"longLineCount":{"type":"integer"},"reviewSignals":{"type":"array","items":{"type":"object"}},"commentDensity":{"type":"number"},"functionMetrics":{"type":"array","items":{"type":"object"}},"workMarkerCount":{"type":"integer"},"blankLineDensity":{"type":"number"},"averageLineLength":{"type":"number"},"maximumLineLength":{"type":"integer"},"functionsTruncated":{"type":"boolean"},"complexityPerFunction":{"type":"number"},"maintainabilitySignal":{"type":"integer"},"maximumFunctionComplexity":{"type":"integer"},"estimatedCyclomaticComplexity":{"type":"integer"}},"additionalProperties":false},"meta":{"type":"object","required":["duration_ms","cached","sources","warnings","next_actions"],"properties":{"cached":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"duration_ms":{"type":"integer"},"next_actions":{"type":"array","items":{"type":"object"}}}},"service":{"type":"string"},"version":{"type":"string"},"request_id":{"type":"string"}}}}}}}},"payment-identifier":{"info":{"required":false},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["required"],"properties":{"id":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"required":{"type":"boolean"}}}}},"description":"Measure caller-supplied source code with Python AST analysis or a deterministic lexical fallback, including per-function complexity, a SHA-256 fingerprint, density ratios, syntax status, and actionable maintainability signals without retaining or forwarding the code.","lastUpdated":"2026-08-31T00:32:32.418Z","serviceName":"API Acre","x402Version":2}]}}