Get live exchange rates updated every minute for over 170 world currencies. Our API provides accurate, market-driven rates sourced from multiple financial institutions and exchanges.
Simple, well-documented REST API endpoints for easy integration. Get started quickly with JSON responses, comprehensive documentation, and example code snippets for popular programming languages.
Our Live Currency Rates API provides developers and businesses with reliable, up-to-date exchange rates for building financial applications, payment gateways, and international commerce solutions.
Complete reference guide for the Currency Conversion API endpoint
https://api.softasium.com/api/Currency
All currency conversion endpoints are prefixed with this base URL.
Converts an amount from one currency to another using the latest exchange rates. The rates are cached and updated daily from an external API (ExchangeRate-API v6). The system uses USD as the base currency for rate calculations.
baseCurrency (string, required): The source currency code (e.g.,
"USD", "EUR", "AED"). Will be converted to uppercase automatically.toCurrency (string, required): The target currency code (e.g.,
"USD", "EUR", "AED"). Will be converted to uppercase automatically.amount (double, required): The amount to convert from baseCurrency
to toCurrencyAuthorization (string, required): Must be "XXXXXX" for
authentication. For API key access, please contact info@softasium.comAll responses return HTTP 200 OK with a JSON object containing the following fields:
message (string): Response message indicating success or errorstatus (boolean): true for success, false for errorresult (double): The converted amount on success, 0.0 on error, -1 on
authorization failurebase_currency (string): The source currency code in uppercaseto_currency (string): The target currency code in uppercaseWhen the conversion is successful:
{
"message": "Success response!",
"status": true,
"result": 367.25,
"base_currency": "USD",
"to_currency": "AED"
}
When an error occurs during conversion (e.g., invalid currency code):
{
"message": "Error: Currency code not found",
"status": false,
"result": 0.0,
"base_currency": "USD",
"to_currency": "INVALID"
}
When the Authorization header is missing or invalid:
{
"message": "Invalid Authorization Key!",
"status": false,
"result": -1
}
Convert 100 USD to AED:
POST https://api.softasium.com/api/Currency/USD/AED/100Headers: Authorization: XXXXXX
{
"message": "Success response!",
"status": true,
"result": 367.25,
"base_currency": "USD",
"to_currency": "AED"
}
{
"message": "Error: Currency code not found",
"status": false,
"result": 0.0,
"base_currency": "USD",
"to_currency": "INVALID"
}
{
"message": "Invalid Authorization Key!",
"status": false,
"result": -1
}
The API supports all major world currencies including but not limited to:
All currency codes follow the ISO 4217 standard (3-letter codes). The API supports over 170 world currencies. Currency codes are case-insensitive and will be automatically converted to uppercase.
All requests require authentication via the Authorization header:
Requests without a valid Authorization
header will return an authorization failure response with result: -1.
baseCurrency or
toCurrency is not found in the supported currencies list
All errors return HTTP 200 OK with
status: false and an appropriate error message in the message
field.