{"uid":"cap_8tySVjR77Rg7U-AuTG9Vz","slug":"api-x402node-dev-60460296","name":"Percentage Calculator API","description":"Percentage calculator, percent of, percent change, percent increase decrease, what percentage, tip calculator, discount calculator, markup, margin. Compute percent operations: X percent of Y, what percent X is of Y, percent change from X to Y, X increased or decreased by Y percent. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/math/percentage","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"a":{"type":"string","description":"First input (optional)"},"b":{"type":"string","description":"Second input (optional)"},"op":{"type":"string","description":"Op (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0022","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.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tSbv-vy7gJK0YZ7QkqvCM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes percent operations including percent of a value, percent change between two values, and percent increase/decrease","exampleAgentPrompt":"What is 18% of 245, and what's the percent change if that number increases to 312?","exampleUseCases":null,"resultDescription":"Returns the computed numeric result of the requested percentage operation, such as the calculated amount, the percentage value, or the percent change between two numbers, depending on the operation type specified.","failureModes":["Missing required input values X or Y returns 400 error","Invalid operation type returns 400 bad request","Non-numeric inputs return validation error","Division by zero when Y is zero in 'what percent' operations","Payment not provided or insufficient USDC returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need programmatic, server-side percentage computations embedded in an agent workflow — especially for tip calculations, discount pricing, margin analysis, or percent change reporting where you need a reliable numeric result without implementing math logic yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:51:56.589Z","isFirstParty":false}