AccèsBanque Madagascar Exchange Rate API: MGA Buy and Sell Rates as JSON
AccèsBanque Madagascar is a Malagasy bank focused on small businesses and individuals, part of the AccessHolding group. Its home page lists the day’s buy and sell rates in ariary for the euro and US dollar. This guide shows how to read that board as JSON: what the rates mean, how they compare with the Banky Foiben’i Madagasikara official rate, and the calls that return them.
What the AccèsBanque board shows
- 2 currencies against the Malagasy ariary: EUR and USD. Every value is MGA per 1 unit of the foreign currency.
- The cours de change (achat / vente) pair. Malagasy banks quote the ariary mainly against the euro and the US dollar, a few percent either side of the interbank (MID) reference rate published by the central bank. The Banky Foiben’i Madagasikara official rate is shown next to each row.
- USD on 15 November 2026: AccèsBanque bought at 4434 and sold at 4699 MGA, a spread of 5.80%. The Banky Foiben’i Madagasikara official rate was 4570.99, so the bank's mid sat -0.10% from it.
- The bank's own timestamp. The page prints a last-updated stamp (
2026-11-15on the board above), returned asbank_updated_atnext to ourcaptured_at. - Every day's board is kept permanently, from 15 November 2026, the day collection started. Read one past day with
?date=, or a range for one currency with the/historyendpoint (paid plans).
Spreads across the board
On the 15 November 2026 board the spreads were USD 5.80%, EUR 5.81%. Spread is (sell − buy) ÷ mid: what a round trip through the bank costs, before any fees. The API returns it on every row as spread_pct, so you can rank currencies or alert when a bank widens its board.
Get the board (REST)
You need an API key; the free key works. The full board:
curl "https://allratestoday.com/api/v1/bank-rates/mg/accesbanquemg" \
-H "Authorization: Bearer art_live_your_key" What comes back (the 15 November 2026 board, first three rows):
{
"bank": "accesbanquemg",
"name": "AccèsBanque Madagascar",
"country": "mg",
"quote_ccy": "MGA",
"bank_updated_at": "2026-11-15",
"basis": "Cours de change (achat / vente)",
"captured_at": "2026-11-15T11:16:17.284Z",
"rates": [
{"ccy":"EUR","buy":4879,"sell":5171,"mid":5025,"spread_pct":5.811,"official":5011.5,"vs_official_pct":0.269},
{"ccy":"USD","buy":4434,"sell":4699,"mid":4566.5,"spread_pct":5.803,"official":4570.99,"vs_official_pct":-0.098}
],
"disclaimer": "…",
"attribution": { … }
} One currency, with the row fields at the top level:
curl "https://allratestoday.com/api/v1/bank-rates/mg/accesbanquemg?ccy=USD" \
-H "Authorization: Bearer art_live_your_key" {
"bank": "accesbanquemg",
"name": "AccèsBanque Madagascar",
"country": "mg",
"quote_ccy": "MGA",
"bank_updated_at": "2026-11-15",
"basis": "Cours de change (achat / vente)",
"captured_at": "2026-11-15T11:16:17.284Z",
"ccy": "USD",
"buy": 4434,
"sell": 4699,
"mid": 4566.5,
"spread_pct": 5.803,
"official": 4570.99,
"vs_official_pct": -0.098,
"disclaimer": "Retail buy/sell rates as displayed on each bank’s own website at capture time, quoted as home currency per 1 unit of foreign currency. Indicative only: banks change these through the day, apply them at the counter or in-app, and they are not official or reference rates. For the rate a regulation names, use the central-bank endpoints.",
"attribution": {
"source": "Board rates published by AccèsBanque Madagascar on its own website, collected by AllRatesToday",
"bank_url": "https://www.accesbanque.mg/fr/",
"url": "https://allratestoday.com/bank-exchange-rate-api/mg/accesbanquemg/",
"terms": "Public pages that show the rates need a visible link to allratestoday.com"
}
} The board as it stood on a past day:
curl "https://allratestoday.com/api/v1/bank-rates/mg/accesbanquemg?date=2026-11-15" \
-H "Authorization: Bearer art_live_your_key" One currency over a date range, one row per day (paid plans; add &format=csv, xml or xlsx for a file):
curl "https://allratestoday.com/api/v1/bank-rates/mg/accesbanquemg/history?ccy=USD&from=2026-11-15&to=2026-11-15" \
-H "Authorization: Bearer art_live_your_key" JavaScript
npm install @allratestoday/sdk import { AllRatesToday } from '@allratestoday/sdk';
const client = new AllRatesToday({ apiKey: 'art_live_your_key' });
// AccèsBanque Madagascar's USD row
const r = await client.bankRates('mg', { bank: 'accesbanquemg', ccy: 'USD' });
console.log(`AccèsBanque buys USD at ${r.buy}, sells at ${r.sell} MGA`);
// The board as it stood on a past day
const past = await client.bankRates('mg', { bank: 'accesbanquemg', date: '2026-11-15' });
console.log(past.snapshot_date, past.rates.length); Python
import requests
r = requests.get(
"https://allratestoday.com/api/v1/bank-rates/mg/accesbanquemg",
headers={"Authorization": "Bearer art_live_your_key"},
timeout=10,
)
r.raise_for_status()
for row in r.json()["rates"]:
print(row["ccy"], row["buy"], row["sell"], row["spread_pct"]) Board rate or official rate?
The Banky Foiben’i Madagasikara rate is the one tax, accounting and customs rules in Madagascar name; nobody transacts at it. AccèsBanque's board is the price a customer actually gets. The API puts both on every row: official is the central bank's rate for the same currency and vs_official_pct is how far the bank's mid sits from it. Use the board to show customers a real price, compare banks for a remittance, or keep a dated record of what the bank quoted; use the Banky Foiben’i Madagasikara endpoint when a rule asks for the official rate.
FAQ
Where do the AccèsBanque Madagascar rates come from?
From the bank's own public rates page (https://www.accesbanque.mg/fr/), read hourly. AllRatesToday does not change the numbers: each row is the buy and sell price AccèsBanque shows, with the mid, the spread and the Banky Foiben’i Madagasikara rate added.
Are these the official MGA exchange rates?
No. They are AccèsBanque's retail prices for customers. The official rate in Madagascar is the Banky Foiben’i Madagasikara rate, which the API returns as official on each row where the central bank has one, and in full from the central-bank endpoint.
How often is the AccèsBanque board updated?
AllRatesToday reads the page every hour. The bank's own last-updated stamp is returned as bank_updated_at, so you can tell a fresh read of an unchanged board from a new board.
Can I get AccèsBanque rates for a past date?
Yes, from 15 November 2026 onward; every day's board is kept permanently. Add ?date=YYYY-MM-DD for one day: the response is the board captured that day, or the nearest earlier day within five days, with date_requested and snapshot_date added. For a range, /history?ccy=USD&from=…&to=… returns one row per day as JSON, CSV, XML or XLSX on paid plans.
Do I need an API key?
Yes. Commercial bank boards need an API key; any plan works, the free key included, and each call counts against the plan. Public pages or widgets that show the rates need a visible link to allratestoday.com.
AccèsBanque Madagascar rates, as JSON
Free API key, hourly board captures, the official rate alongside.
Get your free API key