WestinPay's Free Currency Fiat API provides real-time exchange rates and currency conversion for over 152 currencies. It's ideal for financial apps, e-commerce platforms, and travel services.
The WestinPay Currency Rates Endpoint delivers real-time exchange rates.
Once you have created an account on WestinPay, your account will be assigned a unique 32-character API key. Think of this like a secure password; keep it safe and do not share it with others.
After registering, go to the dashboard and navigate to the "Currency Key" section. Here, you can generate your Fiat API key. This key is essential for authenticating your requests to the API.
- base: The base currency for conversion. Default is USD. // For other currencies, use the currency symbol e.g. base=EUR
- output: Response format, either JSON or XML. Default is JSON.
- api_key: Your unique API key. Replace YOUR-API-KEY with your actual API key.
Please note that your API key allows for up to 5000 monthly requests. This limit is automatically renewed each month. It's important to manage your usage to ensure continuous access to the API.
To fetch the latest rates using cURL and authenticate with your API key, use the following command:
curl --location --request GET 'https://westinpay.com/currency/fiat_api?api_key=YOUR-API-KEY&base=USD&output=JSON'