OpenTaxRate
Open-source US sales tax rates resolved by street address rather than ZIP code. It combines quarterly rate and boundary files for the 24 SST member states with a custom adapter per non-SST state using each state DOR's published tables and boundary files, plus Census TIGER geometry. It returns the rate along with the state's own location and jurisdiction codes for the address, with the official source attached. MIT licensed and self-hostable with Postgres + PostGIS; it does not handle exemptions, holidays, or caps.
What it addresses
Existing sales tax APIs are black boxes with rates lacking an attached source and resolve lookups by ZIP code, which is a postal route rather than a tax jurisdiction, so addresses in multi-rate ZIP codes get wrong rates (~45% of sampled addresses).
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
OpenTaxRate
Open-source US sales tax rates resolved by street address rather than ZIP code. It combines quarterly rate and boundary files for the 24 SST member states with a custom adapter per non-SST state using each state DOR's published tables and boundary files, plus Census TIGER geometry. It returns the rate along with the state's own location and jurisdiction codes for the address, with the official source attached. MIT licensed and self-hostable with Postgres + PostGIS; it does not handle exemptions, holidays, or caps.
Problem: Existing sales tax APIs are black boxes with rates lacking an attached source and resolve lookups by ZIP code, which is a postal route rather than a tax jurisdiction, so addresses in multi-rate ZIP codes get wrong rates (~45% of sampled addresses).
Posted by @winxton · Original source ↗
Story title · @winxton · · Source ↗
Show HN: OpenTaxRate – open-source US sales tax rates by street address
Submitted URL · @winxton · · Source ↗
https://github.com/equated-org/opentaxrate
Source text · @winxton · · Source ↗
OpenTaxRate resolves the street address instead: - SST member states (24): the quarterly rate + boundary files, street ranges and ZIP+4, not just the rate tables - Non-SST states: a custom adapter for each state, using its DOR's own published tables and boundary files (TX Comptroller, FL DR-15DSS, ALDOR, IDOR, NY Pub 718, California via CDTFA's lookup, etc)
Source text · @winxton · · Source ↗
Census TIGER for geometry
Source text · @winxton · · Source ↗
It returns the rate, plus the state's own location and jurisdiction codes for the address, resolved to the address, with its official source attached. MIT licensed, you can self-host with Postgres + PostGIS.
Source text · @winxton · · Source ↗
It doesn't handle exemptions, holidays, and caps.
Source text · @winxton · · Source ↗
I built this because I tried many sales tax APIs and the problems were: a) the rates were a black box with no source attached b) lookups resolved by ZIP code.
Source text · @winxton · · Source ↗
did a quick check with several thousand addresses and ~45% of them are in a ZIP code that has more than one sales tax rate
Story title · @winxton · · Source ↗
open-source US sales tax rates by street address
Source text · @winxton · · Source ↗
MIT licensed, you can self-host with Postgres + PostGIS.