# Sales Tax Lookup API

> Sales Tax Lookup is a US sales tax rate API: send a ZIP or ZIP+4 code or a two-letter state code and get the current combined sales tax rate, city and state back as JSON. Paid plans add the state, county, city and special district rates that make it up, and whether the state taxes at origin or destination.

**Endpoint:** `GET https://api.apiverve.com/v1/salestax`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/salestax

## Overview

Look up sales tax by ZIP code for a checkout, an invoice or a POS setup screen. The Free plan returns the combined tax rate, so you can try this tax rate API free before you pick a plan. A ZIP code returns the estimated combined rate for that area, and a state code returns the statewide base rate. ZIP+4 codes are accepted. Each response names the city and state. Paid plans break the combined rate into its state, county, city and special district parts, add the tax region name, and say whether the state sources in-state sales at origin or destination, which decides whose local rate a seller charges. To apply the rate to an order, the Sales Tax Calculator API returns the tax amount and total in the same call.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/salestax?zip=64082" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `zip` | string | Yes | The zip code for which you want to get the sales tax rate. ZIP+4 (64082-1234) is accepted and priced at its 5-digit ZIP; a ZIP that lost its leading zero (2108) is read as 02108. length 3-10 |

## Response fields

- `state` — string · Two-letter state code for the tax jurisdiction
- `zip` — number · ZIP code that was looked up, as a number (leading zeros are lost, so 00901 reads 901; use zipCode for the 5-digit string)
- `region` — string · The geographic region or jurisdiction name for the tax rate · (premium)
- `rate` — number · Estimated combined sales tax rate for the location
- `county` — number · Estimated county tax rate · (premium)
- `city` — number · Estimated city tax rate · (premium)
- `special` — number · Estimated special district tax rate · (premium)
- `stateRate` — number · State-level tax rate included in the combined rate · (premium)
- `cityName` — string · Primary city name for the ZIP code; null when unknown
- `stateName` — string · Full state name
- `sourcing` — string · How the state sources in-state sales: origin (the seller's location rate), destination (the buyer's), mixed (California: state, county and city at origin, district taxes at destination) or none (no state sales tax). Remote sellers use destination rates everywhere · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "state": "CA",
    "zip": 90210,
    "region": "WEST HOLLYWOOD TOURISM IMPROVEMENT DISTRICT",
    "rate": 0.1025,
    "county": 0.0025,
    "city": 0.0075,
    "special": 0.0325,
    "stateRate": 0.06,
    "cityName": "Beverly Hills",
    "stateName": "California",
    "sourcing": "mixed"
  }
}
```

## Use cases

- **Online Store Checkout** — When a customer enters their shipping ZIP code, e-commerce checkouts apply the matching combined rate to calculate cart totals.
- **Automated Invoice Generation** — B2B billing platforms look up state tax rates to append accurate tax line items to monthly customer invoices.
- **Point of Sale Calculation** — Retail POS systems query store location ZIP codes during setup to store local tax percentages for offline transactions.
- **Subscription Billing Quotes** — SaaS quote generators calculate estimated local taxes before sending multi-state sales proposals to prospective corporate clients.

## SDKs

- **npm** — `npm install @apiverve/salestax` (https://www.npmjs.com/package/@apiverve/salestax)
- **NuGet** — `dotnet add package APIVerve.API.SalesTaxLookup` (https://www.nuget.org/packages/APIVerve.API.SalesTaxLookup)
- **Source** — https://github.com/apiverve/salestax-api

## More

- Full reference: https://docs.apiverve.com/ref/salestax
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
