# Percentage Difference & Percent-Change Calculator

> Percentage Difference & Percent-Change Calculator 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-15).

Computes precise percentage values including percent difference, percent change, percent-of, and reverse-percent math between two numeric inputs.

## Facts

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

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-difference-percent-change-calculator-8ef8139a -d '<json body>'
```

Example prompt: What is the exact percentage change from 1250 to 1487? Use the 'change' operation and give me the precise figure, not a rounded estimate.

## When to prefer this

Choose this endpoint when you need an authoritative, non-approximated percentage result suitable for citation in financial reports, analytics dashboards, or comparison tools — especially when LLM-generated estimates or rounding are unacceptable. Ideal for automated pipelines computing KPIs, growth rates, or proportional metrics at scale.

## Known failure modes

- Missing required fields 'a' or 'b' — returns 400 error
- Invalid operation string not in allowed enum — returns 400 or error response
- Non-numeric strings passed for 'a' or 'b' — may return parsing error
- Division by zero when 'b' is 0 for certain operations — may return error or null
- Payment not provided or insufficient USDC — returns 402 Payment Required

## How this service works

Percentage difference and percent-change calculator comparing two numeric values, plus straightforward percent-of and reverse-percent math. For financial reporting, analytics dashboards, and comparison tools where an exact percentage — not an LLM's rounded guess — is what gets cited.

## Output

Returns the computed percentage value as an exact numeric result for the requested operation (e.g., percent difference, percent change, percent-of, increase, or decrease) between the two input values.

## 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-difference-percent-change-calculator-8ef8139a/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)
