Get the FREE Ultimate OpenClaw Setup Guide →
e

Ziptax Sales Tax

Verified

@ericlakich

npx machina-cli add skill @ericlakich/ziptax --openclaw
Files (1)
SKILL.md
2.4 KB

ZipTax Sales Tax Lookup

Setup

Set ZIPTAX_API_KEY env variable with your API key from https://platform.zip.tax (DEVELOP > API Keys). Free tier gives 100 calls/month. Never share your API key publicly.

Quick Start

Address Lookup (most accurate)

curl -s "https://api.zip-tax.com/request/v60?address=200+Spectrum+Center+Drive+Irvine+CA+92618" \
  -H "X-API-KEY: $ZIPTAX_API_KEY"

Postal Code Lookup

curl -s "https://api.zip-tax.com/request/v60?postalcode=92618" \
  -H "X-API-KEY: $ZIPTAX_API_KEY"

Lat/Lng Lookup

curl -s "https://api.zip-tax.com/request/v60?lat=33.6525&lng=-117.7479" \
  -H "X-API-KEY: $ZIPTAX_API_KEY"

Workflow

  1. Determine lookup type: address (best), lat/lng, or postal code
  2. Use v60 (latest) for full jurisdiction breakdowns; use v10 for simple combined rate
  3. Make GET request to https://api.zip-tax.com/request/v60 with auth header
  4. Check metadata.response.code — 100 means success
  5. Read taxSummaries[0].rate for total sales tax rate
  6. Read baseRates array for state/county/city/district breakdown
  7. Check service.taxable and shipping.taxable for service/freight taxability

Key Points

  • Address > Postal code: Address gives one exact result; postal code returns all rates in that ZIP
  • Auth: Header X-API-KEY or query param key
  • Rate format: Decimal (0.0775 = 7.75%)
  • Response code 100 = success; check metadata.response.code
  • Metrics endpoint (/account/metrics) does not count against quota

Bundled Resources

  • scripts/lookup.sh — CLI wrapper for quick lookups. Run with --address, --lat/--lng, --postalcode, or --metrics
  • references/api-reference.md — Full API reference with all endpoints, response schemas, code samples, response codes, and SDK links. Read when you need endpoint details or response field definitions.

Source

git clone https://clawhub.ai/ericlakich/ziptaxView on GitHub

Overview

Look up U.S. sales tax rates via the ZipTax API, including taxability details for services and freight and TICs. It supports address-level, lat/lng, and postal-code lookups across 12,000+ jurisdictions, with jurisdiction-level breakdowns. Useful for integrating tax data into apps and tracking account usage.

How This Skill Works

Make a GET request to https://api.zip-tax.com/request/v60 with your API key in the X-API-KEY header (or as a key query parameter). Use v60 for full jurisdiction breakdowns or v10 for a simple combined rate, then check metadata.response.code (100 means success). Extract the total rate from taxSummaries[0].rate and the breakdown from baseRates; check service.taxable and shipping.taxable for service and freight taxability.

When to Use It

  • When a user asks for the exact sales tax rate for a given U.S. address
  • When calculating tax for orders based on address, ZIP, or coordinates
  • When you need jurisdiction-level tax breakdowns (state, county, city, district)
  • When determining use tax vs sales tax for a transaction
  • When integrating tax data into an application and tracking account usage

Quick Start

  1. Step 1: Determine lookup type (address, lat/lng, or postal code)
  2. Step 2: Call https://api.zip-tax.com/request/v60 with your API key (X-API-KEY) or key param
  3. Step 3: Check metadata.response.code for 100 and read taxSummaries[0].rate and baseRates for breakdown

Best Practices

  • Use address-level lookups for the most precise rate; use postal codes when only area-level rates are acceptable
  • Prefer v60 for full jurisdiction breakdowns; use v10 for a quick, simple rate
  • Authenticate with the X-API-KEY header or pass key as a query parameter and keep keys secure
  • Verify success with metadata.response.code = 100; read taxSummaries[0].rate for total rate and baseRates for breakdown
  • Use the /account/metrics endpoint for usage data (does not count against quota) to monitor consumption

Example Use Cases

  • Estimate the sales tax rate for an address: 200 Spectrum Center Drive, Irvine, CA 92618
  • Fetch all rates for a ZIP code: 92618 to understand state/county/city/district taxes
  • Lookup tax for a warehouse lat/lng: lat=33.6525, lng=-117.7479
  • Determine whether services or freight are taxable in a given jurisdiction
  • Embed ZipTax data in an e-commerce app to auto-calculate taxes during checkout

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers