<?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: Ishwar Sirvi</title>
    <description>The latest articles on DEV Community by Ishwar Sirvi (@ishwar_sirvi_f1e4f59759a0).</description>
    <link>https://dev.to/ishwar_sirvi_f1e4f59759a0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4047240%2Fec21d773-020b-4b16-857e-c8067e2152f8.png</url>
      <title>DEV Community: Ishwar Sirvi</title>
      <link>https://dev.to/ishwar_sirvi_f1e4f59759a0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ishwar_sirvi_f1e4f59759a0"/>
    <language>en</language>
    <item>
      <title>I open-sourced 2026 US state sales tax data — free API, MIT licensed</title>
      <dc:creator>Ishwar Sirvi</dc:creator>
      <pubDate>Sat, 25 Jul 2026 19:51:50 +0000</pubDate>
      <link>https://dev.to/ishwar_sirvi_f1e4f59759a0/i-open-sourced-2026-us-state-sales-tax-data-free-api-mit-licensed-4fc</link>
      <guid>https://dev.to/ishwar_sirvi_f1e4f59759a0/i-open-sourced-2026-us-state-sales-tax-data-free-api-mit-licensed-4fc</guid>
      <description>&lt;p&gt;Every year I end up re-Googling "what's California's sales tax this year" or "is grocery taxed in Texas" and landing on a fragmented mix of state revenue PDFs, outdated Wikipedia tables, and SaaS calculators behind signup walls.&lt;/p&gt;

&lt;p&gt;So I compiled all 50 states for 2026 into one clean dataset and put it on GitHub under MIT license: &lt;a href="https://github.com/receiptedit/us-sales-tax-2026" rel="noopener noreferrer"&gt;https://github.com/receiptedit/us-sales-tax-2026&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's also live as a free REST API (no auth, CORS enabled) at: &lt;a href="https://receiptedit.com/api/sales-tax" rel="noopener noreferrer"&gt;https://receiptedit.com/api/sales-tax&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in it
&lt;/h2&gt;

&lt;p&gt;Per state:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Statewide sales tax rate&lt;/li&gt;
&lt;li&gt;Average combined state + local rate&lt;/li&gt;
&lt;li&gt;Lodging taxes (TOT, occupancy, tourism assessment)&lt;/li&gt;
&lt;li&gt;Grocery taxation rule (&lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt;, or &lt;code&gt;"reduced"&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Top 5 cities&lt;/li&gt;
&lt;li&gt;Official nickname&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Total: ~29 KB of JSON or ~6 KB of CSV for all 50 states.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways to consume it
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. REST API (free, no auth)
&lt;/h3&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="nx"&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="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://receiptedit.com/api/sales-tax/california&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&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="nx"&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="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;state&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="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;state_sales_tax_pct&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;% state`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;CORS is enabled. Cache responses for 24+ hours since the data changes once a year.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Direct file download
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-O&lt;/span&gt; https://raw.githubusercontent.com/receiptedit/us-sales-tax-2026/main/us-sales-tax-2026.csv
curl &lt;span class="nt"&gt;-O&lt;/span&gt; https://raw.githubusercontent.com/receiptedit/us-sales-tax-2026/main/us-sales-tax-2026.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Embeddable calculator widget
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;iframe&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://receiptedit.com/api/embed/sales-tax/california"&lt;/span&gt; &lt;span class="na"&gt;width=&lt;/span&gt;&lt;span class="s"&gt;"380"&lt;/span&gt; &lt;span class="na"&gt;height=&lt;/span&gt;&lt;span class="s"&gt;"540"&lt;/span&gt; &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;"border:0;max-width:100%"&lt;/span&gt; &lt;span class="na"&gt;loading=&lt;/span&gt;&lt;span class="s"&gt;"lazy"&lt;/span&gt; &lt;span class="na"&gt;title=&lt;/span&gt;&lt;span class="s"&gt;"California Sales Tax Calculator"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Swap &lt;code&gt;california&lt;/code&gt; for any state slug.&lt;/p&gt;

&lt;h2&gt;
  
  
  A few things that surprised me compiling this
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;5 states&lt;/strong&gt; have zero statewide sales tax: Alaska, Delaware, Montana, New Hampshire, Oregon&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Louisiana and Tennessee&lt;/strong&gt; are tied at the top: ~9.55% average combined rate&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;26 states fully exempt groceries&lt;/strong&gt; from state sales tax&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Florida&lt;/strong&gt; has the highest lodging tax burden at the state level&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  License + use
&lt;/h2&gt;

&lt;p&gt;MIT. Free for any use, commercial or personal. No attribution required.&lt;/p&gt;

&lt;p&gt;The repo: &lt;a href="https://github.com/receiptedit/us-sales-tax-2026" rel="noopener noreferrer"&gt;https://github.com/receiptedit/us-sales-tax-2026&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  About
&lt;/h2&gt;

&lt;p&gt;I maintain &lt;a href="https://receiptedit.com" rel="noopener noreferrer"&gt;ReceiptEdit&lt;/a&gt;, a free receipt generator with 500+ brand templates and built-in US state sales tax calculators. The dataset above is what powers the calculators on the site — open-sourcing the underlying data felt obvious.&lt;/p&gt;

&lt;p&gt;Use it however helps you ship.&lt;/p&gt;

</description>
      <category>api</category>
      <category>data</category>
      <category>github</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
