Central Bank of Libya Exchange Rate API
Official Central Bank of Libya (Libya) daily exchange rates. All dozens of currencies published. Free JSON API for tax, audits, and compliant invoicing.
About Central Bank of Libya
The Central Bank of Libya publishes daily mid, buying and selling rates for 20 currencies against the Libyan dinar — the official rate that Libyan banks, customs and the state budget use, distinct from the parallel market. The bank's archive runs back to 2015, spanning the 2021 devaluation that reset the dinar from 1.4 to 4.5 per dollar.
- Official website: cbl.gov.ly
- Official rate publication: Currency exchange rates
Quick start
One request for the pair you need — USD to LYD at the official Central Bank of Libya rate:
curl "https://allratestoday.com/api/v1/central-bank/cbl/latest?source=USD&target=LYD" \
-H "Authorization: Bearer art_live_your_key" Or the bank's full published table:
curl "https://allratestoday.com/api/v1/central-bank/cbl/latest" \
-H "Authorization: Bearer art_live_your_key" On paid plans, any historical date or a time series:
curl "https://allratestoday.com/api/v1/central-bank/cbl/history?source=USD&target=LYD&from=2025-01-01" \
-H "Authorization: Bearer art_live_your_key" Node.js / TypeScript client
A dedicated zero-dependency npm package wraps these endpoints — central-bank-of-libya-exchange-rate:
npm install central-bank-of-libya-exchange-rate import { getRate } from 'central-bank-of-libya-exchange-rate';
const pair = await getRate('USD', 'LYD', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); Zero dependencies, TypeScript types included, and it runs anywhere fetch exists — Node 18+, Bun, Deno, and edge runtimes.
Full reference — installation, all four functions, response shapes, error codes: central-bank-of-libya-exchange-rate documentation.
Why use the official Central Bank of Libya rate?
A market rate is a moving target; the rate Central Bank of Libya publishes is a fixed, citable figure that stays put once printed — which is why invoicing, customs, audit evidence, and statutory accounting in Libya lean on it rather than on a live feed. Every response from this API carries the bank's own rate_date, and on days with no publication you get the most recent published table — the one compliance rules tell you to apply.
If a pair isn't in the bank's published table, the API computes it from that table (inverse or cross via LYD) and marks it "derived": true — published and computed values are never silently mixed.
Endpoints
GET /api/v1/central-bank/cbl/latest— latest table or single pair (all plans)GET /api/v1/central-bank/cbl/{YYYY-MM-DD}— the table for any date (paid plans)GET /api/v1/central-bank/cbl/history— time series, up to 5,000 rows (paid plans)GET /api/v1/central-bank/cbl/availability— publication calendar: the dates the bank actually published (all plans)
Full parameter reference in the API documentation. Every request counts toward your plan's monthly quota — rates change once per business day, so caching a published table locally makes a small quota go far.
Frequently asked questions
Does an exchange rate API exist for Central Bank of Libya data?
Yes. This endpoint returns Central Bank of Libya's official daily figures as JSON; the newest table is free on every plan.
How often are the rates updated?
Central Bank of Libya publishes once per business day; the API ingests each new table shortly after publication.
Are these really Central Bank of Libya's official figures?
Yes. Every value comes from Central Bank of Libya's own publication and is served unmodified, carrying the bank's publication date; computed pairs are explicitly flagged derived.
Central Bank of Libya rates, one API key
Latest table on every plan. No credit card to start.
Get Free API Key Read the Docs