For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
SupportLog InSign Up
GuidesAPI Reference
GuidesAPI Reference
    • Welcome to Ziptax
      • Quickstart
      • How to create an API key
      • How to find a TIC
      • Overview
      • Go SDK
      • Python SDK
      • Node SDK
Logo
SupportLog InSign Up
On this page
  • Project resources
  • Implementation example
  • Full documentation
SDKs

Go SDK

Official Go SDK for the Ziptax API
Was this page helpful?
Previous

Python SDK

Official Python SDK for the Ziptax API
Next
Built with

The Go SDK provides a fast, type-safe client tailored for high-performance backend services. It includes well-structured request/response models, automatic handling of API keys, convenient helpers for tax calculation and jurisdiction lookup, and native support for context.Context. It’s ideal for microservices, concurrent processing pipelines, and any environment where efficiency and reliability are primary concerns.

The Go SDK is currently offered as a Beta product. Please send your comments and suggestions to support@zip.tax.

Project resources

GitHub Repository
Go Package

Implementation example

1

Install

$go get github.com/ziptax/ziptax-go
2

Import

1import (
2 "context"
3 "fmt"
4 "log"
5 "os"
6 "time"
7
8 "github.com/ziptax/ziptax-go"
9)
3

Configure the client

1client, err := ziptax.NewClient(
2 "your-api-key",
3 ziptax.WithTimeout(60*time.Second),
4 ziptax.WithMaxRetries(5),
5 ziptax.WithRetryWait(2*time.Second, 60*time.Second),
6)
4

Get sales tax by address

1ctx := context.Background()
2response, err := client.GetSalesTaxByAddress(
3 ctx,
4 "200 Spectrum Center Drive, Irvine, CA 92618",
5)
6if err != nil {
7 log.Fatal(err)
8}
5

Print the result

1fmt.Printf("Address: %s\n", response.AddressDetail.NormalizedAddress)
2if len(response.TaxSummaries) > 0 {
3 fmt.Printf("Total Tax Rate: %.4f%%\n", response.TaxSummaries[0].Rate*100)
4}

Full documentation

Full reference documentation, including all request options, response types, and helper functions, is available in the GitHub repository and the Go Package documentation.