# Percentage Calculator API (x402.forgemesh.io)

> Percentage Calculator API (x402.forgemesh.io) is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: POST https://x402.forgemesh.io/percentage-calculator
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/percentage-calculator-api-x402-forgemesh-io-82954d35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1XDnuVtarCe_zTFivG-4u

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability percentage-calculator-api-x402-forgemesh-io-82954d35 -d '<json body>'
```

Example prompt: What is 18% of 340, and also what percent change is there going from 340 to 402? Use the percentage calculator for exact results.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string"
  },
  "b": {
   "type": "string"
  },
  "operation": {
   "type": "string",
   "description": "of | is_what_percent | change | increase | decrease"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "25 %",
  "operation": "% change 80 → 100"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/percentage-calculator-api-x402-forgemesh-io-82954d35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
