Currency Rates API
Access real-time exchange rates for 162+ currencies programmatically.
Quick Start
- Create an account or log in
- Go to API Settings and enable API access
- Copy your unique API key
- Make requests to the API endpoint
API Endpoint
Get Exchange Rates
GET https://currencypal.net/api/rates/{API_KEY}?base={CURRENCY_CODE}
| Parameter | Type | Required | Description |
|---|---|---|---|
| API_KEY | string | Required | Your unique API key from the dashboard |
| base | string | Optional | Base currency code (default: USD). Example: CAD, EUR, GBP |
Example Request
cURL
curl "https://currencypal.net/api/rates/cpk_your_api_key_here?base=CAD"
JavaScript (Fetch)
const response = await fetch('https://currencypal.net/api/rates/YOUR_API_KEY?base=USD');
const data = await response.json();
console.log(data.rates);
PHP
$response = file_get_contents('https://currencypal.net/api/rates/YOUR_API_KEY?base=EUR');
$data = json_decode($response, true);
print_r($data['rates']);
Example Response
{
"success": true,
"base": "USD",
"timestamp": "2025-12-13T16:00:00+00:00",
"rates": {
"AED": 3.6725,
"CAD": 1.402,
"EUR": 0.8605,
"GBP": 0.7596,
"JPY": 154.4657,
...
},
"usage": {
"requests_used": 15,
"requests_limit": 50,
"requests_remaining": 35
}
}
Error Responses
{
"success": false,
"error": "Invalid or inactive API key",
"code": "INVALID_API_KEY"
}
{
"success": false,
"error": "Monthly API request limit reached",
"code": "RATE_LIMIT_EXCEEDED",
"limit": 50,
"used": 50,
"resets_at": "2025-12-31T23:59:59+00:00"
}
{
"success": false,
"error": "Invalid base currency: XYZ",
"code": "INVALID_CURRENCY"
}
Rate Limits
API request limits are based on your subscription plan and reset on the first day of each month.
| Plan | Monthly Requests | Price |
|---|---|---|
| Free | 50 requests | $0/month |
| Pro | 10,000 requests | $9.99/month |
| Enterprise | 50,000 requests | $29.99/month |
Supported Currencies
The API supports 162+ currencies including all major world currencies. Rates are updated regularly from reliable exchange rate sources.
Common currency codes: USD, EUR, GBP, CAD, AUD, JPY, CHF, CNY, INR, MXN, BRL, and many more.
Need Help?
If you have questions about the API or need assistance, please contact our support team. For higher rate limits or custom solutions, consider upgrading to our Pro or Enterprise plans.