Make your first request.
Create a server-side environment variable, call the latest-rates endpoint and inspect the response and quota metadata.
Before you start
You need an active EXDZ API entitlement and a live API key. A newly issued key is shown exactly once.
envServer environment
EXDZ_API_KEY=exdz_live_your_key_here Make a request
The API base URL is https://api.exchangedz.com/v1. Send the key as a Bearer token.
bashcURL
curl "https://api.exchangedz.com/v1/rates/latest?currency=EUR&source=parallel" \
-H "Authorization: Bearer $EXDZ_API_KEY" javascriptNode.js 18+
const response = await fetch(
'https://api.exchangedz.com/v1/rates/latest?currency=EUR&source=parallel',
{ headers: { Authorization: `Bearer ${process.env.EXDZ_API_KEY}` } }
);
if (!response.ok) {
const problem = await response.json();
throw new Error(`EXDZ API: ${problem.error.code}`);
}
const { data, meta } = await response.json();
console.log(data[0].buy, data[0].sell, meta.requestId); Read the response
Check usage
Quota headers accompany every authenticated response. The account endpoint also returns a compact summary for dashboards and health checks.
curlCurrent key and quota
curl "https://api.exchangedz.com/v1/me" \
-H "Authorization: Bearer $EXDZ_API_KEY"