sack-dollarCurrency API

API for converting currency to different country rates.

A currency converter API is like a real-time financial translator, allowing you to convert currencies instantly and integrate this feature into websites, apps, and other services. It's the key for applications that need accurate and up-to-date exchange rates

Base URL

The base URL for the Currency API is:

https://santechapi.vercel.app

Authentication

headers : {
"token" : {YOUR API KEY}
}

Endpoint: /currency/{from}/{to}/{amount}

HTTP Method: GET

Parameters:

  • {from}: The base currency code.

  • {to}: The target currency code.

  • {amount}: The amount to be converted.

Example Request:

GET /currency/usd/inr/100

Example Response:

200

The response includes the converted amount, base currency, conversion date, and the converted amount in the target currency.

Error Handling

In case of an error, the API will respond with an appropriate HTTP status code and an error message in the response body.

Example Error Response:

402

note that the currency codes should follow the ISO 4217 standard.

If you have any further questions or need additional assistance, feel free to ask.

Last updated

Was this helpful?