# APR to APY Converter

> APR to APY Converter 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 an Annual Percentage Rate (APR) to Annual Percentage Yield (APY) and computes projected future value given a principal amount.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/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-to-apy-converter-98cbca5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NGsCLeIcA-JX3ClLwDX6G

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-to-apy-converter-98cbca5a -d '<json body>'
```

Example prompt: What's the APY on a 12% APR compounded monthly, and if I put in $1,000 what would it be worth after a year?

## When to prefer this

Use this endpoint whenever you need to accurately translate a nominal APR into its effective APY equivalent, especially in financial, DeFi, or savings contexts where compounding matters. Prefer this over manual calculation when you also need a projected end-value for a given principal, saving multiple computation steps in one call.

## Known failure modes

- Missing or invalid APR input returns an error
- Negative interest rate values may produce unexpected results
- Very large or very small compounding frequencies could cause computation edge cases
- Non-numeric principal values will likely return a validation error

## How this service works

A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.

## Output

Returns a JSON object with the input APR as a percentage, the computed APY as a percentage (accounting for compounding), and a projected end-value given the principal — e.g. {"apr_pct": 12, "apy_pct": 12.68, "projected_value": 1126.83}.

## 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-to-apy-converter-98cbca5a/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)
