Algeria market data, ready for production.
Build with structured DZD exchange rates, localized asset metadata, market-premium comparisons and EXDZ gold references through one authenticated JSON API.
What api.exchangedz.com does
This is the customer-facing data gateway for EXDZ. It authenticates your API key, reads already-published market records from the production PostgreSQL database, applies scopes and quotas, and returns predictable JSON over HTTPS.
Authenticates requests, filters records, paginates results and tracks usage.
Scraping and payment processing happen outside this read-only API.
Service contract
https://api.exchangedz.comA deliberately stable first release
Your first request
Store your key in a server-side environment variable, then request the latest EUR parallel-market observation.
curl "https://api.exchangedz.com/v1/rates/latest?currency=EUR&source=parallel" \
-H "Authorization: Bearer $EXDZ_API_KEY" 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) throw new Error(`EXDZ API returned ${response.status}`);
const payload = await response.json(); import os
import requests
response = requests.get(
"https://api.exchangedz.com/v1/rates/latest",
params={"currency": "EUR", "source": "parallel"},
headers={"Authorization": f"Bearer {os.environ['EXDZ_API_KEY']}"},
timeout=10,
)
response.raise_for_status()
payload = response.json() {
"data": [
{
"currency": "EUR",
"names": { "en": "Euro", "fr": "Euro", "ar": "يورو" },
"type": "currency",
"source": "parallel",
"quote": "DZD",
"buy": 274.67,
"sell": 277.17,
"updatedAt": "2026-08-24T00:00:00.000Z"
}
],
"meta": {
"requestId": "req_01J6EXDZ...",
"count": 1,
"source": "parallel",
"quote": "DZD",
"currencies": ["EUR"]
}
} Every response includes an X-Request-Id. Authenticated responses also expose burst and monthly quota headers.
Available data
Choose the smallest endpoint that answers your question. One valid request consumes one quota unit.
Newest parallel or official DZD observations for up to 25 assets.
/v1/rates/latest Cursor-paginated daily observations across a maximum 366-day window.
/v1/rates/history Matched parallel-versus-official differences in DZD and percent.
/v1/market/premium Latest and historical EXDZ 18K, 21K and 24K per-gram DZD references.
/v1/gold/latest Localized asset metadata plus grant, key and current quota information.
/v1/assets · /v1/me Production basics
- Keep keys server-side
- Never commit a key or place it in public browser code. Load it from a secret environment variable.
- Handle 429 responses
- Read Retry-After and retry with exponential backoff and jitter.
- Cache by freshness
- Rate data changes less often than application traffic. Cache responses for the period your product can safely reuse.
- Log request IDs
- Keep X-Request-Id with errors so support can trace a request without seeing your key.