ZIP+4 API - Database Interface
This API provides for XML or JSON responses at the ZIP+4 or ZIP code levels. The simpliest way to view results is to click on one of the sample links below or paste the link into any browser's URL box. Just pass in an address, or portion of an address, and leave the username as "sample" and password as "password". The response results will be returned in the appropriate format determined by the URL you have used.
This sample query string will allow for unlimited testing with addresses found within the ZIP codes from 90001 to 90999. If you would like to perform testing outside of that range, please call 866-492-8494 or e-mail us to request a free limited-time account. For subscription information, check out our Database Interface pricing.
XML Response API
XML Response API - ZIP+4
Click on the sample code below to see what the ZIP+4 level
result would look like in browser for a ZIP+4 code in Beverly
Hills, California. In a practical application you would
typically read the results into a XMLHttpRequest object.
https://api.zip2tax.com/TaxRate-USA.xml?username=sample&password=password&zip=90210-3303
JSON Response API - ZIP+4
For a JSON response, simply replace .XML with .JSON, as seen below:
https://api.zip2tax.com/TaxRate-USA.json?username=sample&password=password&zip=90210-3303
Sample ZIP Code Range
In the sample ZIP code range (90001 - 90999), the following ZIP codes contain multiple tax rates; which can be used to test the return of multiple rows:
- 90304
- 90601
- 90631