Banque du Liban Exchange Rate API: Official LBP Rates as JSON
Banque du Liban publishes the official exchange rate of the Lebanese pound each business day. Its website blocks automated access, so AllRatesToday collects the table through Frankfurter, the open-source rates service that tracks it, and serves the bank's own figures under the source code bdl, on the same endpoints as more than 130 other central banks. Every response names Banque du Liban as the source. This guide shows how to pull the rates as JSON with curl, JavaScript and Python.
/api/v1/central-bank/bdl/history?source=EUR&target=LBP).What the BdL publishes
- Lebanese pounds per 1 unit of seven currencies — the US dollar, euro, pound sterling, Swiss franc, Canadian and Australian dollars and Japanese yen.
- The official dollar rate of 89,500 pounds since 28 March 2024. On the table dated 26 November 2026: 89,500 per dollar, 98,217.30 per euro, 117,379.25 per pound sterling and 561.97 per yen.
- One table per business day, Monday to Friday, dated as the bank dates it.
- History from 2 January 2024, which covers the last months of the 15,000-pound official rate.
Lebanon's official rate and the rates people actually pay have often been far apart. This table is the bank's official one; check whether the rule you follow names it, or a different rate.
Source page: Exchange rates on the Banque du Liban website.
Why official rates, not market rates
A live mid-market feed answers "what is USD/LBP trading at right now?" — the right tool for checkouts and dashboards. Bookkeeping, tax and customs paperwork usually ask a different question: "which rate applied on this date?" For Lebanon that answer often comes from the Banque du Liban's own table, and it does not change after publication. Check which rate your filing rule names.
Where the numbers come from
Banque du Liban publishes the table at bdl.gov.lb/currentrate.php, but the site answers automated clients with a block page. Frankfurter, an open-source exchange-rate service, collects the same table every day, so AllRatesToday reads Banque du Liban's figures from Frankfurter and stores them unchanged, in pounds per unit as the bank prints them. Every bdl response carries a citation field naming both:
"citation": "Source: Banque du Liban official exchange rates (https://www.bdl.gov.lb/currentrate.php), collected through Frankfurter (https://frankfurter.dev, provider BDL)." Get the latest rates (REST)
curl "https://allratestoday.com/api/v1/central-bank/bdl/latest" \
-H "Authorization: Bearer YOUR_API_KEY" The response is the most recent table — every rate with its base, quote, rate type and value — and the date it belongs to. The latest table is available on every plan, including the free tier (no credit card). Each value is quote currency per one unit of base, exactly as the BdL quotes it.
For one pair, add source and target:
curl "https://allratestoday.com/api/v1/central-bank/bdl/latest?source=USD&target=LBP" \
-H "Authorization: Bearer YOUR_API_KEY" JavaScript
const res = await fetch(
'https://allratestoday.com/api/v1/central-bank/bdl/latest?source=USD&target=LBP',
{ headers: { Authorization: 'Bearer ' + process.env.ALLRATES_API_KEY } }
);
const pair = await res.json();
console.log(pair.rate, pair.rate_type, pair.rate_date, pair.derived); Plain fetch, so it runs anywhere — Node 18+, Bun, Deno, edge runtimes. Keep the API key on the server side.
Python
import os
import requests
r = requests.get(
"https://allratestoday.com/api/v1/central-bank/bdl/latest",
headers={"Authorization": f"Bearer {os.environ['ALLRATES_API_KEY']}"},
timeout=10,
)
r.raise_for_status()
table = r.json()
print(table["rate_date"])
for row in table["rates"]:
print(row["base"], row["quote"], row["type"], row["value"]) Historical rates for an invoice date
# The table in force on a past date (weekends and holidays resolve to the last published date)
curl "https://allratestoday.com/api/v1/central-bank/bdl/2024-03-01" \
-H "Authorization: Bearer YOUR_API_KEY"
# A series for one pair
curl "https://allratestoday.com/api/v1/central-bank/bdl/history?source=USD&target=LBP&from=2024-01-02" \
-H "Authorization: Bearer YOUR_API_KEY" r = requests.get(
"https://allratestoday.com/api/v1/central-bank/bdl/history",
params={"source": "USD", "target": "LBP", "from": "2024-01-02"},
headers={"Authorization": f"Bearer {os.environ['ALLRATES_API_KEY']}"},
timeout=10,
)
for point in r.json()["rates"]:
print(point["date"], point["rate"]) Historical dates and time series need a paid plan; the latest table stays free.
Published vs derived pairs
If the BdL does not print a pair directly, the API resolves it from the bank's own figures — an inverse, or a cross rate via the home currency — and flags it derived: true with the method used. Source figures and computed values are never silently mixed.
From 15,000 to 89,500
The archive starts on 2 January 2024, when the official rate was 15,000 pounds per dollar and 16,504.50 per euro. On 28 March 2024 the table moved to 89,500 pounds per dollar, the rate it has held since; the other six currencies move with their dollar cross rates. For a past date, one call returns the table in force that day; weekends and holidays resolve to the last published table and are flagged.
FAQ
Does the Banque du Liban have an exchange rate API?
The BdL publishes its official rates on its own website, not as a JSON API. AllRatesToday collects that table and serves it as JSON under the source code bdl. The latest table is available on every plan, including the free tier; historical dates need a paid plan.
How often do Banque du Liban rates update?
Once per business day, Monday to Friday. The table usually reaches the API within a day or two, because it is collected through Frankfurter; every response carries the table's own date.
Can I get the BdL rate for a past date, like an invoice date?
Yes, for any date from 2 January 2024. The /api/v1/central-bank/bdl/2024-03-01 form returns the table in force on that date, still at 15,000 pounds per dollar; non-publication days resolve to the most recent published date. Historical dates need a paid plan.
Why does AllRatesToday collect Banque du Liban rates through Frankfurter?
The bank's website blocks automated requests. Frankfurter, an open-source exchange-rate service, collects the same official table daily, so AllRatesToday reads the bank's figures from it unchanged. Every bdl response names Banque du Liban as the source and Frankfurter as the route.
Official Banque du Liban rates, as JSON
The latest table is free — no credit card.
Get your free API keyRelated Articles
- Banque du Liban rates API — today's table
- All covered central banks
- Central Bank of Egypt exchange rate API guide
- Central Bank of the UAE exchange rate API guide
- Saudi Central Bank (SAMA) exchange rate API guide
- How official rates are collected and stored
- Central bank API documentation
- Best exchange rate APIs in 2026 — how the official-rate and market-rate providers compare