<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Exchange Rate API</title>
    <description>The latest articles on DEV Community by Exchange Rate API (@exchange_rateapi_ee936ad).</description>
    <link>https://dev.to/exchange_rateapi_ee936ad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3956169%2F6211f582-6b4c-491a-a869-0c2dbcad0c53.png</url>
      <title>DEV Community: Exchange Rate API</title>
      <link>https://dev.to/exchange_rateapi_ee936ad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/exchange_rateapi_ee936ad"/>
    <language>en</language>
    <item>
      <title>U.S. Department of the Treasury Exchange Rates API: The Quarterly Official Rates Behind the United States Filings</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:26:05 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/us-department-of-the-treasury-exchange-rates-api-the-quarterly-official-rates-behind-the-united-5c1a</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/us-department-of-the-treasury-exchange-rates-api-the-quarterly-official-rates-behind-the-united-5c1a</guid>
      <description>&lt;p&gt;If you file taxes or customs declarations in the United States, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official U.S. Department of the Treasury rate for the period. This post shows what the U.S. Department of the Treasury table looks like right now and how to read it from code.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the U.S. Department of the Treasury
&lt;/h2&gt;

&lt;p&gt;The U.S. Department of the Treasury publishes the Treasury Reporting Rates of Exchange each quarter, through its Bureau of the Fiscal Service. Every US government agency must use these rates to convert foreign-currency balances into dollars for official reports — and contractors, grant recipients, and auditors follow the same table. Rates are amended mid-quarter when a currency moves sharply.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://fiscaldata.treasury.gov/datasets/treasury-reporting-rates-exchange/" rel="noopener noreferrer"&gt;Treasury Reporting Rates of Exchange&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-10-30
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;0.881&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;0.752&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;6.705&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;157.09&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;0.835&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;1.435&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;1.418&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;95.83&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;AED&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;3.673&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;SAR&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;16.393&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;SGD&lt;/td&gt;
&lt;td&gt;quarterly&lt;/td&gt;
&lt;td&gt;1.277&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 145 rows across 145 currencies (133 more on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/ustreasury/" rel="noopener noreferrer"&gt;U.S. Department of the Treasury rates page&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;The U.S. Department of the Treasury updates once a quarter. Between updates the API keeps returning the table in force, with its own &lt;code&gt;rate_date&lt;/code&gt;, so you always know which period a number belongs to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/ustreasury/latest?source=USD&amp;amp;target=EUR"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-10-30:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ustreasury"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"U.S. Department of the Treasury"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-10-30"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.881&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"quarterly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"quarterly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Node.js 18+ (built-in &lt;code&gt;fetch&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/ustreasury/latest?source=USD&amp;amp;target=EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${process.env.ALLRATES_KEY}`&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rate_date&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;derived&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"(derived)"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a quarterly schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair U.S. Department of the Treasury does not quote, the API computes it from the official table (inverse or cross via USD) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Filings that need the exact figure should only use rows where it is false.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 2001.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/ustreasury/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change once a quarter, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compare with bank boards in the United States
&lt;/h2&gt;

&lt;p&gt;The official rate is the reference. What a customer actually pays is the buy or sell price on a commercial bank board, such as Bank of America, Zions Bank and United Nations Federal Credit Union. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/us/" rel="noopener noreferrer"&gt;United States bank rates page&lt;/a&gt; and in the same API, so you can show the spread next to the official figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a U.S. Department of the Treasury exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/ustreasury/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does U.S. Department of the Treasury cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
145 in the current table: AED, AFN, ALL, AMD, AOA, ARS, AUD, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past U.S. Department of the Treasury rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2001 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/ustreasury/" rel="noopener noreferrer"&gt;U.S. Department of the Treasury page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/tax-authority-rates-api/ustreasury/" rel="noopener noreferrer"&gt;U.S. Department of the Treasury exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>javascript</category>
      <category>unitedstates</category>
    </item>
    <item>
      <title>Iceland Revenue and Customs Exchange Rates API: The Weekly Official Rates Behind Iceland Filings</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:21:34 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/iceland-revenue-and-customs-exchange-rates-api-the-weekly-official-rates-behind-iceland-filings-37h1</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/iceland-revenue-and-customs-exchange-rates-api-the-weekly-official-rates-behind-iceland-filings-37h1</guid>
      <description>&lt;p&gt;If you file taxes or customs declarations in Iceland, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official Iceland Revenue and Customs rate for the period. This post shows what the Iceland Revenue and Customs table looks like right now and how to read it from code.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Iceland Revenue and Customs
&lt;/h2&gt;

&lt;p&gt;The customs exchange rates (tollgengi) Iceland Revenue and Customs sets for converting foreign-currency values into krónur, with separate import and export rates. Each table takes effect on a Tuesday and is used to value goods on customs declarations.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://vefskil.tollur.is/tollalinan/gengi/Innflutningur.aspx" rel="noopener noreferrer"&gt;Weekly customs exchange rates (tollgengi)&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-24
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;125.42&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;125.42&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;137.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;137.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;163.97&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;163.97&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;18.819&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;18.819&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;0.7885&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;0.7885&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;149.36&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;ISK&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;149.36&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 50 rows across 25 currencies (38 more on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/tollgengi/" rel="noopener noreferrer"&gt;Iceland Revenue and Customs rates page&lt;/a&gt;).&lt;br&gt;
Rate types in this table: &lt;code&gt;export&lt;/code&gt;, &lt;code&gt;import&lt;/code&gt;. Pick the one your rule asks for; buy and sell are not interchangeable with the middle rate.&lt;/p&gt;
&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;The Iceland Revenue and Customs updates once a week. Between updates the API keeps returning the table in force, with its own &lt;code&gt;rate_date&lt;/code&gt;, so you always know which period a number belongs to.&lt;/p&gt;
&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/tollgengi/latest?source=USD&amp;amp;target=ISK"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-24:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tollgengi"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Iceland Revenue and Customs (customs exchange rates)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-24"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ISK"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;125.42&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"import"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"weekly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PHP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="nv"&gt;$ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;stream_context_create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"http"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"header"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer "&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;getenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ALLRATES_KEY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;$r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;json_decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;file_get_contents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/tollgengi/latest?source=USD&amp;amp;target=ISK"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" = "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;PHP_EOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a weekly schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair Iceland Revenue and Customs does not quote, the API computes it from the official table (inverse or cross via ISK) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Filings that need the exact figure should only use rows where it is false.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 1997.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/tollgengi/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change once a week, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compare with bank boards in Iceland
&lt;/h2&gt;

&lt;p&gt;The official rate is the reference. What a customer actually pays is the buy or sell price on a commercial bank board, such as Landsbankinn, Arion banki, Íslandsbanki and Kvika banki. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/is/" rel="noopener noreferrer"&gt;Iceland bank rates page&lt;/a&gt; and in the same API, so you can show the spread next to the official figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a Iceland Revenue and Customs exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/tollgengi/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does Iceland Revenue and Customs cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
25 in the current table: AUD, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, ILS, INR, JPY, KRW and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Iceland Revenue and Customs rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 1997 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/tollgengi/" rel="noopener noreferrer"&gt;Iceland Revenue and Customs page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/tax-authority-rates-api/tollgengi/" rel="noopener noreferrer"&gt;Iceland Revenue and Customs exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>php</category>
      <category>iceland</category>
    </item>
    <item>
      <title>Belgian Customs Exchange Rates: Get the Official Monthly Table via API</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:17:02 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/belgian-customs-exchange-rates-get-the-official-monthly-table-via-api-4ai7</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/belgian-customs-exchange-rates-get-the-official-monthly-table-via-api-4ai7</guid>
      <description>&lt;p&gt;The Belgian Customs sets official exchange rates once a month. If you file taxes or customs declarations in Belgium, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official Belgian Customs rate for the period.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Belgian Customs
&lt;/h2&gt;

&lt;p&gt;The monthly exchange rates Belgian Customs (FPS Finance) sets in the TARBEL tariff browser for converting foreign-currency amounts into euro for the customs value, for ECB-listed and unlisted currencies. They are the legal rates for goods declared in Belgium and are valid for the calendar month (with mid-month replacement tables up to 2016).&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://eservices.minfin.fgov.be/extTariffBrowser/FileResourceForHomePageServlet?fname=wisselkoersen.html&amp;amp;parentID=&amp;amp;lang=NL" rel="noopener noreferrer"&gt;Monthly customs exchange rates (TARBEL)&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-01
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;1.1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;0.83825&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;7.4999&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;177.36&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;0.9256&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;1.5971&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;1.5779&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;106.126&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;AED&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;4.1839&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;SAR&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;4.2768&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;18.393&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;SGD&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;1.4348&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 81 rows across 81 currencies (69 more on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/tarbel/" rel="noopener noreferrer"&gt;Belgian Customs rates page&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;The Belgian Customs updates once a month. Between updates the API keeps returning the table in force, with its own &lt;code&gt;rate_date&lt;/code&gt;, so you always know which period a number belongs to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/tarbel/latest?source=USD&amp;amp;target=EUR"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-01:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tarbel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Belgian Customs (FPS Finance, TARBEL)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-01"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.890154887&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"monthly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"inverse"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;29&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"monthly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Node.js 18+ (built-in &lt;code&gt;fetch&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/tarbel/latest?source=USD&amp;amp;target=EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${process.env.ALLRATES_KEY}`&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rate_date&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;derived&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"(derived)"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a monthly schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair Belgian Customs does not quote, the API computes it from the official table (inverse or cross via EUR) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Filings that need the exact figure should only use rows where it is false.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 2007.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/tarbel/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change once a month, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a Belgian Customs exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/tarbel/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does Belgian Customs cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
81 in the current table: AED, ARS, AUD, BAM, BBD, BDT, BHD, BIF, BRL, CAD, CDF, CHF, CLP, CNY, COP and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Belgian Customs rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2007 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/tarbel/" rel="noopener noreferrer"&gt;Belgian Customs page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/tax-authority-rates-api/tarbel/" rel="noopener noreferrer"&gt;Belgian Customs exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>javascript</category>
      <category>belgium</category>
    </item>
    <item>
      <title>Superintendencia Financiera de Colombia (TRM) COP Exchange Rates for Developers: Table, Timing and History</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:12:31 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/superintendencia-financiera-de-colombia-trm-cop-exchange-rates-for-developers-table-timing-and-3db9</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/superintendencia-financiera-de-colombia-trm-cop-exchange-rates-for-developers-table-timing-and-3db9</guid>
      <description>&lt;p&gt;The Superintendencia Financiera de Colombia (TRM) sets official exchange rates every business day. Payments, accounting and compliance code that touches COP often has to use the official Superintendencia Financiera de Colombia (TRM) rate for a given date, not a live market quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Superintendencia Financiera de Colombia (TRM)
&lt;/h2&gt;

&lt;p&gt;The Superintendencia Financiera de Colombia certifies the TRM (Tasa Representativa del Mercado), the official USD/COP exchange rate calculated from interbank trading. The TRM is the legally binding rate for Colombian tax, customs and accounting purposes, certified each business day for the following day.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.superfinanciera.gov.co/publicaciones/60819/trm/" rel="noopener noreferrer"&gt;TRM — Tasa Representativa del Mercado&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-28
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;COP&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;3498.46&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 1 rows, all shown above.&lt;/p&gt;

&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;Usually in the API by 00:15 UTC. Measured over the last 11 publications (most often at 00:08 UTC). Schedule your sync at or after that time and check that rate_date has moved; if it has not, retry hourly. Local publication time: about 19:08 GMT-5 (America/Bogota), Superintendencia Financiera de Colombia's own clock. Responses carry this as &lt;code&gt;available_by_utc&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On weekends and holidays there is no new table. The API returns the most recent one, which is what most tax and accounting rules ask you to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/sfc/latest?source=USD&amp;amp;target=COP"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-28:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sfc"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Superintendencia Financiera de Colombia"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-28"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"COP"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;3498.46&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"reference"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"available_by_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"00:15"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"00:08"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"publisher_timezone"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"America/Bogota"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_local"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"19:08"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PHP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="nv"&gt;$ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;stream_context_create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"http"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"header"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer "&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;getenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ALLRATES_KEY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;$r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;json_decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;file_get_contents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/sfc/latest?source=USD&amp;amp;target=COP"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" = "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;PHP_EOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a daily schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair Superintendencia Financiera de Colombia (TRM) does not quote, the API computes it from the official table (inverse or cross via COP) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Keep it false where a regulation names the source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 1991.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/sfc/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change every business day, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the calendar.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/sfc/availability&lt;/code&gt; lists the dates Superintendencia Financiera de Colombia (TRM) actually issued a table, which helps when you need to explain a gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a Superintendencia Financiera de Colombia (TRM) exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/sfc/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does Superintendencia Financiera de Colombia (TRM) cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
1 in the current table: USD.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Superintendencia Financiera de Colombia (TRM) rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 1991 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/central-bank-rates-api/sfc/" rel="noopener noreferrer"&gt;Superintendencia Financiera de Colombia (TRM) page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/central-bank-rates-api/sfc/" rel="noopener noreferrer"&gt;Superintendencia Financiera de Colombia (TRM) exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>php</category>
      <category>colombia</category>
    </item>
    <item>
      <title>How to Get SARS Customs rates of exchange in Code (Daily, Official Table)</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:07:59 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/how-to-get-sars-customs-rates-of-exchange-in-code-daily-official-table-44c</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/how-to-get-sars-customs-rates-of-exchange-in-code-daily-official-table-44c</guid>
      <description>&lt;p&gt;Searching for "SARS customs rates of exchange exchange rate" gets you a web page. Code needs JSON with a date on it. If you file taxes or customs declarations in South Africa, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official SARS customs rates of exchange rate for the period.&lt;/p&gt;

&lt;h2&gt;
  
  
  About SARS customs rates of exchange
&lt;/h2&gt;

&lt;p&gt;The South African Revenue Service's daily customs rates of exchange, given in its REX tool as the amount of each foreign currency per one rand. Customs uses them to convert the foreign value on import and export declarations into rand for customs valuation and duty.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://tools.sars.gov.za/rex/rates/MultipleDefault.aspx" rel="noopener noreferrer"&gt;Daily customs rates of exchange (REX)&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-27
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.056689&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.051458&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.043053&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.377288&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;8.94515&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.0466&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.0838&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.08&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;5.26373&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;AED&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.208208&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;HKD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.43885&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.320376&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 20 rows across 20 currencies (8 more on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/sarsrex/" rel="noopener noreferrer"&gt;SARS customs rates of exchange rates page&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;SARS customs rates of exchange updates every business day. Between updates the API keeps returning the table in force, with its own &lt;code&gt;rate_date&lt;/code&gt;, so you always know which period a number belongs to.&lt;/p&gt;

&lt;p&gt;On weekends and holidays there is no new table. The API returns the most recent one, which is what most tax and accounting rules ask you to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/sarsrex/latest?source=USD&amp;amp;target=ZAR"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-27:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sarsrex"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"South African Revenue Service (customs rates of exchange)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-27"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ZAR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;17.64010655&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"reference"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"inverse"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Go:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;NewRequest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"GET"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/sarsrex/latest?source=USD&amp;amp;target=ZAR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Bearer "&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Getenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ALLRATES_KEY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DefaultClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Do&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Fatal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;defer&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;RateDate&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="sb"&gt;`json:"rate_date"`&lt;/span&gt;
    &lt;span class="nc"&gt;Rate&lt;/span&gt; &lt;span class="kt"&gt;float64&lt;/span&gt; &lt;span class="sb"&gt;`json:"rate"`&lt;/span&gt;
    &lt;span class="nc"&gt;Derived&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="sb"&gt;`json:"derived"`&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;NewDecoder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;RateDate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Derived&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a daily schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair SARS customs rates of exchange does not quote, the API computes it from the official table (inverse or cross via ZAR) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Filings that need the exact figure should only use rows where it is false.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 1990.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/sarsrex/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change every business day, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the calendar.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/sarsrex/availability&lt;/code&gt; lists the dates SARS customs rates of exchange actually issued a table, which helps when you need to explain a gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compare with bank boards in South Africa
&lt;/h2&gt;

&lt;p&gt;The official rate is the reference. What a customer actually pays is the buy or sell price on a commercial bank board, such as Absa Bank, Nedbank and Standard Bank. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/za/" rel="noopener noreferrer"&gt;South Africa bank rates page&lt;/a&gt; and in the same API, so you can show the spread next to the official figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a SARS customs rates of exchange exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/sarsrex/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does SARS customs rates of exchange cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
20 in the current table: AED, AUD, BRL, BWP, CAD, CHF, CNY, DKK, EUR, GBP, HKD, INR, JPY, MWK, NOK and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past SARS customs rates of exchange rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 1990 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/sarsrex/" rel="noopener noreferrer"&gt;SARS customs rates of exchange page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/tax-authority-rates-api/sarsrex/" rel="noopener noreferrer"&gt;SARS customs rates of exchange&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>go</category>
      <category>southafrica</category>
    </item>
    <item>
      <title>Royal Monetary Authority of Bhutan Exchange Rates: Official BTN Rates via API</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:03:28 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/royal-monetary-authority-of-bhutan-exchange-rates-official-btn-rates-via-api-a6n</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/royal-monetary-authority-of-bhutan-exchange-rates-official-btn-rates-via-api-a6n</guid>
      <description>&lt;p&gt;The Royal Monetary Authority of Bhutan sets official exchange rates every business day. Payments, accounting and compliance code that touches BTN often has to use the official Royal Monetary Authority of Bhutan rate for a given date, not a live market quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Royal Monetary Authority of Bhutan
&lt;/h2&gt;

&lt;p&gt;The Royal Monetary Authority of Bhutan publishes daily telegraphic-transfer buying and selling rates for 12 currencies in ngultrum. The ngultrum is pegged one-to-one to the Indian rupee, so the table tracks the rupee's moves against the dollar, euro and the other majors; the RMA's online archive starts in mid-2024.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.rma.org.bt/exchangeRates/" rel="noopener noreferrer"&gt;Exchange rates&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-27
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;92.22&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;92.86&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;101.18&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;101.87&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;120.9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;121.73&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;0.5791&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;0.5832&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;110.62&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;111.41&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;61.18&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;BTN&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;61.56&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 24 rows across 12 currencies (12 more on the &lt;a href="https://allratestoday.com/central-bank-rates-api/rma/" rel="noopener noreferrer"&gt;Royal Monetary Authority of Bhutan rates page&lt;/a&gt;).&lt;br&gt;
Rate types in this table: &lt;code&gt;buy&lt;/code&gt;, &lt;code&gt;sell&lt;/code&gt;. Pick the one your rule asks for; buy and sell are not interchangeable with the middle rate.&lt;/p&gt;
&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;Usually in the API by 15:00 UTC. Measured over the last 10 publications (most often at 13:06 UTC). Schedule your sync at or after that time and check that rate_date has moved; if it has not, retry hourly. Local publication time: about 19:06 GMT+6 (Asia/Thimphu), Royal Monetary Authority of Bhutan's own clock. Responses carry this as &lt;code&gt;available_by_utc&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On weekends and holidays there is no new table. The API returns the most recent one, which is what most tax and accounting rules ask you to use.&lt;/p&gt;
&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/rma/latest?source=USD&amp;amp;target=BTN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-27:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"rma"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Royal Monetary Authority of Bhutan"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-27"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"BTN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;92.22&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"buy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"available_by_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"15:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"13:06"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"publisher_timezone"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Asia/Thimphu"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_local"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"19:06"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PHP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="nv"&gt;$ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;stream_context_create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"http"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"header"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer "&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;getenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ALLRATES_KEY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;$r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;json_decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;file_get_contents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/rma/latest?source=USD&amp;amp;target=BTN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" = "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;PHP_EOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a daily schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair Royal Monetary Authority of Bhutan does not quote, the API computes it from the official table (inverse or cross via BTN) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Keep it false where a regulation names the source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 2024.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/rma/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change every business day, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the calendar.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/rma/availability&lt;/code&gt; lists the dates Royal Monetary Authority of Bhutan actually issued a table, which helps when you need to explain a gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compare with bank boards in Bhutan
&lt;/h2&gt;

&lt;p&gt;The official rate is the reference. What a customer actually pays is the buy or sell price on a commercial bank board, such as Druk PNB Bank, Bank of Bhutan and T Bank. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/bt/" rel="noopener noreferrer"&gt;Bhutan bank rates page&lt;/a&gt; and in the same API, so you can show the spread next to the official figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a Royal Monetary Authority of Bhutan exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/rma/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does Royal Monetary Authority of Bhutan cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
12 in the current table: AUD, CAD, CHF, DKK, EUR, GBP, HKD, JPY, NOK, SEK, SGD, USD.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Royal Monetary Authority of Bhutan rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2024 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/central-bank-rates-api/rma/" rel="noopener noreferrer"&gt;Royal Monetary Authority of Bhutan page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/central-bank-rates-api/rma/" rel="noopener noreferrer"&gt;Royal Monetary Authority of Bhutan exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>php</category>
      <category>bhutan</category>
    </item>
    <item>
      <title>How to Get Receita Federal do Brasil Exchange Rates in Code (Quarterly, Official Table)</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:58:56 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/how-to-get-receita-federal-do-brasil-exchange-rates-in-code-quarterly-official-table-4j66</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/how-to-get-receita-federal-do-brasil-exchange-rates-in-code-quarterly-official-table-4j66</guid>
      <description>&lt;p&gt;Searching for "Receita Federal do Brasil exchange rate" gets you a web page. Code needs JSON with a date on it. If you file taxes or customs declarations in Brazil, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official Receita Federal do Brasil rate for the period.&lt;/p&gt;

&lt;h2&gt;
  
  
  About Receita Federal do Brasil
&lt;/h2&gt;

&lt;p&gt;The month-end buy and sell rates for the US dollar, euro, Swiss franc, yen and pound that Brazil's federal revenue service lists for revaluing foreign-currency credits and obligations when companies draw up balance sheets for corporate income tax (IRPJ, lucro real). They are the Banco Central do Brasil closing quotations of the last business day of each month.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.gov.br/receitafederal/pt-br/assuntos/orientacao-tributaria/declaracoes-e-demonstrativos/ecf/taxas-de-cambio-incluindo-valor-do-dolar-para-fins-fiscais-irpj" rel="noopener noreferrer"&gt;Month-end exchange rates for tax (IRPJ)&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-09-30
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;5.1803&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;5.1809&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;5.876&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;5.8777&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;6.8717&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;6.873&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;0.03294&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;0.03294&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;6.2047&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;BRL&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;6.2062&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 10 rows across 5 currencies, all shown above.&lt;br&gt;
Rate types in this table: &lt;code&gt;buy&lt;/code&gt;, &lt;code&gt;sell&lt;/code&gt;. Pick the one your rule asks for; buy and sell are not interchangeable with the middle rate.&lt;/p&gt;
&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;Receita Federal do Brasil updates once a quarter. Between updates the API keeps returning the table in force, with its own &lt;code&gt;rate_date&lt;/code&gt;, so you always know which period a number belongs to.&lt;/p&gt;
&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/receitabr/latest?source=USD&amp;amp;target=BRL"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-09-30:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"receitabr"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Receita Federal do Brasil"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-09-30"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"BRL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;5.1803&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"buy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;61&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"quarterly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PHP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="nv"&gt;$ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;stream_context_create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"http"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"header"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer "&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;getenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ALLRATES_KEY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;$r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;json_decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;file_get_contents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/receitabr/latest?source=USD&amp;amp;target=BRL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" = "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;PHP_EOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a quarterly schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair Receita Federal do Brasil does not quote, the API computes it from the official table (inverse or cross via BRL) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Filings that need the exact figure should only use rows where it is false.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 2017.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/receitabr/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change once a quarter, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a Receita Federal do Brasil exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/receitabr/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does Receita Federal do Brasil cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
5 in the current table: CHF, EUR, GBP, JPY, USD.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Receita Federal do Brasil rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2017 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/receitabr/" rel="noopener noreferrer"&gt;Receita Federal do Brasil page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/tax-authority-rates-api/receitabr/" rel="noopener noreferrer"&gt;Receita Federal do Brasil exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>php</category>
      <category>brazil</category>
    </item>
    <item>
      <title>Reserve Bank of Malawi MWK Exchange Rates for Developers: Table, Timing and History</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:54:25 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/reserve-bank-of-malawi-mwk-exchange-rates-for-developers-table-timing-and-history-nh3</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/reserve-bank-of-malawi-mwk-exchange-rates-for-developers-table-timing-and-history-nh3</guid>
      <description>&lt;p&gt;Searching for "Reserve Bank of Malawi exchange rate" gets you a web page. Code needs JSON with a date on it. Payments, accounting and compliance code that touches MWK often has to use the official Reserve Bank of Malawi rate for a given date, not a live market quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Reserve Bank of Malawi
&lt;/h2&gt;

&lt;p&gt;The Reserve Bank of Malawi publishes daily buying, middle and selling rates for the kwacha against around 38 currencies. Through the kwacha's managed float — including the sharp official devaluations of recent years — the RBM table is the official series Malawian banks, importers and the revenue authority must cite.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.rbm.mw/Statistics/MajorRates/" rel="noopener noreferrer"&gt;Major rates&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-27
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;1717.02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;1734.01&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;1751&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;1942.03&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;1961.24&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;1980.46&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;2321.02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;2343.99&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;2366.95&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;258.024&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;260.577&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;MWK&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;263.13&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 114 rows across 38 currencies (102 more on the &lt;a href="https://allratestoday.com/central-bank-rates-api/rbm/" rel="noopener noreferrer"&gt;Reserve Bank of Malawi rates page&lt;/a&gt;).&lt;br&gt;
Rate types in this table: &lt;code&gt;buy&lt;/code&gt;, &lt;code&gt;middle&lt;/code&gt;, &lt;code&gt;sell&lt;/code&gt;. Pick the one your rule asks for; buy and sell are not interchangeable with the middle rate.&lt;/p&gt;
&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;Usually in the API by 08:20 UTC. Measured over the last 10 publications (most often at 08:09 UTC). Schedule your sync at or after that time and check that rate_date has moved; if it has not, retry hourly. Local publication time: about 10:09 GMT+2 (Africa/Blantyre), Reserve Bank of Malawi's own clock. Responses carry this as &lt;code&gt;available_by_utc&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On weekends and holidays there is no new table. The API returns the most recent one, which is what most tax and accounting rules ask you to use.&lt;/p&gt;
&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/rbm/latest?source=USD&amp;amp;target=MWK"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-27:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"rbm"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Reserve Bank of Malawi"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-27"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"MWK"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1717.0236&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"buy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"available_by_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"08:20"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"08:09"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"publisher_timezone"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Africa/Blantyre"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_local"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"10:09"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PHP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="nv"&gt;$ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;stream_context_create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"http"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"header"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer "&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;getenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ALLRATES_KEY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;$r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;json_decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;file_get_contents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/rbm/latest?source=USD&amp;amp;target=MWK"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" = "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;PHP_EOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a daily schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair Reserve Bank of Malawi does not quote, the API computes it from the official table (inverse or cross via MWK) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Keep it false where a regulation names the source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 2016.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/rbm/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change every business day, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the calendar.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/rbm/availability&lt;/code&gt; lists the dates Reserve Bank of Malawi actually issued a table, which helps when you need to explain a gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compare with bank boards in Malawi
&lt;/h2&gt;

&lt;p&gt;The official rate is the reference. What a customer actually pays is the buy or sell price on a commercial bank board, such as NBS Bank and First Capital Bank Malawi. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/mw/" rel="noopener noreferrer"&gt;Malawi bank rates page&lt;/a&gt; and in the same API, so you can show the spread next to the official figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a Reserve Bank of Malawi exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/rbm/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does Reserve Bank of Malawi cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
38 in the current table: AED, ARS, AUD, BWP, CAD, CHF, CMD, CNY, DKK, ETB, EUR, GBP, HKD, IDR, IEP and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Reserve Bank of Malawi rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2016 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/central-bank-rates-api/rbm/" rel="noopener noreferrer"&gt;Reserve Bank of Malawi page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/central-bank-rates-api/rbm/" rel="noopener noreferrer"&gt;Reserve Bank of Malawi exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>php</category>
      <category>malawi</category>
    </item>
    <item>
      <title>How to Get Palestine Monetary Authority Exchange Rates in Code (Official ILS Table)</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:49:50 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/how-to-get-palestine-monetary-authority-exchange-rates-in-code-official-ils-table-ka8</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/how-to-get-palestine-monetary-authority-exchange-rates-in-code-official-ils-table-ka8</guid>
      <description>&lt;p&gt;The Palestine Monetary Authority sets official exchange rates every business day. Payments, accounting and compliance code that touches ILS often has to use the official Palestine Monetary Authority rate for a given date, not a live market quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Palestine Monetary Authority
&lt;/h2&gt;

&lt;p&gt;The Palestine Monetary Authority publishes daily buying and selling rates for the currencies that actually circulate in Palestine — the US dollar, Jordanian dinar, euro and Egyptian pound — quoted in Israeli new shekels, since Palestine issues no currency of its own. The bulletin is the official local reference for pricing and settlement across the three currencies in everyday use.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.pma.ps/en/exchange-rates-live" rel="noopener noreferrer"&gt;Exchange rates&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-29
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;ILS&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;3.3216&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;ILS&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;3.3247&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;ILS&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;3.6288&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;ILS&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;3.6395&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EGP&lt;/td&gt;
&lt;td&gt;ILS&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;0.0606&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EGP&lt;/td&gt;
&lt;td&gt;ILS&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;0.0607&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JOD&lt;/td&gt;
&lt;td&gt;ILS&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;4.6783&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JOD&lt;/td&gt;
&lt;td&gt;ILS&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;4.6959&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 8 rows across 4 currencies, all shown above.&lt;br&gt;
Rate types in this table: &lt;code&gt;buy&lt;/code&gt;, &lt;code&gt;sell&lt;/code&gt;. Pick the one your rule asks for; buy and sell are not interchangeable with the middle rate.&lt;/p&gt;
&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;Usually in the API by 10:15 UTC. Measured over the last 10 publications (most often at 08:08 UTC). Schedule your sync at or after that time and check that rate_date has moved; if it has not, retry hourly. Local publication time: about 10:08 EET (Asia/Hebron), Palestine Monetary Authority's own clock. Responses carry this as &lt;code&gt;available_by_utc&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On weekends and holidays there is no new table. The API returns the most recent one, which is what most tax and accounting rules ask you to use.&lt;/p&gt;
&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/pma/latest?source=USD&amp;amp;target=ILS"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-29:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"pma"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Palestine Monetary Authority"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-29"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ILS"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;3.3216&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"buy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"available_by_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"10:15"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"08:08"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"publisher_timezone"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Asia/Hebron"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_local"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"10:08"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PHP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;?&lt;/span&gt;&lt;span class="n"&gt;php&lt;/span&gt;
&lt;span class="nv"&gt;$ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;stream_context_create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"http"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"header"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer "&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;getenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ALLRATES_KEY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;$r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;json_decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;file_get_contents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/pma/latest?source=USD&amp;amp;target=ILS"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;" = "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;PHP_EOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a daily schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair Palestine Monetary Authority does not quote, the API computes it from the official table (inverse or cross via ILS) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Keep it false where a regulation names the source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 2026.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/pma/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change every business day, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the calendar.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/pma/availability&lt;/code&gt; lists the dates Palestine Monetary Authority actually issued a table, which helps when you need to explain a gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compare with bank boards in Palestine
&lt;/h2&gt;

&lt;p&gt;The official rate is the reference. What a customer actually pays is the buy or sell price on a commercial bank board, such as Safa Bank and Palestine Islamic Bank. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/ps/" rel="noopener noreferrer"&gt;Palestine bank rates page&lt;/a&gt; and in the same API, so you can show the spread next to the official figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a Palestine Monetary Authority exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/pma/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does Palestine Monetary Authority cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
4 in the current table: EGP, EUR, JOD, USD.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Palestine Monetary Authority rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2026 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/central-bank-rates-api/pma/" rel="noopener noreferrer"&gt;Palestine Monetary Authority page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/central-bank-rates-api/pma/" rel="noopener noreferrer"&gt;Palestine Monetary Authority exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>php</category>
      <category>palestine</category>
    </item>
    <item>
      <title>National Reserve Bank of Tonga Exchange Rate Today as JSON: The Official Tonga Table</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:45:19 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/national-reserve-bank-of-tonga-exchange-rate-today-as-json-the-official-tonga-table-2hdl</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/national-reserve-bank-of-tonga-exchange-rate-today-as-json-the-official-tonga-table-2hdl</guid>
      <description>&lt;p&gt;Payments, accounting and compliance code that touches TOP often has to use the official National Reserve Bank of Tonga rate for a given date, not a live market quote. This post shows what the National Reserve Bank of Tonga table looks like right now and how to read it from code.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the National Reserve Bank of Tonga
&lt;/h2&gt;

&lt;p&gt;The National Reserve Bank of Tonga publishes the average buying, mid and selling rates quoted by Tonga's authorized foreign-exchange dealers each business day, for the Australian, New Zealand, US, Fijian, Canadian and Singapore dollars, euro, pound sterling, Japanese yen, Samoan tala, Swiss franc and Swedish krona, as foreign currency per 1 TOP. Our history goes back to January 2017, from the bank's daily workbook.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.reservebank.to/index.php/financial-system/financial-markets/exchange-rates" rel="noopener noreferrer"&gt;Selected exchange rates&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-26
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;0.4183&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;0.4106&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;0.403&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;0.3927&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;0.3725&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;0.3522&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;0.3247&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;0.3113&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;0.298&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;66.5295&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;65.2482&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TOP&lt;/td&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;63.9668&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 36 rows across 12 currencies (24 more on the &lt;a href="https://allratestoday.com/central-bank-rates-api/nrbt/" rel="noopener noreferrer"&gt;National Reserve Bank of Tonga rates page&lt;/a&gt;).&lt;br&gt;
Rate types in this table: &lt;code&gt;buy&lt;/code&gt;, &lt;code&gt;middle&lt;/code&gt;, &lt;code&gt;sell&lt;/code&gt;. Pick the one your rule asks for; buy and sell are not interchangeable with the middle rate.&lt;/p&gt;
&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;The National Reserve Bank of Tonga updates every business day. Between updates the API keeps returning the table in force, with its own &lt;code&gt;rate_date&lt;/code&gt;, so you always know which period a number belongs to.&lt;/p&gt;

&lt;p&gt;On weekends and holidays there is no new table. The API returns the most recent one, which is what most tax and accounting rules ask you to use.&lt;/p&gt;
&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/nrbt/latest?source=TOP&amp;amp;target=USD"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-26:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"nrbt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"National Reserve Bank of Tonga"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-26"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"TOP"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.4183&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"buy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python with &lt;code&gt;requests&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/nrbt/latest?source=TOP&amp;amp;target=USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Bearer {os.environ['ALLRATES_KEY']}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"derived"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a daily schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair National Reserve Bank of Tonga does not quote, the API computes it from the official table (inverse or cross via TOP) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Keep it false where a regulation names the source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 2017.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/nrbt/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change every business day, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the calendar.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/nrbt/availability&lt;/code&gt; lists the dates National Reserve Bank of Tonga actually issued a table, which helps when you need to explain a gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a National Reserve Bank of Tonga exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/nrbt/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does National Reserve Bank of Tonga cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
12 in the current table: AUD, CAD, CHF, EUR, FJD, GBP, JPY, NZD, SEK, SGD, USD, WST.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past National Reserve Bank of Tonga rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2017 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/central-bank-rates-api/nrbt/" rel="noopener noreferrer"&gt;National Reserve Bank of Tonga page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/central-bank-rates-api/nrbt/" rel="noopener noreferrer"&gt;National Reserve Bank of Tonga exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>python</category>
      <category>tonga</category>
    </item>
    <item>
      <title>National Bank of Ukraine Exchange Rates: Official UAH Rates via API</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:40:45 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/national-bank-of-ukraine-exchange-rates-official-uah-rates-via-api-4pn5</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/national-bank-of-ukraine-exchange-rates-official-uah-rates-via-api-4pn5</guid>
      <description>&lt;p&gt;Payments, accounting and compliance code that touches UAH often has to use the official National Bank of Ukraine rate for a given date, not a live market quote. This post shows what the National Bank of Ukraine table looks like right now and how to read it from code.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the National Bank of Ukraine
&lt;/h2&gt;

&lt;p&gt;The National Bank of Ukraine sets the hryvnia's official exchange rates for around 45 currencies each business day — published in the afternoon for the next working day, and the legally mandated reference for Ukrainian accounting and customs.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://bank.gov.ua/en/markets/exchangerates" rel="noopener noreferrer"&gt;Official hryvnia exchange rates&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-30
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;45.0165&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;49.3532&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;59.0948&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;6.7635&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.28229&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;53.8852&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;30.0404&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;31.6095&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.48423&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AED&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;12.2559&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SAR&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;11.9997&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;UAH&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;2.5956&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 45 rows across 45 currencies (33 more on the &lt;a href="https://allratestoday.com/central-bank-rates-api/nbu/" rel="noopener noreferrer"&gt;National Bank of Ukraine rates page&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;Usually in the API by 13:25 UTC. Measured over the last 11 publications (most often at 13:15 UTC). Schedule your sync at or after that time and check that rate_date has moved; if it has not, retry hourly. Local publication time: about 15:15 EET (Europe/Kyiv), National Bank of Ukraine's own clock. Responses carry this as &lt;code&gt;available_by_utc&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On weekends and holidays there is no new table. The API returns the most recent one, which is what most tax and accounting rules ask you to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/nbu/latest?source=USD&amp;amp;target=UAH"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-30:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"nbu"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"National Bank of Ukraine"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-30"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"UAH"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;45.0165&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"reference"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"available_by_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"13:25"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"13:15"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"publisher_timezone"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Europe/Kyiv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_local"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"15:15"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Node.js 18+ (built-in &lt;code&gt;fetch&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/nbu/latest?source=USD&amp;amp;target=UAH"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${process.env.ALLRATES_KEY}`&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rate_date&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;derived&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"(derived)"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a daily schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair National Bank of Ukraine does not quote, the API computes it from the official table (inverse or cross via UAH) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Keep it false where a regulation names the source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 1996.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/nbu/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change every business day, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the calendar.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/nbu/availability&lt;/code&gt; lists the dates National Bank of Ukraine actually issued a table, which helps when you need to explain a gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compare with bank boards in Ukraine
&lt;/h2&gt;

&lt;p&gt;The official rate is the reference. What a customer actually pays is the buy or sell price on a commercial bank board, such as PrivatBank, Monobank, PUMB and OTP Bank Ukraine. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/ua/" rel="noopener noreferrer"&gt;Ukraine bank rates page&lt;/a&gt; and in the same API, so you can show the spread next to the official figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a National Bank of Ukraine exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/nbu/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does National Bank of Ukraine cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
45 in the current table: AED, AUD, AZN, BDT, CAD, CHF, CNY, CZK, DKK, DZD, EGP, EUR, GBP, GEL, HKD and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past National Bank of Ukraine rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 1996 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/central-bank-rates-api/nbu/" rel="noopener noreferrer"&gt;National Bank of Ukraine page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/central-bank-rates-api/nbu/" rel="noopener noreferrer"&gt;National Bank of Ukraine exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>javascript</category>
      <category>ukraine</category>
    </item>
    <item>
      <title>National Bank of the Republic of Belarus Exchange Rate Today as JSON: The Official Belarus Table</title>
      <dc:creator>Exchange Rate API</dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:36:12 +0000</pubDate>
      <link>https://dev.to/exchange_rateapi_ee936ad/national-bank-of-the-republic-of-belarus-exchange-rate-today-as-json-the-official-belarus-table-17c1</link>
      <guid>https://dev.to/exchange_rateapi_ee936ad/national-bank-of-the-republic-of-belarus-exchange-rate-today-as-json-the-official-belarus-table-17c1</guid>
      <description>&lt;p&gt;Payments, accounting and compliance code that touches BYN often has to use the official National Bank of the Republic of Belarus rate for a given date, not a live market quote. This post shows what the National Bank of the Republic of Belarus table looks like right now and how to read it from code.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the National Bank of the Republic of Belarus
&lt;/h2&gt;

&lt;p&gt;The National Bank of the Republic of Belarus sets official Belarusian ruble exchange rates each business day — around 30 currencies, published in advance and effective the NEXT calendar day, so Friday's setting already carries Monday's official rate. It is the rate Belarusian accounting and tax legislation references; the bank also serves one of the cleanest open JSON APIs of any central bank.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.nbrb.by/statistics/rates" rel="noopener noreferrer"&gt;Official exchange rates&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-27
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;Quote&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;3.0061&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;3.2983&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;3.9409&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.4508&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.018879&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;3.6066&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;1.9933&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;2.113&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.032515&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AED&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.81854&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SGD&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;2.3298&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AMD&lt;/td&gt;
&lt;td&gt;BYN&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.0083582&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 30 rows across 30 currencies (18 more on the &lt;a href="https://allratestoday.com/central-bank-rates-api/nbrb/" rel="noopener noreferrer"&gt;National Bank of the Republic of Belarus rates page&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  When new rates arrive
&lt;/h2&gt;

&lt;p&gt;Usually in the API by 11:25 UTC. Measured over the last 10 publications (most often at 11:16 UTC). Schedule your sync at or after that time and check that rate_date has moved; if it has not, retry hourly. Local publication time: about 14:16 GMT+3 (Europe/Minsk), National Bank of the Republic of Belarus's own clock. Responses carry this as &lt;code&gt;available_by_utc&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On weekends and holidays there is no new table. The API returns the most recent one, which is what most tax and accounting rules ask you to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the rate from code
&lt;/h2&gt;

&lt;p&gt;You need a free API key (&lt;a href="https://allratestoday.com/register" rel="noopener noreferrer"&gt;register here&lt;/a&gt;, no card). Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/nbrb/latest?source=USD&amp;amp;target=BYN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer art_live_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response, from the table in force on 2026-11-27:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"bank"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"nbrb"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"National Bank of the Republic of Belarus"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-27"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"BYN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;3.0061&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"rate_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"reference"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"age_days"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cadence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"available_by_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"11:25"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_utc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"11:16"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"publisher_timezone"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Europe/Minsk"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"usually_at_local"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"14:16"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"disclaimer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python with &lt;code&gt;requests&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://allratestoday.com/api/v1/central-bank/nbrb/latest?source=USD&amp;amp;target=BYN"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Bearer {os.environ['ALLRATES_KEY']}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate_date"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"derived"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"derived"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things to check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use &lt;code&gt;rate_date&lt;/code&gt;, not today's date.&lt;/strong&gt; The table in force can be days old by design (weekends, holidays, a daily schedule). Store &lt;code&gt;rate_date&lt;/code&gt; next to every converted amount so an auditor can trace it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch &lt;code&gt;derived&lt;/code&gt;.&lt;/strong&gt; If you ask for a pair National Bank of the Republic of Belarus does not quote, the API computes it from the official table (inverse or cross via BYN) and sets &lt;code&gt;"derived": true&lt;/code&gt;. Keep it false where a regulation names the source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History goes back to 2016.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/nbrb/{YYYY-MM-DD}&lt;/code&gt; returns the table for a past date, and &lt;code&gt;/history&lt;/code&gt; returns a series (paid plans). Use it to re-run a period-end revaluation instead of scraping old pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache it.&lt;/strong&gt; The rates change every business day, so one call per update is enough. Polling more often just uses quota.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the calendar.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/nbrb/availability&lt;/code&gt; lists the dates National Bank of the Republic of Belarus actually issued a table, which helps when you need to explain a gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compare with bank boards in Belarus
&lt;/h2&gt;

&lt;p&gt;The official rate is the reference. What a customer actually pays is the buy or sell price on a commercial bank board, such as Belarusbank, Priorbank, Alfa-Bank Belarus and Belagroprombank. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/by/" rel="noopener noreferrer"&gt;Belarus bank rates page&lt;/a&gt; and in the same API, so you can show the spread next to the official figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answers
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a National Bank of the Republic of Belarus exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/nbrb/latest&lt;/code&gt; returns the official table as JSON on every plan, free included.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many currencies does National Bank of the Republic of Belarus cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
30 in the current table: AED, AMD, AUD, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, INR, IRR, ISK, JPY and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past National Bank of the Republic of Belarus rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2016 onward, by date or as a time series, on paid plans. CSV and Excel downloads are on the &lt;a href="https://allratestoday.com/central-bank-rates-api/nbrb/" rel="noopener noreferrer"&gt;National Bank of the Republic of Belarus page&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Live table, history download and full endpoint list: &lt;strong&gt;&lt;a href="https://allratestoday.com/central-bank-rates-api/nbrb/" rel="noopener noreferrer"&gt;National Bank of the Republic of Belarus exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>python</category>
      <category>belarus</category>
    </item>
  </channel>
</rss>
