If you're building a product for Bangladeshi users—like a remittance tool, ecommerce site, or financial dashboard—a live Taka rate adds transparency and trust. Using HexaRate API, you can fetch real-time BDT exchange rates with zero authentication.
Why HexaRate Matters
HexaRate offers:
- No API key required
- No rate limits
- Mid‑market rates updated daily
- Free access to major fiat currencies (including BDT) :contentReference[oaicite:1]{index=1}
Fetch USD → BDT Exchange Rate
To get today’s Taka rate (1 USD to BDT):
https://hexarate.paikama.co/api/rates/latest/USD?target=BDT
Sample Response
{
"status_code": 200,
"data": {
"base": "USD",
"target": "BDT",
"mid": 119.51,
"unit": 1,
"timestamp": "2025-08-01T05:16:50.272Z"
}
}
Here, mid
shows the mid-market rate: 1 USD ≈ 119.51 BDT.
:contentReference[oaicite:2]{index=2}
JavaScript Integration (Client-Side)
Add this snippet to display the rate on your page:
<p id="usd-to-bdt">Loading rate…</p>
<script>
fetch("https://hexarate.paikama.co/api/rates/latest/USD?target=BDT")
.then(res => res.json())
.then(obj => {
const rate = obj.data.mid;
document.getElementById("usd-to-bdt").textContent =
`1 USD = ${rate} BDT`;
})
.catch(err => console.error("Rate fetch failed:", err));
</script>
Convert Any Amount
To calculate any amount from USD to BDT:
function convertUsdToBdt(amount) {
fetch("https://hexarate.paikama.co/api/rates/latest/USD?target=BDT")
.then(res => res.json())
.then(obj => {
const converted = (obj.data.mid * amount).toFixed(2);
console.log(`${amount} USD = ${converted} BDT`);
});
}
convertUsdToBdt(500);
Use Cases
- Price estimation at checkout
- Remittance comparison widgets
- Currency converters in blogs or dashboards
- Historical trend charts using cached data
Final Thoughts
If you're looking for a reliable, zero‑auth, no‑limits API to serve Ajker Takar Rate, HexaRate delivers. It’s lightweight, fast, easy to integrate, and perfect for client-side apps or dashboards.
Explore more on their documentation site or try the endpoint today.
Live Preview : আজকের টাকার রেট
Top comments (0)