# APR/APY Converter & Yield Projector

> APR/APY Converter & Yield Projector is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Converts between APR (nominal) and APY (effective) for any compounding frequency, and optionally projects yield on a principal over a time horizon.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/apr-apy-converter
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apr-apy-converter-yield-projector-6e6cc52d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JLq_9070UDZHz57Ni5oFY

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 apr-apy-converter-yield-projector-6e6cc52d -d '<json body>'
```

Example prompt: Can you convert a 5.25% APR compounded monthly to its effective APY, and also show me how much I'd earn on a $50,000 principal over 2 years?

## When to prefer this

Use this endpoint when you need a precise, formula-based conversion between nominal (APR) and effective (APY) rates for any compounding frequency, especially when you also want to project actual yield on a known principal over a time horizon. Prefer it over manual calculation or LLM math for financial accuracy. Not suited for bond yield-to-maturity, IRR, or complex amortization scenarios.

## Known failure modes

- Invalid or missing rate value returns a validation error
- Unsupported compounding frequency enum returns an error listing valid options
- Negative principal or zero horizon may return a validation or domain error
- Malformed request body returns a 400 bad request

## How this service works

Convert between APR (nominal) and APY (effective) for any compounding frequency, and project yield on an optional principal over a horizon.

## Output

Returns the converted rate (APR→APY or APY→APR), the compounding frequency used, and — if a principal and horizon are provided — the projected interest earned and total accumulated value over that period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rate": {
   "type": "number"
  },
  "direction": {
   "type": "string"
  },
  "principal": {
   "type": "number"
  },
  "compounds_per_year": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "apr_pct": 12,
  "apy_pct": 12.68,
  "projected_value": 1126.83
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apr-apy-converter-yield-projector-6e6cc52d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
