Hirak Exchange Rates API

Cryptocurrency / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

Hirak Exchange Rates delivers real-time foreign currency and cryptocurrency exchange rates, covering 162 fiat currencies and 300+ cryptocurrencies updated every five minutes. It is designed for applications that need accurate, frequently refreshed rate data without imposing strict request limits. Common uses include currency converters, invoicing tools, and portfolio apps that need broad multi-currency support.

💡

Beginner Tip

Sign up for a free API key at rates.hirak.site and use it as a query parameter; the free plan provides generous rate data with no request caps, making it ideal for prototyping.

Available Data

coin price in USD/EUR
market capitalization
24h price change
trading volume
circulating supply

Example Response

JSON Response
{
  "id": "bitcoin",
  "symbol": "btc",
  "current_price": 65432.1,
  "market_cap": 1280000000000,
  "price_change_24h": 1250.5,
  "price_change_percentage_24h": 1.95,
  "total_volume": 28500000000
}

Field Reference

base The base currency from which all conversion rates are calculated.
rates Key-value map of currency codes to their conversion rate relative to the base.
timestamp Unix timestamp indicating when the rates were last updated.
success Whether the request was processed successfully.

Implementation Example

const url = "https://rates.hirak.site/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized The API key is missing or invalid in the request.
Append ?api_key=YOUR_KEY to the URL; double-check the key matches what you see in your Hirak dashboard.
Unknown currency code Using a non-standard or deprecated currency ticker that the API does not recognise.
Call the /currencies endpoint first to retrieve the full list of supported codes before building your query.
Stale rate warning Rates refresh every 5 minutes; if you cache responses aggressively you may serve outdated data.
Respect the Cache-Control header or limit your local cache TTL to 5 minutes to stay in sync with updates.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 2/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Cryptocurrency
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →