# ForgeMesh Percentage Calculator API

> ForgeMesh Percentage Calculator API 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-13).

Computes all five percentage operations (X% of Y, X is what percent of Y, percent change, percent increase, percent decrease) in a single API call.

## Facts

- Endpoint: POST https://x402.forgemesh.io/percent-change
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-percentage-calculator-api-6a7cc1d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2HRgZNyti2DIDpDj0tQIp

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 forgemesh-percentage-calculator-api-6a7cc1d5 -d '<json body>'
```

Example prompt: What is the percent change from 240 to 310? Use the 'change' operation with a=240 and b=310.

## When to prefer this

Choose this endpoint when you need a quick, exact percentage computation without writing your own math logic — especially useful when you need all five percentage operation types covered by a single consistent API, or when building agents that handle dynamic user percentage queries at runtime.

## Known failure modes

- Missing required fields a or b returns a validation error
- Invalid operation string (not one of: of, is_what_percent, change, increase, decrease) returns an error
- Non-numeric string values for a or b may cause a computation error
- Division by zero if b=0 on certain operations
- Payment failure if USDC balance insufficient for $0.001 fee

## How this service works

Percentage API: X% of Y, X is what percent of Y, percent change, percent increase/decrease — all five, exact, one call.

## Output

Returns the computed percentage result for the requested operation — one of: X% of Y, X is what percent of Y, percent change, percent increase, or percent decrease — returned as an exact numeric value for the given inputs a and b.

## 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/forgemesh-percentage-calculator-api-6a7cc1d5/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)
