{"uid":"cap_1XDnuVtarCe_zTFivG-4u","slug":"percentage-calculator-api-x402-forgemesh-io-82954d35","name":"Percentage Calculator API (x402.forgemesh.io)","description":"Percentage calculator API: compute 'X% of Y', 'X is what percent of Y', percent change between two numbers, or increase/decrease a number by a percent — the everyday percentage math, done exactly. For pricing, finance, reporting, and analytics agents.","url":"https://x402.forgemesh.io/percentage-calculator","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string"},"b":{"type":"string"},"operation":{"type":"string","description":"of | is_what_percent | change | increase | decrease"}}},"responseSchema":{"type":"json","example":{"result":"25 %","operation":"% change 80 → 100"}},"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_p6gB9ki26KWWtwy-3uy3E","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 common percentage operations: X% of Y, X is what percent of Y, percent change between two values, and increasing or decreasing a number by a percentage.","exampleAgentPrompt":"What is 18% of 340, and also what percent change is there going from 340 to 402? Use the percentage calculator for exact results.","exampleUseCases":null,"resultDescription":"Returns the exact numerical result of the requested percentage operation — e.g. the computed value for 'X% of Y', the percentage for 'is_what_percent', the signed percent change for 'change', or the resulting number after an increase or decrease by a given percent.","failureModes":["Missing required fields (a, b, or operation) returns a 400 or error response","Invalid or unrecognized operation string (not one of: of, is_what_percent, change, increase, decrease) causes failure","Non-numeric strings passed as a or b may cause computation errors","Division-by-zero scenario when b=0 in is_what_percent operation"],"whenToPreferThis":"Choose this endpoint when you need precise, exact percentage arithmetic for pricing, discounts, financial reporting, analytics, or any everyday percentage math — particularly when accuracy matters and you want a dedicated computation rather than relying on an LLM's arithmetic. Prefer it over general-purpose math APIs when the operation is strictly percentage-based.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:06:53.489Z","isFirstParty":false}