π‘ Sales Tax API
A free public REST API returning 2026 US sales tax rates for all 50 states. Includes state-level rate, average combined rate (state + local), lodging taxes (TOT, occupancy, tourism), grocery taxation status, and top 5 cities per state.
List all 50 states
curl https://receiptedit.com/api/sales-taxGet one state
curl https://receiptedit.com/api/sales-tax/californiaExample response
{
"state": "California",
"state_code": "CA",
"slug": "california",
"nickname": "Golden State",
"state_sales_tax_pct": 7.25,
"avg_combined_sales_tax_pct": 8.85,
"grocery_tax_status": "exempt",
"lodging_taxes": [
{
"name": "Occupancy Room Tax",
"rate_pct": 6.61
},
{
"name": "Transient Occupancy Tax (TOT)",
"rate_pct": 6.73
},
{
"name": "Tourism Assessment Fee",
"rate_pct": 5.89
}
],
"top_cities": [
"Sacramento",
"Los Angeles",
"San Diego",
"San Francisco",
"San Jose"
],
"source": "https://receiptedit.com/sales-tax/california",
"data_year": 2026,
"last_updated": "2026-05-23",
"attribution": "Data by ReceiptEdit (https://receiptedit.com). Attribution required."
}JavaScript / TypeScript
const res = await fetch('https://receiptedit.com/api/sales-tax/california');
const data = await res.json();
console.log(`California state rate: ${data.state_sales_tax_pct}%`);
console.log(`Combined avg: ${data.avg_combined_sales_tax_pct}%`);Python
import requests
r = requests.get('https://receiptedit.com/api/sales-tax/california')
data = r.json()
print(f"California state rate: {data['state_sales_tax_pct']}%")π§© Embeddable Calculator Widget
Free state-specific sales tax calculator you can embed on any page. Single iframe tag, mobile-responsive, no JS dependencies on your side. Great for tax-prep blogs, SBDC resource pages, freelancer tools, and educational sites.
How to embed (paste 1 line)
<iframe
src="https://receiptedit.com/api/embed/sales-tax/california"
width="380"
height="540"
style="border:0;max-width:100%"
loading="lazy"
title="California Sales Tax Calculator">
</iframe>Live preview
Available states (50)
Swap the state slug in the URL: /api/embed/sales-tax/[slug]
alabamaalaskaarizonaarkansascaliforniacoloradoconnecticutdelawarefloridageorgiahawaiiidahoillinoisindianaiowakansaskentuckylouisianamainemarylandmassachusettsmichiganminnesotamississippimissourimontananebraskanevadanew-hampshirenew-jerseynew-mexiconew-yorknorth-carolinanorth-dakotaohiooklahomaoregonpennsylvaniarhode-islandsouth-carolinasouth-dakotatennesseetexasutahvermontvirginiawashingtonwest-virginiawisconsinwyomingπ License & Attribution
Free for all uses including commercial. The only requirement is attribution: include a visible link back to ReceiptEdit on the page where you use the API or widget. The widget already includes this automatically. For API responses, the attribution field is part of every response β display it or link it.
π€ Use Cases
- Tax-preparation blogs adding state-by-state calculators to articles
- SBDC and small-business resource pages giving practical tax tools to clients
- Freelancer tool sites adding instant tax lookup
- E-commerce platforms doing rough tax estimates at checkout
- Educational sites teaching state tax differences
π Rate Limits & Reliability
No hard rate limit. Please cache responses for 24+ hours (the API sends Cache-Control: max-age=86400 headers). For high-volume use (> 10K requests/day), please reach out at hello@receiptedit.com so we can plan capacity.