Central Bank of Libya Exchange Rate API: Official LYD Rates as JSON

Reviewed by Madhushan, Fintech Developer — September 2026

The Central Bank of Libya publishes the official exchange rates that accounting, tax, and customs rules in Libya reference — published official rates, not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency central-bank-of-libya-exchange-rate npm package.

USD → LYD — official Central Bank of Libya official mid rate
Weekly observations, Sep '25 – Sep '26 · Libyan dinars per 1 US dollar
5.50066.500Sep '25Dec '25Mar '26Jun '26Sep '266.3402025-09-07: 5.408 LYD2025-09-14: 5.404 LYD2025-09-21: 5.405 LYD2025-09-28: 5.419 LYD2025-10-05: 5.405 LYD2025-10-12: 5.436 LYD2025-10-19: 5.428 LYD2025-10-26: 5.440 LYD2025-11-02: 5.461 LYD2025-11-09: 5.455 LYD2025-11-16: 5.447 LYD2025-11-23: 5.470 LYD2025-11-30: 5.449 LYD2025-12-07: 5.438 LYD2025-12-14: 5.422 LYD2025-12-21: 5.429 LYD2025-12-28: 5.410 LYD2025-12-31: 5.416 LYD2026-01-04: 5.419 LYD2026-01-11: 5.434 LYD2026-01-18: 6.381 LYD2026-01-25: 6.326 LYD2026-02-01: 6.315 LYD2026-02-08: 6.327 LYD2026-02-15: 6.303 LYD2026-02-22: 6.330 LYD2026-03-01: 6.323 LYD2026-03-08: 6.372 LYD2026-03-15: 6.416 LYD2026-03-19: 6.404 LYD2026-03-29: 6.400 LYD2026-04-05: 6.390 LYD2026-04-12: 6.344 LYD2026-04-19: 6.332 LYD2026-04-26: 6.343 LYD2026-05-03: 6.335 LYD2026-05-10: 6.318 LYD2026-05-17: 6.364 LYD2026-05-24: 6.363 LYD2026-05-26: 6.354 LYD2026-06-07: 6.382 LYD2026-06-14: 6.369 LYD2026-06-21: 6.395 LYD2026-06-28: 6.417 LYD2026-07-05: 6.398 LYD2026-07-12: 6.401 LYD2026-07-19: 6.396 LYD2026-07-26: 6.416 LYD2026-08-02: 6.363 LYD2026-08-09: 6.359 LYD2026-08-16: 6.359 LYD2026-08-23: 6.333 LYD2026-08-30: 6.357 LYD2026-09-06: 6.340 LYD
Source: Central Bank of Libya published rates · chart data from the AllRatesToday API (/api/v1/central-bank/cbl/history?source=USD&target=LYD).

What the CBL publishes

Libya runs two dinar prices — the official rate the CBL publishes and a parallel-market rate — and only the first has legal standing for customs valuation, bank transactions and the state budget. The API serves the official one, dated.

Why official rates, not market rates

A live mid-market feed answers "what is USD/LYD trading at right now?" — the right tool for checkouts and dashboards. But accountants, auditors, and tax authorities ask a different question: "which rate were you required to use for this date?" That answer comes from the Central Bank of Libya's published rates, and it never changes after publication.

Get the latest rates (REST)

curl "https://allratestoday.com/api/v1/central-bank/cbl/latest" \
  -H "Authorization: Bearer YOUR_API_KEY"

The response is the bank's most recent published data — every rate and the publication date. The latest rates are available on every plan, including the free tier (300 requests/month, no credit card).

The npm SDK

npm install central-bank-of-libya-exchange-rate
import { getRate, getLatestRates } from 'central-bank-of-libya-exchange-rate';

// One pair at the official CBL rate
const pair = await getRate('USD', 'LYD', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date);

// The bank's full published table
const table = await getLatestRates({ apiKey: 'art_live_...' });
console.log(table.rate_date, table.rates.length);

Zero dependencies, TypeScript types included, and it runs anywhere fetch exists — Node 18+, Bun, Deno, and edge runtimes.

Historical rates for an invoice date

import { getRatesForDate, getHistory } from 'central-bank-of-libya-exchange-rate';

// The official rates for an invoice date — non-publication days return
// the most recent published date, flagged via published_on_requested_date.
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });

// Time series for one pair
const series = await getHistory(
  { source: 'USD', target: 'LYD', from: '2026-01-01' },
  { apiKey: 'art_live_...' }
);

Historical dates and time series need a paid plan; the latest rates stay free.

Published vs derived pairs

If the CBL does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross rate via LYD — and flags it derived: true with the method used. Official and computed values are never silently mixed, which is exactly the distinction an auditor will ask about.

A decade including the 2021 devaluation

Our archive runs from 2015, across the January 2021 step that moved the official rate from about 1.4 to 4.5 dinars per dollar and on to today's mid-6s. Every published table on either side of that reset is queryable by date and rate type.

FAQ

Does the Central Bank of Libya have an official exchange rate API?

The CBL publishes its official rates on its own site, and AllRatesToday serves the same published rates as clean JSON via REST or the central-bank-of-libya-exchange-rate npm package. The latest table is free.

How often do Central Bank of Libya rates update?

Once per working day, Sunday to Thursday, with mid, buying and selling rates for 20 currencies. Friday and Saturday queries resolve to the most recent published table and are flagged; every response carries the publication date.

Can I get the CBL rate for a past date, like an invoice date?

Yes. The /central-bank/cbl/rates-for-date endpoint returns the official rates for any archived date. Non-publication days resolve to the most recent published date and are flagged, so your audit trail stays honest. Historical dates require a paid plan; latest rates are free.

Official Central Bank of Libya rates, as JSON

The latest rates are free — 300 requests/month, no credit card.

Get your free API key

Related Articles