API Usage

Where is the API available?

The API is available at api.aprtoapy.com/convert which can convert from APR to APY or vice versa. Swagger documentation is available at api.aprtoapy.com/swagger.

How can I use the API?

All calls are GET requests and require both (apr or apy) and (compoundingPeriod or compounding). Pass apr to get apy, pass apy to get apr. Both are specified in basis points: eg. 750 will equate to 7.5%. compoundingPeriod is specified in days. compounding will set the days for you based on passing one of the following pre-selected options: DAILY, MONTHLY, QUARTERLY, SEMI_ANNUALLY, or ANNUALLY.

Does the API cost money?

The API is completely free but rate-limited by IP to 1,000 calls per 24 hour period. Shoot us a message if you need additional capacity.

API Examples

Convert 5% Monthly APR to APY

Request URL
curl -X 'GET' 'https://api.aprtoapy.com/convert?apr=500&compounding=MONTHLY' -H 'accept: */*'

Convert 10% APY to Daily APR

Request URL
curl -X 'GET' 'https://api.aprtoapy.com/convert?apr=500&compounding=DAILY' -H 'accept: */*'

❤️ Like APRtoAPY.com? Give us a tip.❤️

Eth: 0x781DB1bf3BE9A89362b5540c2B1623f0aF132a91
Sol: GZk29hL7ZnyFmk5G3GStfqUhWvWneJyr8Hr6LF3HtvNa
Ava: X-avax1ggu50wktmjlqc08tza5rwrd9dxn5y6ugf98453
Terra: terra1yln5nmn474xxgy4mggvmaa7659975v4k878v75