Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/taxlocus-com:taxlocus-com-public-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: TaxLocus REST Public API
version: 1.0.0
description: 'US sales-tax rate lookup, cart calculation, economic-nexus tracking, filing calendars, and taxability rules. Authenticated endpoints require a Bearer API key.
## AI-assisted integration
Building with an AI coding assistant (Claude, Cursor, Copilot, …)? Hand it our agent guide at **https://taxlocus.com/skill.md** and it will wire up the API for you — auth, cart tax, nexus tracking, and taxability — using the correct request shapes. Prefer tools over REST? Connect the **MCP server** at `https://api.taxlocus.com/mcp` to call TaxLocus directly from an MCP-capable agent.
## Notes
All responses are informational and not tax or legal advice; every response includes a `disclaimer`, `as_of`, `corpus_version`, and (where applicable) `citation` for traceability.'
servers:
- url: https://api.taxlocus.com
description: Production
- url: http://localhost:8799
description: Local development
security:
- bearerAuth: []
tags:
- name: Public
description: Unauthenticated, IP-rate-limited.
paths:
/public/lookup:
post:
tags:
- Public
summary: Public rate lookup
description: Unauthenticated sales-tax rate lookup for the top-of-funnel `/lookup` page. Rate-limited by client IP; crossing the daily cap returns `public_quota_exceeded` (429).
security: []
requestBody:
required: true
description: Provide either a lat/lng pair or an address.
content:
application/json:
schema:
type: object
properties:
lat:
type: number
minimum: -90
maximum: 90
lng:
type: number
minimum: -180
maximum: 180
address:
type: object
properties:
line1:
type: string
minLength: 1
city:
type: string
minLength: 1
state:
type: string
minLength: 2
maxLength: 2
postal_code:
type: string
minLength: 5
required:
- line1
- city
- state
- postal_code
additionalProperties: false
product_category:
type: string
minLength: 1
description: Product category. Canonical codes use a dotted taxonomy — e.g. goods.general, food.grocery, food.prepared, clothing.general, software.saas, software.prewritten, medical.rx, medical.otc, publications.books. Common aliases are also accepted (e.g. general, groceries, clothing, saas, prescription_drugs), and retired codes (e.g. medical.prescription_drugs) resolve to their canonical category.
sale_amount:
type: number
minimum: 0
as_of:
type: string
format: date
customer_ref:
type: string
minLength: 1
maxLength: 256
sku:
type: string
minLength: 1
maxLength: 256
b2b:
type: boolean
seller_location:
type: object
properties:
lat:
type: number
minimum: -90
maximum: 90
lng:
type: number
minimum: -180
maximum: 180
address:
type: object
properties:
line1:
type: string
minLength: 1
city:
type: string
minLength: 1
state:
type: string
minLength: 2
maxLength: 2
postal_code:
type: string
minLength: 5
required:
- line1
- city
- state
- postal_code
additionalProperties: false
additionalProperties: false
description: 'Optional. The seller''s place of business for this sale: where the order is received or the goods ship from. When it is in the same state as the delivery address and that state sources in-state sales to the seller (AZ, IL, MO, MS, OH, TX, UT, VA; PA before 2026), the rate is for this location instead. See sourcing_detail on the response.'
entity_id:
type: string
format: uuid
description: 'Optional. A tracked entity of yours. When you send no seller_location and the entity has a stored business location, that location is used as seller_location, and sourcing_detail says so (seller_location_source: "entity"). A seller_location in the request always wins.'
suggest:
type: boolean
description: Optional. When true and the address was not found (`address_status` is not `found`), the response lists up to 3 real nearby addresses in `suggestions`, each with its rate, as possible alternatives (none of them is the address sent). Adds up to about 2 seconds to such a lookup. Without it nothing extra is looked up. Ignored for lat/lng input.
required:
- product_category
additionalProperties: false
responses:
'200':
description: Resolved tax rate for the location.
content:
application/json:
schema:
type: object
additionalProperties: true
properties:
taxability:
type: string
enum:
- taxable
- exempt
- unknown
description: '`unknown` when no rule covers the category in this state or the rule is `needs_research`. The rate fields then read 0 and `computed_tax` is null; that 0 is not an exemption.'
computed_tax:
type:
- number
- 'null'
description: Tax on `sale_amount` in whole cents, rounded per `rounding`. Null when no amount was sent, the item is exempt, or the answer is not collectable (`collectable` false). 0 in a state with no sales tax (a `no_sales_tax` warning).
collectable:
type: boolean
description: 'False when TaxLocus has no settled answer to charge from: unknown or provisional taxability, an address rated at a point in its ZIP that may not have its rate (`zip_centroid`), or a tax holiday on unconfirmed dates. `computed_tax` is then null; the rate fields stay as information.'
unsettled:
type: array
items:
type: string
enum:
- taxability_unknown
- rule_provisional
- zip_centroid
- holiday_provisional
description: 'Why the answer is not collectable; empty when it is. Each value is also a warning code. When any applies, no tax is computed: decide the treatment yourself, or send a street address that geocodes or a lat/lng for `zip_centroid`.'
taxability_confidence:
type:
- string
- 'null'
enum:
- verified
- provisional
- inferred
- null
description: How firmly TaxLocus holds the taxability rule. Null when no rule covers the category here. Anything but `verified` makes the answer not collectable (`rule_provisional`).
rounding:
type: string
enum:
- half_up_per_line
description: 'The rounding rule: each line''s tax is rounded to the cent on its own, on the decimal value, a half cent rounding up; a total is the sum of the rounded lines, not the rounded tax on the invoice total.'
breakdown:
type: array
description: One line per taxing jurisdiction, each with the source of its rate.
items:
type: object
additionalProperties: true
properties:
level:
type: string
name:
type: string
rate:
type: number
includes:
type: string
description: What the line's rate covers when one line stands for several taxes. Illinois city and county lines are every local tax there combined (municipal, county and regional transit), as IDOR publishes them.
citation:
type:
- object
- 'null'
properties:
title:
type: string
url:
type:
- string
- 'null'
document_date:
type:
- string
- 'null'
citation:
type:
- object
- 'null'
properties:
title:
type: string
url:
type:
- string
- 'null'
document_date:
type:
- string
- 'null'
description: Source of the taxability rule. Each rate's source is on its breakdown line.
resolution:
type: string
enum:
- exact
- rooftop
- zip_centroid
description: How the location was resolved.
geocoder:
type: string
enum:
- census
- census_variant
- osm_address
- reviewed
- zip_centroid
- osm_postcode
description: 'Which geocoder step resolved the address. Present only for address input. It refines `resolution` and never changes it, and values may be added, so treat an unknown value as `resolution` says. `census`: the US Census geocoder matched the address (`rooftop`). `census_variant`: the Census geocoder matched on a retry (its 2020 address ranges, a normalised street line, or without the ZIP), the same house number on the same street in the same ZIP (`rooftop`). `osm_address`: OpenStreetMap has the same house number on the same street inside the ZIP (`rooftop`; data © OpenStreetMap contributors, ODbL). `reviewed`: no address source has the address, and a person at TaxLocus reviewed an earlier lookup of this same address (same house number, street and ZIP) and placed it on the map; the rate is computed at that point now (`rooftop`). `zip_centroid`: nothing matched the address, so the point is in the ZIP (`zip_centroid`); `zip_fallback.method` says which point. `osm_postcode`: the same, for a ZIP with no Census ZIP area (one building or PO boxes), centre from OpenStreetMap.'
address_status:
type: string
enum:
- found
- street_found_number_not_found
- not_found
- unverified
description: 'What the address sources (the US Census address ranges and OpenStreetMap) showed about the address sent. Present only for address input. `found`: a source has the address (`resolution` is `rooftop`). `street_found_number_not_found`: OpenStreetMap has the street near the ZIP, but no source has the house number. `not_found`: no source has the address, or the street near the ZIP. `unverified`: a source did not answer in time, so the address could not be checked; try again shortly. Anything but `found` comes with `resolution` `zip_centroid`: the rate is for a point in the ZIP (see `zip_fallback`), and the answer is not collectable unless every part of the ZIP has the same rate (`zip_single_rate`). Values may be added.'
zip_fallback:
type: object
required:
- zip
- method
- single_rate
- location_settled
- options
description: 'Present when `resolution` is `zip_centroid`: the street address did not geocode, so the rate is for a point in its ZIP. Says which point, whether the ZIP has one rate, and the rates found across it. The ZIP''s parts come from the 2020 Census ZIP Code Tabulation Areas and TaxLocus''s jurisdiction boundaries; shares from 2020 Census block counts.'
properties:
zip:
type: string
description: The 5-digit ZIP.
method:
type: string
enum:
- street
- city_area
- largest_area
- zip_centre
description: 'How the point was chosen. `street`: the address sources found the street but not the house number, and the point is on that street, inside the ZIP. `city_area`: the city or town in the address is a taxing jurisdiction covering part of the ZIP, and the point is inside that part. `largest_area`: inside the rate area with the largest share of the ZIP. `zip_centre`: the ZIP''s centre point, because TaxLocus has no rate areas for the ZIP in this state. Values may be added; treat an unknown one as `zip_centre`.'
single_rate:
type: boolean
description: True when every part of the ZIP has the same rate for this category (on a cart, for every line's category).
location_settled:
type: boolean
description: 'True when `single_rate` holds and TaxLocus maps every local sales tax in the state: the ZIP fallback does not make the answer unsettled, and a `zip_single_rate` warning replaces `zip_centroid`.'
weight_basis:
type: string
enum:
- housing
- population
- area
description: 'What `share` measures: 2020 Census housing units; population, for a ZIP with no housing units; land area, for a ZIP with neither. Absent with `zip_centre`.'
options:
type: array
description: The distinct rates inside the ZIP, largest share first. Empty with `zip_centre`.
items:
type: object
required:
- combined_rate
- effective_rate
- share
- places
- rated
properties:
combined_rate:
type: number
effective_rate:
type: number
description: The rate for the request's category there.
share:
type: number
description: Share of the ZIP, 0 to 1, by `weight_basis`.
places:
type: array
items:
type: string
description: The local jurisdictions there. Empty where only the state rate applies.
rated:
type: boolean
description: True for the part of the ZIP this answer's rate is for.
suggestions:
type: array
maxItems: 3
description: 'Present only when the request sent `suggest: true` and `address_status` is not `found`: up to 3 real addresses near the one sent, as possible alternatives. None of them is the address sent, and TaxLocus does not know which one, if any, the customer meant. An address a person at TaxLocus suggested as a likely match for this same address comes first (`source` `reviewed`); then the same street (nearest house number first), then the number sent on a street with a similar name, then nearest the point rated. Each is rated at its own point for the request''s product category (a cart''s first line). Empty when no source answered in time. Show them to the customer as options, not as a correction, and ask which address they meant before relying on a rate. Address data from OpenStreetMap: © OpenStreetMap contributors, ODbL.'
items:
type: object
required:
- address
- lat
- lng
- distance_m
- combined_rate
- places
- source
- same_street
properties:
address:
type: string
description: One line, as the source has it.
lat:
type: number
lng:
type: number
distance_m:
type: integer
description: Metres from the point the answer was rated at (in the ZIP).
combined_rate:
type: number
description: The combined rate at this address.
places:
type: array
items:
type: string
description: The local jurisdictions at this address.
source:
type: string
enum:
- census
- openstreetmap
- reviewed
description: '`census`: a number inside the US Census Bureau''s address ranges for the street. `openstreetmap`: an address OpenStreetMap has (ODbL). `reviewed`: a person at TaxLocus reviewed an earlier lookup of this same address and suggested this one as a likely match. Still a possible alternative, not a confirmed correction.'
same_street:
type: boolean
description: On the street that was sent.
similar_street:
type: boolean
description: The house number sent, on a nearby street whose name is like the one sent ("Oak Park Dr" for "X Park Drive"), where the Census geocoder matches that number. Absent otherwise.
warnings:
type: array
items:
type: string
description: 'Caveats about this answer, each `"<code>: <explanation>"`. The code (before the first `: `) is stable: `zip_centroid` (address did not geocode; the rate is for a point in its ZIP, and the ZIP may have other rates, see `zip_fallback`), `zip_single_rate` (address did not geocode, but every part of its ZIP has this rate and every local sales tax in the state is mapped; informational, the answer is settled), `no_local_jurisdiction` (no local jurisdiction matched in a state with local sales taxes that TaxLocus does not map completely; state rate only. Not raised where every local sales tax in the state is mapped, such as PA, ID, HI and VA), `taxability_unknown` (no settled rule for the category here), `rule_provisional` (the rule is provisional: the state has not settled the question, or TaxLocus has not confirmed it), `holiday_provisional` (tax holiday applied on dates the state has not confirmed), `unmapped_district` (the place has special taxing districts TaxLocus does not map; inside one the tax is higher), `taxability_caveat` (the rule rests on a fact the request does not carry, such as where software is hosted, or on a question the state has not settled), `local_lease_tax` (a city lease tax that is not a sales tax was applied, such as Chicago''s Personal Property Lease Transaction Tax on cloud software), `sourcing_point` (a seller_location in the same state was sent and the in-state sourcing rule is not fully applied), `reduced_rate_area` (the point checked is in a New Jersey Urban Enterprise Zone or Salem County, where a qualifying seller may charge 3.3125% on certain in-person sales; the rate returned is the regular 6.625%, see `reduced_rate_areas`), `seller_conditional_tax` (the rate includes a Wisconsin premier resort area tax, its own `special_district` breakdown line, owed only by sellers classified under the SIC codes in Wisconsin DOR Publication 403; a seller outside those codes subtracts that line''s rate), `no_sales_tax` (the state has no sales tax: Oregon, Montana, New Hampshire or Delaware; `taxability` is `exempt`, the answer is settled and `computed_tax` is 0), `self_collected_city` (the city collects its own sales tax, a Colorado home-rule city; file the city tax with the city). Empty when there are none.'
reduced_rate_areas:
type: array
description: 'Present when the point checked (`seller_location` when sent, otherwise the request''s location) is in an area where a qualifying seller may charge a reduced rate: a New Jersey Urban Enterprise Zone (a seller with a UZ-2 certificate) or Salem County (a seller with a place of business there), on in-person sales of goods at that place. Whether a sale qualifies depends on the seller, how the sale is made and the item, so TaxLocus never applies the reduced rate: `applied` is false and the response''s rates are the regular ones. Only for taxable goods, not services or digital products. Each entry comes with a `reduced_rate_area` warning.'
items:
type: object
properties:
program:
type: string
example: nj_uez
description: '`nj_uez` or `nj_salem_county`.'
name:
type: string
example: Newark Urban Enterprise Zone
municipality:
type:
- string
- 'null'
example: Newark City
reduced_rate:
type: number
example: 0.033125
point:
type: string
enum:
- seller_location
- request_location
applied:
type: boolean
enum:
- false
summary:
type: string
description: Who may charge it and on which sales.
citation:
type:
- object
- 'null'
properties:
title:
type: string
url:
type:
- string
- 'null'
document_date:
type:
- string
- 'null'
description: The rule's source.
boundary_citation:
type:
- object
- 'null'
properties:
title:
type: string
url:
type:
- string
- 'null'
document_date:
type:
- string
- 'null'
description: The boundary's source.
call_id:
type: string
format: uuid
description: 'The id of this answer''s stored workpaper. Keep it with the order: `GET /v1/workpapers/{call_id}` returns the request and response as stored, checked against the hashes written when the call was answered, and `POST /v1/transactions` with `call_id` ties the ledger row to this breakdown. Absent for test keys and on `/public/lookup`, whose calls are not stored. Every audited call also returns it in the `X-TaxLocus-Call-Id` header.'
exception_id:
type: string
format: uuid
description: 'Present when TaxLocus could not fully place the location (a `zip_centroid` or `no_local_jurisdiction` warning). The lookup was recorded as a lookup exception: TaxLocus researches it against official sources, and the account''s Lookup exceptions page and `GET /v1/lookup-exceptions/{exception_id}` show what was found, or that a person will review it. Quote this id to support. The same location gives the same id. `geocode_failed` (422) and `no_jurisdiction` (404) errors carry it in the error body.'
'400':
description: Error response.
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
issues:
type: array
items:
type: object
exception_id:
type: string
format: uuid
description: 'On `geocode_failed` and `no_jurisdiction` from a rate lookup or cart: the lookup exception TaxLocus recorded for this location and will research.'
required:
- error
'429':
description: Error response.
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
issues:
type: array
items:
type: object
exception_id:
type: string
format: uuid
description: 'On `geocode_failed` and `no_jurisdiction` from a rate lookup or cart: the lookup exception TaxLocus recorded for this location and will research.'
required:
- error
'500':
description: Error response.
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
issues:
type: array
items:
type: object
exception_id:
type: string
format: uuid
description: 'On `geocode_failed` and `no_jurisdiction` from a rate lookup or cart: the lookup exception TaxLocus recorded for this location and will research.'
required:
- error
operationId: postPublicLookup
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'TaxLocus API key, sent as `Authorization: Bearer <key>`.'