National Reserve Bank of Tonga Exchange Rate API: TOP (Paʻanga) Dealer Average Rates as JSON
The National Reserve Bank of Tonga publishes, each business day, the average of the rates Tonga's authorized foreign-exchange dealers quote for the paʻanga. It is an average of dealer quotes compiled by the central bank — not a rate the bank sets, and not an official fixing. This guide shows how to pull it as JSON with curl, JavaScript and Python.
/api/v1/central-bank/nrbt/history?source=TOP&target=USD&type=middle).What the NRBT publishes
- Average buying, mid and selling rates quoted by Tonga's authorized foreign-exchange dealers, served as rate types
buy,middleandsell. - 12 currencies — the Australian, New Zealand, US, Fijian, Canadian and Singapore dollars, euro, pound sterling, Japanese yen, Samoan tala, Swiss franc and Swedish krona.
- Foreign currency per 1 TOP — on the table dated 26 November 2026, 1 paʻanga averaged 0.4106 US dollars mid (0.4183 buying, 0.4030 selling), 0.6199 Australian dollars and 0.742 New Zealand dollars.
- History back to January 2017, from the bank's daily workbook.
The table is what Tonga's dealers are charging, averaged and reported by the central bank — useful when you need a dated, citable figure for the paʻanga from the bank's own page. Check whether a rule you follow names this table; if it asks for a different rate, use that one.
Source page: Selected exchange rates on the National Reserve Bank of Tonga website.
What these rates are — and are not
A live mid-market feed answers "what is TOP/USD trading at right now?". The NRBT table answers a different question: what did Tonga's authorized dealers quote on a given business day, on average? It is a compilation of dealer rates, not a central-bank fixing, and the API labels each buying, mid and selling figure as its own rate type so you can pick the one your use needs.
Get the latest rates (REST)
curl "https://allratestoday.com/api/v1/central-bank/nrbt/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 NRBT quotes it.
For one pair, add source and target (and type to choose between the rate types the table carries):
curl "https://allratestoday.com/api/v1/central-bank/nrbt/latest?source=TOP&target=USD&type=middle" \
-H "Authorization: Bearer YOUR_API_KEY" JavaScript
const res = await fetch(
'https://allratestoday.com/api/v1/central-bank/nrbt/latest?source=TOP&target=USD&type=middle',
{ 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/nrbt/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/nrbt/2024-06-28" \
-H "Authorization: Bearer YOUR_API_KEY"
# A series for one pair
curl "https://allratestoday.com/api/v1/central-bank/nrbt/history?source=TOP&target=USD&type=middle&from=2026-01-01" \
-H "Authorization: Bearer YOUR_API_KEY" r = requests.get(
"https://allratestoday.com/api/v1/central-bank/nrbt/history",
params={"source": "TOP", "target": "USD", "type": "middle", "from": "2026-01-01"},
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 NRBT 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.
The paʻanga since 2017
The archive starts on 3 January 2017, when the dealers' mid rate was 0.4441 US dollars per paʻanga. It ended 2017 at 0.4537, held near 0.44 through 2021, eased to the 0.41–0.43 range from 2022 and stood at 0.4106 on 26 November 2026. For a past date, one call returns the table for that day; weekends and holidays resolve to the last published table and are flagged.
FAQ
Does the National Reserve Bank of Tonga have an exchange rate API?
The NRBT publishes its authorized dealers' average rates on its own website, not as a JSON API. AllRatesToday collects that table and serves it as JSON under the source code nrbt. The latest table is available on every plan, including the free tier; historical dates need a paid plan.
How often do National Reserve Bank of Tonga rates update?
Once per business day, as one table of average buying, mid and selling rates for 12 currencies, quoted as foreign currency per 1 TOP. Every API response carries the table's own date; weekends and holidays resolve to the last published table.
Can I get the NRBT rate for a past date, like an invoice date?
Yes, for any date from January 2017 onward. The /api/v1/central-bank/nrbt/2024-06-28 form returns the table for that date; non-publication days resolve to the most recent published date. Historical dates need a paid plan.
Is the NRBT rate an official fixing?
No. The National Reserve Bank of Tonga publishes the average of the buying, mid and selling rates Tonga's authorized foreign-exchange dealers quote. It is the central bank's compilation of dealer rates, not a rate the bank sets.
National Reserve Bank of Tonga authorized dealers' average rates, as JSON
The latest table is free — no credit card.
Get your free API keyRelated Articles
- National Reserve Bank of Tonga rates API — today's table
- All covered central banks
- Central Bank of Samoa exchange rate API guide
- Reserve Bank of Fiji exchange rate API guide
- Reserve Bank of New Zealand 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