{"uid":"cap_3ROEQqUUwQiy8NoXM2lve","slug":"delx-commerce-percentage-calculation-pct-of-e8b074ad","name":"Delx Commerce — Percentage Calculation (pct-of)","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/pct-of?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"part":{"type":"integer","description":"Input field: part."},"whole":{"type":"integer","description":"Input field: whole."}}},"responseSchema":{"type":"json","example":{"part":1,"whole":4,"schema":"delx/util-pct-of/v1","percent":25}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KlFQlShsdvT8LQtOVV6R4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates what percentage a 'part' value is of a 'whole' value, returning the numeric percentage result.","exampleAgentPrompt":"What percentage is 1 out of 4? I need the exact numeric percent value.","exampleUseCases":[{"title":"Sales conversion rate calculation","prompt":"Out of 200 total leads, 47 converted to customers — what percentage is that?"},{"title":"Budget utilization percentage","prompt":"We spent 3200 out of a 8000 budget — can you tell me what percent of the budget has been used?"},{"title":"Quiz score as a percentage","prompt":"A student got 18 questions right out of 25 total — what's their score as a percentage?"}],"resultDescription":"Returns a JSON object containing the original 'part' and 'whole' inputs echoed back, a schema identifier string ('delx/util-pct-of/v1'), and a 'percent' number representing what percentage the part is of the whole (e.g. part=1, whole=4 → percent=25).","failureModes":["Missing 'part' or 'whole' fields returns a validation error","Passing 0 as the 'whole' value may cause a division-by-zero error or undefined result","Non-integer inputs may be rejected per schema","Payment failure via x402 protocol blocks the request before computation","Network or service unavailability returns a 402 or 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a quick, verifiable, pay-per-use arithmetic percentage calculation without requiring signup or account management. It is ideal for lightweight automation workflows needing trustless, on-chain-paid utility math. Prefer it over building custom logic when you need auditable, micropayment-gated computation with no infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:45.384Z","isFirstParty":false,"canonicalSlug":"delx-commerce-percentage-calculation-pct-of-e8b074ad"}