Currency Rate API
Converts an amount between two currencies using fixed exchange rates. Supports USD, EUR, GBP, INR, AUD, CAD, JPY, AED, SGD, CHF. No authentication required.
| Property | Value |
|---|---|
| Method | GET |
| Base URL | https://labs.lowcademy.com/apis/ |
| File | currency.php |
| Authentication | None |
| Rates | Fixed (not live market rates) |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| from | String | Optional | USD | Source currency code (e.g. USD, INR) |
| to | String | Optional | INR | Target currency code |
| amount | Number | Optional | 1 | Amount to convert |
Supported currency codes: USD, EUR, GBP, INR, AUD, CAD, JPY, AED, SGD, CHF
Default (1 USD → INR)
curl https://labs.lowcademy.com/apis/currencyConvert 100 EUR to GBP
curl https://labs.lowcademy.com/apis/currency?from=EUR&to=GBP&amount=100JavaScript (fetch)
const res = await fetch('https://labs.lowcademy.com/apis/currency?from=USD&to=INR&amount=50'); const data = await res.json(); console.log(data.converted); // 4175
| Field | Type | Description |
|---|---|---|
| success | Boolean | Always true on success |
| from | String | Source currency code |
| to | String | Target currency code |
| amount | Number | Amount that was converted |
| rate | Number | Exchange rate from→to |
| converted | Number | Result of the conversion (rounded to 2 decimals) |
| supported_currencies | Array | List of all supported currency codes |
{
"success" : true,
"from" : "USD",
"to" : "INR",
"amount" : 50,
"rate" : 83.5,
"converted" : 4175,
"supported_currencies" : ["USD","EUR","GBP","INR","AUD","CAD","JPY","AED","SGD","CHF"]
}{"success":false,"error":"Currency 'XYZ' not supported."}