<?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: John William  </title>
    <description>The latest articles on DEV Community by John William   (@john_william_london).</description>
    <link>https://dev.to/john_william_london</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: John William  </title>
      <link>https://dev.to/john_william_london</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/john_william_london"/>
    <language>en</language>
    <item>
      <title>German Customs Exchange Rates API: The Monthly Official Rates Behind Germany Filings</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:27:36 +0000</pubDate>
      <link>https://dev.to/john_william_london/german-customs-exchange-rates-api-the-monthly-official-rates-behind-germany-filings-114a</link>
      <guid>https://dev.to/john_william_london/german-customs-exchange-rates-api-the-monthly-official-rates-behind-germany-filings-114a</guid>
      <description>&lt;p&gt;Searching for "German Customs exchange rate" gets you a web page. Code needs JSON with a date on it. If you file taxes or customs declarations in Germany, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official German Customs rate for the period.&lt;/p&gt;

&lt;h2&gt;
  
  
  About German Customs
&lt;/h2&gt;

&lt;p&gt;German customs sets the monthly exchange rates used to convert foreign-currency invoice amounts into euro when it determines the customs value of imported goods, which is also the basis for import VAT. The table covers about 30 ECB-quoted currencies at the common EU customs rate and about 90 further currencies.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.zoll.de/DE/Fachthemen/Zoelle/Zollwert/Aktuelle-Wechselkurse/aktuelle-wechselkurse_node.html" rel="noopener noreferrer"&gt;Monthly exchange rates for customs value&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.17012&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.25813&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 118 rows across 118 currencies (106 more on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/zollde/" rel="noopener noreferrer"&gt;German Customs rates page&lt;/a&gt;).&lt;/p&gt;

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

&lt;p&gt;German 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/zollde/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;"zollde"&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;"German Customs (Generalzolldirektion)"&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;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/zollde/latest?source=USD&amp;amp;target=EUR"&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 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 German 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 2004.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/zollde/{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;
  
  
  Compare with bank boards in Germany
&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 Commerzbank, Deutsche Bank, UniCredit HypoVereinsbank and DZ BANK (Volksbanken Raiffeisenbanken). Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/de/" rel="noopener noreferrer"&gt;Germany 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 German Customs exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/zollde/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 German Customs cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
118 in the current table: AED, AFN, ALL, AMD, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BHD, BIF, BMD and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past German Customs rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2004 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/zollde/" rel="noopener noreferrer"&gt;German 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/zollde/" rel="noopener noreferrer"&gt;German Customs exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>go</category>
      <category>germany</category>
    </item>
    <item>
      <title>Swedish Customs Exchange Rates API: The Monthly Official Rates Behind Sweden Filings</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:23:04 +0000</pubDate>
      <link>https://dev.to/john_william_london/swedish-customs-exchange-rates-api-the-monthly-official-rates-behind-sweden-filings-29p9</link>
      <guid>https://dev.to/john_william_london/swedish-customs-exchange-rates-api-the-monthly-official-rates-behind-sweden-filings-29p9</guid>
      <description>&lt;p&gt;Searching for "Swedish Customs exchange rate" gets you a web page. Code needs JSON with a date on it. If you file taxes or customs declarations in Sweden, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official Swedish Customs rate for the period.&lt;/p&gt;

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

&lt;p&gt;Swedish Customs' exchange rates for customs value: the SEK rate per foreign currency in force for each month (EU rule: set from the second-to-last Wednesday of the previous month), used to convert invoice amounts to SEK in Swedish customs declarations.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://tulltaxan.tullverket.se/ite-tariff-public/" rel="noopener noreferrer"&gt;Monthly customs exchange rates&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;USD&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;9.988&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;11.2226&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;13.3769&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;1.4639&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;0.0632&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;12.1099&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;7.0261&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;7.1141&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;0.10144&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AED&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;2.6452&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SAR&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;2.6722&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;SEK&lt;/td&gt;
&lt;td&gt;monthly&lt;/td&gt;
&lt;td&gt;0.609&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

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

&lt;p&gt;The Swedish 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/tullverket/latest?source=USD&amp;amp;target=SEK"&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;"tullverket"&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;"Swedish Customs (Tullverket)"&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;"SEK"&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;9.988&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;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;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/tullverket/latest?source=USD&amp;amp;target=SEK"&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 Swedish Customs does not quote, the API computes it from the official table (inverse or cross via SEK) 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 2005.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/tullverket/{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;
  
  
  Compare with bank boards in Sweden
&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 SEB, Swedbank, BNP Paribas Sweden and Danske Bank. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/se/" rel="noopener noreferrer"&gt;Sweden 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 Swedish Customs exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/tullverket/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 Swedish Customs cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
148 in the current table: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BHD, BIF and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Swedish Customs rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2005 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/tullverket/" rel="noopener noreferrer"&gt;Swedish 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/tullverket/" rel="noopener noreferrer"&gt;Swedish Customs exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>javascript</category>
      <category>sweden</category>
    </item>
    <item>
      <title>Thai Customs Department Exchange Rates API: The Monthly Official Rates Behind Thailand Filings</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:18:33 +0000</pubDate>
      <link>https://dev.to/john_william_london/thai-customs-department-exchange-rates-api-the-monthly-official-rates-behind-thailand-filings-4f5a</link>
      <guid>https://dev.to/john_william_london/thai-customs-department-exchange-rates-api-the-monthly-official-rates-behind-thailand-filings-4f5a</guid>
      <description>&lt;p&gt;If you file taxes or customs declarations in Thailand, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official Thai Customs Department rate for the period. This post shows what the Thai Customs Department table looks like right now and how to read it from code.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Thai Customs Department
&lt;/h2&gt;

&lt;p&gt;The exchange rates the Thai Customs Department notifies for converting the foreign-currency value of goods into baht, with one rate for exports and one for imports per currency. They are the legal basis for computing customs duty and VAT on declarations, and a table normally stays in force for a whole calendar month.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.customs.go.th/content_special.php?link=exch_search.php&amp;amp;lang=en&amp;amp;left_menu=nmenu_esevice_003" rel="noopener noreferrer"&gt;Customs exchange rates (export and import)&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;USD&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;33.3314&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;33.738&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;37.2154&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;37.9697&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;44.1694&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;45.0861&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;4.9489&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;5.0764&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;0.208334&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;0.215444&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;export&lt;/td&gt;
&lt;td&gt;40.2195&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;THB&lt;/td&gt;
&lt;td&gt;import&lt;/td&gt;
&lt;td&gt;40.8717&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 96 rows across 48 currencies (84 more on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/thcustoms/" rel="noopener noreferrer"&gt;Thai Customs Department 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 Thai Customs Department 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/thcustoms/latest?source=USD&amp;amp;target=THB"&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;"thcustoms"&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;"Thai Customs Department"&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;"THB"&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;33.738&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;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/thcustoms/latest?source=USD&amp;amp;target=THB"&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 Thai Customs Department does not quote, the API computes it from the official table (inverse or cross via THB) 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/thcustoms/{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;
  
  
  Compare with bank boards in Thailand
&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 TMBThanachart Bank (ttb), UOB Thailand, CIMB Thai and Bangkok Bank. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/th/" rel="noopener noreferrer"&gt;Thailand 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 Thai Customs Department exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/thcustoms/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 Thai Customs Department cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
48 in the current table: AED, AUD, BDT, BHD, BND, CAD, CHF, CNY, CZK, DKK, EGP, EUR, GBP, HKD, HUF and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Thai Customs Department 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/thcustoms/" rel="noopener noreferrer"&gt;Thai Customs Department 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/thcustoms/" rel="noopener noreferrer"&gt;Thai Customs Department exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>javascript</category>
      <category>thailand</category>
    </item>
    <item>
      <title>SII (Chile tax authority) dólar observado Exchange Rates as JSON: The Official Daily Table for Chile Filings</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:14:01 +0000</pubDate>
      <link>https://dev.to/john_william_london/sii-chile-tax-authority-dolar-observado-exchange-rates-as-json-the-official-daily-table-for-2f1m</link>
      <guid>https://dev.to/john_william_london/sii-chile-tax-authority-dolar-observado-exchange-rates-as-json-the-official-daily-table-for-2f1m</guid>
      <description>&lt;p&gt;SII (Chile tax authority) dólar observado sets official exchange rates every business day. If you file taxes or customs declarations in Chile, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official SII (Chile tax authority) dólar observado rate for the period.&lt;/p&gt;

&lt;h2&gt;
  
  
  About SII (Chile tax authority) dólar observado
&lt;/h2&gt;

&lt;p&gt;The daily dólar observado, in pesos per US dollar, as the Chilean tax authority lists it for converting foreign-currency amounts in tax returns and accounting. The figure is fixed by the Banco Central de Chile from the previous banking day's interbank trades.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.sii.cl/valores_y_fechas/dolar/dolar2026.htm" rel="noopener noreferrer"&gt;Daily dólar observado for tax&lt;/a&gt;.&lt;/p&gt;

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

&lt;p&gt;&lt;em&gt;Note: SII (Chile tax authority) dólar observado has not issued a newer table since 2026-11-18; the API returns this one until it does.&lt;/em&gt;&lt;/p&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;CLP&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;996.68&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;SII (Chile tax authority) dólar observado 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/siicl/latest?source=USD&amp;amp;target=CLP"&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-18:&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;"siicl"&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;"Servicio de Impuestos Internos (Chile)"&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-18"&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;"CLP"&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;996.68&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;12&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;true&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/siicl/latest?source=USD&amp;amp;target=CLP"&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 SII (Chile tax authority) dólar observado does not quote, the API computes it from the official table (inverse or cross via CLP) 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 2013.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/siicl/{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/siicl/availability&lt;/code&gt; lists the dates SII (Chile tax authority) dólar observado 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 SII (Chile tax authority) dólar observado exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/siicl/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 SII (Chile tax authority) dólar observado 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 SII (Chile tax authority) dólar observado rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2013 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/siicl/" rel="noopener noreferrer"&gt;SII (Chile tax authority) dólar observado 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/siicl/" rel="noopener noreferrer"&gt;SII (Chile tax authority) dólar observado exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>python</category>
      <category>chile</category>
    </item>
    <item>
      <title>State Bank of Pakistan Exchange Rate Today as JSON: The Official Pakistan Table</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:09:30 +0000</pubDate>
      <link>https://dev.to/john_william_london/state-bank-of-pakistan-exchange-rate-today-as-json-the-official-pakistan-table-2en1</link>
      <guid>https://dev.to/john_william_london/state-bank-of-pakistan-exchange-rate-today-as-json-the-official-pakistan-table-2en1</guid>
      <description>&lt;p&gt;The State Bank of Pakistan sets official exchange rates every business day. Payments, accounting and compliance code that touches PKR often has to use the official State Bank of Pakistan rate for a given date, not a live market quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the State Bank of Pakistan
&lt;/h2&gt;

&lt;p&gt;The State Bank of Pakistan publishes Mark-to-Market Revaluation Exchange Rates each business evening — the rates at which authorized dealers must revalue their foreign currency positions, compiled from the closing interbank market. Covering 35 currencies against the rupee, they are the official reference for Pakistani accounts, audits and customs valuation.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.sbp.org.pk/economic-data/mark-to-market-revaluation-exchange-rate" rel="noopener noreferrer"&gt;Mark-to-Market Revaluation 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;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;276.423&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;303.111&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;362.708&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;41.5411&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;1.7335&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;330.63&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;184.498&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;194.09&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;2.9756&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AED&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;75.2621&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SAR&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;73.6833&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;PKR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;15.9509&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 35 rows across 35 currencies (23 more on the &lt;a href="https://allratestoday.com/central-bank-rates-api/sbp/" rel="noopener noreferrer"&gt;State Bank of Pakistan 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 20:15 UTC. Measured over the last 9 publications (most often at 18:54 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 23:54 GMT+5 (Asia/Karachi), State Bank of Pakistan'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/sbp/latest?source=USD&amp;amp;target=PKR"&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;"sbp"&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;"State Bank of Pakistan"&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;"PKR"&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;276.4228&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;"20: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;"18:54"&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/Karachi"&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;"23:54"&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/sbp/latest?source=USD&amp;amp;target=PKR"&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 State Bank of Pakistan does not quote, the API computes it from the official table (inverse or cross via PKR) 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/sbp/{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/sbp/availability&lt;/code&gt; lists the dates State Bank of Pakistan 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 Pakistan
&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 National Bank of Pakistan, United Bank Limited, Habib Metropolitan Bank and Bank Makramah. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/pk/" rel="noopener noreferrer"&gt;Pakistan 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 State Bank of Pakistan exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/sbp/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 State Bank of Pakistan cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
35 in the current table: AED, ARS, AUD, BDT, BHD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, HKD, IDR and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past State Bank of Pakistan 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/sbp/" rel="noopener noreferrer"&gt;State Bank of Pakistan 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/sbp/" rel="noopener noreferrer"&gt;State Bank of Pakistan exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>go</category>
      <category>pakistan</category>
    </item>
    <item>
      <title>Romania Customs Exchange Rates API: The Monthly Official Rates Behind Romania Filings</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:04:58 +0000</pubDate>
      <link>https://dev.to/john_william_london/romania-customs-exchange-rates-api-the-monthly-official-rates-behind-romania-filings-3c78</link>
      <guid>https://dev.to/john_william_london/romania-customs-exchange-rates-api-the-monthly-official-rates-behind-romania-filings-3c78</guid>
      <description>&lt;p&gt;Romania customs exchange rates sets official exchange rates once a month. If you file taxes or customs declarations in Romania, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official Romania customs exchange rates rate for the period.&lt;/p&gt;

&lt;h2&gt;
  
  
  About Romania customs exchange rates
&lt;/h2&gt;

&lt;p&gt;The official customs exchange rates for goods cleared in Romania. Under Article 53 of the Union Customs Code and Article 146 of Implementing Regulation (EU) 2015/2447, customs value is converted at the rate published on the second last Wednesday of a month (or the most recent earlier publication), applied for the whole of the following month. For Member States outside the euro area the rate is the national authority's; AllRatesToday applies the rule to the National Bank of Romania's official rates and dates each table the first day of the month it applies to, from May 2016.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32015R2447" rel="noopener noreferrer"&gt;Implementing Regulation (EU) 2015/2447, Article 146&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;USD&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;4.7489&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;5.3297&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;6.3631&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;0.7113&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;0.030032&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;5.7547&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;3.3368&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;3.3794&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;0.0503&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AED&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;1.2929&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;0.2893&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SGD&lt;/td&gt;
&lt;td&gt;RON&lt;/td&gt;
&lt;td&gt;customs&lt;/td&gt;
&lt;td&gt;3.7163&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

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

&lt;p&gt;Romania customs exchange rates 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/rocustoms/latest?source=USD&amp;amp;target=RON"&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;"rocustoms"&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;"Romania customs exchange rates (BNR, UCC Art. 146)"&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;"RON"&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;4.7489&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;"customs"&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;"rule"&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;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/rocustoms/latest?source=USD&amp;amp;target=RON"&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 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 Romania customs exchange rates does not quote, the API computes it from the official table (inverse or cross via RON) 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 2016.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/rocustoms/{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;
  
  
  Compare with bank boards in Romania
&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 BRD - Groupe Société Générale, Banca Comercială Română, ING Bank România and CEC Bank. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/ro/" rel="noopener noreferrer"&gt;Romania 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 Romania customs exchange rates exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/rocustoms/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 Romania customs exchange rates cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
37 in the current table: AED, AUD, BRL, CAD, CHF, CNY, CZK, DKK, EGP, EUR, GBP, HKD, HUF, IDR, ILS and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Romania customs exchange rates 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/tax-authority-rates-api/rocustoms/" rel="noopener noreferrer"&gt;Romania customs exchange rates 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/rocustoms/" rel="noopener noreferrer"&gt;Romania customs exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>php</category>
      <category>romania</category>
    </item>
    <item>
      <title>Revenue Commissioners Exchange Rates API: The Monthly Official Rates Behind Ireland Filings</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:00:27 +0000</pubDate>
      <link>https://dev.to/john_william_london/revenue-commissioners-exchange-rates-api-the-monthly-official-rates-behind-ireland-filings-2i2d</link>
      <guid>https://dev.to/john_william_london/revenue-commissioners-exchange-rates-api-the-monthly-official-rates-behind-ireland-filings-2i2d</guid>
      <description>&lt;p&gt;If you file taxes or customs declarations in Ireland, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official Revenue Commissioners rate for the period. This post shows what the Revenue Commissioners table looks like right now and how to read it from code.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Revenue Commissioners
&lt;/h2&gt;

&lt;p&gt;The monthly rates of exchange Irish Revenue sets for converting foreign-currency amounts into euro when determining customs value, under Article 146 of Commission Implementing Regulation (EU) 2015/2447. Each rate is in force for a full calendar month and is stated as units of foreign currency per 1 euro.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.revenue.ie/en/customs/businesses/importing-exporting/exchange-rates/index.aspx" rel="noopener noreferrer"&gt;Monthly exchange rates for customs and tax&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.1205&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.2075&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 89 rows across 89 currencies (77 more on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/revenueie/" rel="noopener noreferrer"&gt;Revenue Commissioners rates page&lt;/a&gt;).&lt;/p&gt;

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

&lt;p&gt;The Revenue Commissioners 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/revenueie/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;"revenueie"&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;"Revenue Commissioners (Ireland)"&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;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/revenueie/latest?source=USD&amp;amp;target=EUR"&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 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 Revenue Commissioners 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 2023.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/revenueie/{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;
  
  
  Compare with bank boards in Ireland
&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 Ireland and AIB (Allied Irish Banks). Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/ie/" rel="noopener noreferrer"&gt;Ireland 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 Revenue Commissioners exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/revenueie/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 Revenue Commissioners cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
89 in the current table: AED, ALL, ARS, AUD, AZN, BAM, BBD, BDT, BHD, BMD, BND, BRL, BTN, BWP, BZD and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Revenue Commissioners rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2023 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/revenueie/" rel="noopener noreferrer"&gt;Revenue Commissioners 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/revenueie/" rel="noopener noreferrer"&gt;Revenue Commissioners exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>php</category>
      <category>ireland</category>
    </item>
    <item>
      <title>Reserve Bank of Vanuatu Exchange Rates: Official VUV Rates via API</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:55:55 +0000</pubDate>
      <link>https://dev.to/john_william_london/reserve-bank-of-vanuatu-exchange-rates-official-vuv-rates-via-api-83f</link>
      <guid>https://dev.to/john_william_london/reserve-bank-of-vanuatu-exchange-rates-official-vuv-rates-via-api-83f</guid>
      <description>&lt;p&gt;The Reserve Bank of Vanuatu sets official exchange rates every business day. Payments, accounting and compliance code that touches VUV often has to use the official Reserve Bank of Vanuatu rate for a given date, not a live market quote.&lt;/p&gt;

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

&lt;p&gt;The Reserve Bank of Vanuatu issues the vatu (VUV) and publishes official exchange rates each business day against the US dollar, Japanese yen, New Zealand dollar, pound sterling, Australian dollar and euro, quoted as vatu per unit of foreign currency. The bank's online series, and so our history, starts on 26 August 2025.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.rbv.gov.vu/index.php/en/exchange-rates" 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;VUV&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;120.57&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;VUV&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;132.29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;VUV&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;158.06&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;VUV&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.7569&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;VUV&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;80.02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;VUV&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;66&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

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

&lt;p&gt;The Reserve Bank of Vanuatu 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/rbv/latest?source=USD&amp;amp;target=VUV"&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;"rbv"&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 Vanuatu"&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;"VUV"&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;120.57&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;"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/rbv/latest?source=USD&amp;amp;target=VUV"&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 Reserve Bank of Vanuatu does not quote, the API computes it from the official table (inverse or cross via VUV) 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 2025.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/rbv/{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/rbv/availability&lt;/code&gt; lists the dates Reserve Bank of Vanuatu 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 Reserve Bank of Vanuatu exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/rbv/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 Vanuatu cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
6 in the current table: AUD, EUR, GBP, JPY, NZD, USD.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Reserve Bank of Vanuatu rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 2025 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/rbv/" rel="noopener noreferrer"&gt;Reserve Bank of Vanuatu 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/rbv/" rel="noopener noreferrer"&gt;Reserve Bank of Vanuatu exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>python</category>
      <category>vanuatu</category>
    </item>
    <item>
      <title>Qatar Central Bank Exchange Rate Today as JSON: The Official Qatar Table</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:51:24 +0000</pubDate>
      <link>https://dev.to/john_william_london/qatar-central-bank-exchange-rate-today-as-json-the-official-qatar-table-1g9b</link>
      <guid>https://dev.to/john_william_london/qatar-central-bank-exchange-rate-today-as-json-the-official-qatar-table-1g9b</guid>
      <description>&lt;p&gt;The Qatar Central Bank sets official exchange rates every business day. Payments, accounting and compliance code that touches QAR often has to use the official Qatar Central Bank rate for a given date, not a live market quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the Qatar Central Bank
&lt;/h2&gt;

&lt;p&gt;Qatar Central Bank publishes daily riyal exchange rates for the major currencies, with the US dollar fixed at the 3.64 QAR peg maintained since 1980 and the crosses (EUR, GBP, CHF, CAD, AUD, HKD) moving each business day. The published series starts in January 2024. Two stale series the bank still reprints (JPY, CNH — frozen since 2021/2022) are deliberately excluded from this feed.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.qcb.gov.qa/en/exchange-rates" 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;QAR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;3.64&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;QAR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;4.0021&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;QAR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;4.7852&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;QAR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;4.3702&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;QAR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;2.4322&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;QAR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;2.5607&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HKD&lt;/td&gt;
&lt;td&gt;QAR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.4656&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 7 rows across 7 currencies, all shown above.&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 11 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 11:09 GMT+3 (Asia/Qatar), Qatar Central Bank'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/qcb/latest?source=USD&amp;amp;target=QAR"&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;"qcb"&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;"Qatar Central Bank"&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;"QAR"&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.64&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;"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;"Asia/Qatar"&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;"11: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/qcb/latest?source=USD&amp;amp;target=QAR"&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 Qatar Central Bank does not quote, the API computes it from the official table (inverse or cross via QAR) 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/qcb/{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/qcb/availability&lt;/code&gt; lists the dates Qatar Central Bank 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 Qatar
&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 Commercial Bank of Qatar, Qatar Islamic Bank, QIIB (Qatar International Islamic Bank) and Masraf Al Rayan. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/qa/" rel="noopener noreferrer"&gt;Qatar 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 Qatar Central Bank exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/qcb/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 Qatar Central Bank cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
7 in the current table: AUD, CAD, CHF, EUR, GBP, HKD, USD.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Qatar Central Bank 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/qcb/" rel="noopener noreferrer"&gt;Qatar Central Bank 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/qcb/" rel="noopener noreferrer"&gt;Qatar Central Bank exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>php</category>
      <category>qatar</category>
    </item>
    <item>
      <title>New Zealand Customs Service Exchange Rates: Get the Official Fortnightly Table via API</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:46:50 +0000</pubDate>
      <link>https://dev.to/john_william_london/new-zealand-customs-service-exchange-rates-get-the-official-fortnightly-table-via-api-4oe4</link>
      <guid>https://dev.to/john_william_london/new-zealand-customs-service-exchange-rates-get-the-official-fortnightly-table-via-api-4oe4</guid>
      <description>&lt;p&gt;Searching for "New Zealand Customs Service exchange rate" gets you a web page. Code needs JSON with a date on it. If you file taxes or customs declarations in New Zealand, convert foreign-currency invoices, or reconcile foreign-currency ledgers, the rate you need is usually not the market rate but the official New Zealand Customs Service rate for the period.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the New Zealand Customs Service
&lt;/h2&gt;

&lt;p&gt;The rates of exchange New Zealand Customs sets for two-week periods, issued 11 days in advance, to convert foreign-currency values of imported goods into New Zealand dollars for customs value, duty and GST. Customs notes they may differ slightly from trading-bank rates.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.customs.govt.nz/business/import/customs-rates-of-exchange" rel="noopener noreferrer"&gt;Customs rates of exchange (two-week periods)&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The official table dated 2026-11-22
&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;NZD&lt;/td&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.41&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;3.76&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;87.28&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.46&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.78&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.77&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;52.32&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;9.12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;SGD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.71&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NZD&lt;/td&gt;
&lt;td&gt;HKD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;4.34&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 28 rows across 28 currencies (16 more on the &lt;a href="https://allratestoday.com/tax-authority-rates-api/nzcustoms/" rel="noopener noreferrer"&gt;New Zealand Customs Service rates page&lt;/a&gt;).&lt;/p&gt;

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

&lt;p&gt;The New Zealand Customs Service updates fortnightly. 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/nzcustoms/latest?source=USD&amp;amp;target=NZD"&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-22:&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;"nzcustoms"&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;"New Zealand Customs Service"&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-22"&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;"NZD"&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;1.818181818&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;8&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;"fortnightly"&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/nzcustoms/latest?source=USD&amp;amp;target=NZD"&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 fortnightly 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 New Zealand Customs Service does not quote, the API computes it from the official table (inverse or cross via NZD) 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/nzcustoms/{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 fortnightly, 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 New Zealand
&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 ANZ Bank New Zealand, Bank of New Zealand and ASB Bank. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/nz/" rel="noopener noreferrer"&gt;New Zealand 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 New Zealand Customs Service exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/nzcustoms/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 New Zealand Customs Service cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
28 in the current table: AUD, CAD, CHF, CLP, CNY, DKK, EGP, EUR, FJD, GBP, HKD, ILS, INR, JPY, KRW and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past New Zealand Customs Service 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/nzcustoms/" rel="noopener noreferrer"&gt;New Zealand Customs Service 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/nzcustoms/" rel="noopener noreferrer"&gt;New Zealand Customs Service exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>python</category>
      <category>newzealand</category>
    </item>
    <item>
      <title>How to Get Norges Bank Exchange Rates in Code (Official NOK Table)</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:42:18 +0000</pubDate>
      <link>https://dev.to/john_william_london/how-to-get-norges-bank-exchange-rates-in-code-official-nok-table-1idb</link>
      <guid>https://dev.to/john_william_london/how-to-get-norges-bank-exchange-rates-in-code-official-nok-table-1idb</guid>
      <description>&lt;p&gt;Norges Bank sets official exchange rates every business day. Payments, accounting and compliance code that touches NOK often has to use the official Norges Bank rate for a given date, not a live market quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  About Norges Bank
&lt;/h2&gt;

&lt;p&gt;Norges Bank is the central bank of Norway. It publishes daily middle rates for the krone against roughly 40 currencies each business day, based on market rates observed around 14:15 CET.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.norges-bank.no/en/topics/Statistics/exchange_rates/" 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;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;9.7518&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;10.685&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;12.7958&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;1.4655&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;0.061124&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CHF&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;11.6687&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUD&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;6.503&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAD&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;6.8458&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;INR&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;0.10485&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAR&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;0.5625&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SGD&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;7.5609&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HKD&lt;/td&gt;
&lt;td&gt;NOK&lt;/td&gt;
&lt;td&gt;middle&lt;/td&gt;
&lt;td&gt;1.2457&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 37 rows across 37 currencies (25 more on the &lt;a href="https://allratestoday.com/central-bank-rates-api/norges/" rel="noopener noreferrer"&gt;Norges Bank 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 15:15 UTC. Measured over the last 10 publications (most often at 14: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 15:08 CET (Europe/Oslo), Norges Bank'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/norges/latest?source=USD&amp;amp;target=NOK"&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;"norges"&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;"Norges Bank"&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;"NOK"&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;9.7518&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;"middle"&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: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;"14: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;"Europe/Oslo"&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: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;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/norges/latest?source=USD&amp;amp;target=NOK"&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 Norges Bank does not quote, the API computes it from the official table (inverse or cross via NOK) 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/norges/{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/norges/availability&lt;/code&gt; lists the dates Norges Bank 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 Norway
&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 DNB, BNP Paribas Norway, Nordea and SpareBank 1 Sør-Norge. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/no/" rel="noopener noreferrer"&gt;Norway 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 Norges Bank exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/norges/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 Norges Bank cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
37 in the current table: AUD, BDT, BRL, BYN, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, ILS and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past Norges Bank 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/norges/" rel="noopener noreferrer"&gt;Norges Bank 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/norges/" rel="noopener noreferrer"&gt;Norges Bank exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>python</category>
      <category>norway</category>
    </item>
    <item>
      <title>National Bank of North Macedonia Exchange Rates: Official MKD Rates via API</title>
      <dc:creator>John William  </dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:37:43 +0000</pubDate>
      <link>https://dev.to/john_william_london/national-bank-of-north-macedonia-exchange-rates-official-mkd-rates-via-api-1167</link>
      <guid>https://dev.to/john_william_london/national-bank-of-north-macedonia-exchange-rates-official-mkd-rates-via-api-1167</guid>
      <description>&lt;p&gt;The National Bank of North Macedonia sets official exchange rates every business day. Payments, accounting and compliance code that touches MKD often has to use the official National Bank of North Macedonia rate for a given date, not a live market quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the National Bank of North Macedonia
&lt;/h2&gt;

&lt;p&gt;The National Bank of the Republic of North Macedonia publishes a daily exchange rate list — middle, buying and selling rates for 31 currencies against the denar, which has tracked the euro in a tight managed band for two decades. The series runs unbroken since 1993, the denar's first year as a full currency.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.nbrm.mk/kursna_lista-en.nspx" rel="noopener noreferrer"&gt;Exchange rate list&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;MKD&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;55.933&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;56.2141&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;USD&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;56.4952&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;61.3865&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;61.695&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EUR&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;62.0035&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;73.293&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;73.6613&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GBP&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;sell&lt;/td&gt;
&lt;td&gt;74.0296&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CNY&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;8.4403&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;buy&lt;/td&gt;
&lt;td&gt;0.3512&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JPY&lt;/td&gt;
&lt;td&gt;MKD&lt;/td&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;0.353&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table has 51 rows across 31 currencies (39 more on the &lt;a href="https://allratestoday.com/central-bank-rates-api/nbrm/" rel="noopener noreferrer"&gt;National Bank of North Macedonia rates page&lt;/a&gt;).&lt;br&gt;
Rate types in this table: &lt;code&gt;buy&lt;/code&gt;, &lt;code&gt;reference&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 02:20 UTC. Measured over the last 15 publications (most often at 02: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 03:09 CET (Europe/Skopje), National Bank of North Macedonia'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/nbrm/latest?source=EUR&amp;amp;target=MKD"&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;"nbrm"&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 North Macedonia"&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;"EUR"&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;"MKD"&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;61.695&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;"02: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;"02: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;"Europe/Skopje"&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;"03: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;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/nbrm/latest?source=EUR&amp;amp;target=MKD"&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 National Bank of North Macedonia does not quote, the API computes it from the official table (inverse or cross via MKD) 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 1993.&lt;/strong&gt; &lt;code&gt;GET /api/v1/central-bank/nbrm/{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/nbrm/availability&lt;/code&gt; lists the dates National Bank of North Macedonia 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 North Macedonia
&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 Stopanska banka, TTK Banka, NLB Banka Skopje and Komercijalna banka. Those boards are on the &lt;a href="https://allratestoday.com/bank-exchange-rate-api/mk/" rel="noopener noreferrer"&gt;North Macedonia 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 North Macedonia exchange rate API?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. &lt;code&gt;GET /api/v1/central-bank/nbrm/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 North Macedonia cover?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
31 in the current table: AUD, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, ILS, INR, JPY and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get past National Bank of North Macedonia rates?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes, from 1993 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/nbrm/" rel="noopener noreferrer"&gt;National Bank of North Macedonia 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/nbrm/" rel="noopener noreferrer"&gt;National Bank of North Macedonia exchange rates&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>fintech</category>
      <category>go</category>
      <category>northmacedonia</category>
    </item>
  </channel>
</rss>
