{"uid":"cap_Tx533Xqn2mOFE98DRLraS","slug":"24k-labs-percentage-calculator-c5a8cb1b","name":"24K Labs Percentage Calculator","description":"Percent-of, percent-change, tip, and X-is-what-percent-of-Y in one endpoint.","url":"https://api.24klabs.ai/api/percentage-calc","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"type":"string"},"to":{"type":"number"},"from":{"type":"number"}}},"responseSchema":{"type":"json","example":{"result":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_vD361birkgu3hvRx9x5dY","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":"Computes percent-of, percent-change, tip amount, and 'X is what percent of Y' calculations in a single endpoint.","exampleAgentPrompt":"What is 18% of $74.50 for a tip, and what percent change is that compared to my usual 15% tip on the same amount?","exampleUseCases":[{"title":"Restaurant tip calculator","prompt":"My dinner bill came out to $63.40 — can you calculate an 18% tip for me and tell me what that dollar amount is?"},{"title":"Sales performance percent change","prompt":"Our revenue last month was $120,000 and this month it's $145,000 — what's the percentage increase?"},{"title":"Discount savings ratio","prompt":"A jacket was originally priced at $280 and is now on sale for $196 — what percent of the original price am I saving, and what percentage of the price am I actually paying?"}],"resultDescription":"Returns the computed numeric result for the requested percentage operation — such as the percentage value, the percent change (positive or negative), the tip amount, or the ratio result showing what percent X is of Y. Results are returned as precise decimal numbers with context about which calculation type was performed.","failureModes":["Missing required input values — returns error if base or comparison numbers are absent","Division by zero if Y is zero in an X-is-what-percent-of-Y query","Invalid or unrecognized calculation type specified","Non-numeric input values causing a parse error","Payment failure or insufficient USDC balance blocks the request"],"whenToPreferThis":"Choose this endpoint when you need a quick, reliable server-side percentage computation without implementing arithmetic logic client-side. It handles four distinct percentage calculation modes in one call, making it ideal for agents that need to answer percentage-related user questions on the fly. Prefer it over general-purpose code execution endpoints when you want a dedicated, low-latency math microservice with a predictable schema.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:42:40.643Z","isFirstParty":false}