Currency Convert

Currency Convert Endpoint

The Currency Convert endpoint allows you to convert a specified amount of money from one currency to another using live exchange rates. This is useful for users who want to know how much their currency is worth in another currency.

Endpoint

  • URL: https://api.erensko.xyz/v1/currency-convert

  • Method: GET

  • Description: This endpoint takes the amount, source currency, and target currency as query parameters and returns the converted amount along with the exchange rate.

URL Parameters

Key
Value
Example

amount

The amount of money to be converted.

100

from

The source currency code (e.g., "USD" for US Dollar, "EUR" for Euro).

USD

to

The target currency code (e.g., "EUR" for Euro, "GBP" for British Pound).

EUR

Headers

Key
Value

Authorization

Your own personal API key, create one by clicking here. This is required.

Example Request

GET https://api.erensko.xyz/v1/currency-convert?amount=100&from=USD&to=EUR

Response Example

{
  "originalAmount": "100",
  "fromCurrency": "USD",
  "toCurrency": "EUR",
  "convertedAmount": "93.50",
  "exchangeRate": 0.935
}

Last updated