Rate Zap API Documentation
Free, no-auth currency conversion API for USD, JPY, and CNY.
Supported Currencies: USD JPY CNY
GET /api/convert
Convert an amount from one currency to another (or all three at once).
Omit the to parameter to get all three currencies at once.
Parameters
| Parameters | Type | Description | |
|---|---|---|---|
from | string | Required | Source currency: USD, JPY, or CNY |
amount | number | Required | Amount to convert (0 – 1 trillion) |
to | string | Optional | Target currency. Omit to get all three. |
Example — Omit the to
GET https://ratezap.fanshikun.com/api/convert?from=USD&amount=100
{
"from": "USD",
"amount": 100,
"rates": {
"CNY": 724.5,
"JPY": 15520,
"USD": 100
},
"lastUpdate": "..."
}Example — single target
GET https://ratezap.fanshikun.com/api/convert?from=USD&amount=100&to=JPY
{
"from": "USD",
"to": "JPY",
"amount": 100,
"result": 15520,
"rate": 155.2,
"lastUpdate": "..."
}GET /api/rates
Get current exchange rates for all supported currencies.
GET https://ratezap.fanshikun.com/api/rates
{
"base": "USD",
"currencies": [
{ "code": "CNY", "rate": 7.245 },
{ "code": "JPY", "rate": 155.2 },
{ "code": "USD", "rate": 1 }
],
"lastUpdate": "...",
"nextUpdate": "..."
}Error Responses
| Status | Meaning |
|---|---|
400 | Missing or invalid parameters |
503 | Rates unavailable (upstream API failure) |
Rate Limits
No authentication required. Rates update daily, so caching on the client is recommended.