{"uid":"cap_pmB9wzKP4hP7c_AIwezGG","slug":"delx-commerce-success-rate-calculator-a9bf4f9a","name":"Delx Commerce — Success Rate Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/success-rate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"total":{"type":"number","description":"Total attempts or events."},"success":{"type":"number","description":"Count of successful outcomes."}}},"responseSchema":{"type":"json","example":{"total":100,"schema":"delx/util-success-rate/v1","success":97,"failure_rate_percent":3,"success_rate_percent":97}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0ckqRdB7RqBRG7IHtYVRv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes success rate and failure rate percentages given a total attempt count and a success count","exampleAgentPrompt":"Out of 200 total attempts, 183 succeeded — can you calculate the exact success rate and failure rate percentages for me?","exampleUseCases":[{"title":"Agent task success monitoring","prompt":"My AI agent ran 500 tasks today and 462 completed successfully. Can you calculate the success rate and failure rate so I can include it in my daily report?"},{"title":"API reliability reporting","prompt":"Over the last hour my service made 1000 API calls and 987 returned OK. What's the success rate and failure rate I should report to my SLA dashboard?"},{"title":"QA batch test result summary","prompt":"My test suite ran 350 test cases and 318 passed. Can you compute the pass rate and fail rate percentages from those numbers?"}],"resultDescription":"Returns a JSON object containing the original total and success counts, the computed success_rate_percent, failure_rate_percent, and a schema identifier (delx/util-success-rate/v1) for verifiable, structured consumption by agents.","failureModes":["Missing or non-numeric 'total' or 'success' fields returns a validation error","'success' greater than 'total' may produce a negative failure rate or an error","Zero value for 'total' may cause a division-by-zero error","Payment failure via x402 results in a 402 Payment Required response before computation occurs"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call, no-signup utility to convert raw success/total counts into structured success and failure rate percentages — especially in agentic pipelines where you want a verifiable, schema-tagged JSON result without building your own arithmetic or analytics infrastructure. Prefer alternatives if you need time-series analytics, trend detection, or aggregation across multiple datasets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:47.042Z","isFirstParty":false,"canonicalSlug":"delx-commerce-success-rate-calculator-a9bf4f9a"}