Check Exposure for a Specific Jurisdiction
curl --request GET \
--url https://api.antei.com/v1/exposure/check \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.antei.com/v1/exposure/check"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.antei.com/v1/exposure/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.antei.com/v1/exposure/check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.antei.com/v1/exposure/check"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.antei.com/v1/exposure/check")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.antei.com/v1/exposure/check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"country": "US",
"state": "CA",
"county": "Los Angeles",
"currency": "USD",
"exposure_amount": 198000
}{
"error": "<string>",
"message": "<string>",
"status": 123
}Exposure
Check Exposure by Jurisdiction
Retrieve total tax exposure for a specific country, with optional filtering by state and county.
GET
/
v1
/
exposure
/
check
Check Exposure for a Specific Jurisdiction
curl --request GET \
--url https://api.antei.com/v1/exposure/check \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.antei.com/v1/exposure/check"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.antei.com/v1/exposure/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.antei.com/v1/exposure/check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.antei.com/v1/exposure/check"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.antei.com/v1/exposure/check")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.antei.com/v1/exposure/check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"country": "US",
"state": "CA",
"county": "Los Angeles",
"currency": "USD",
"exposure_amount": 198000
}{
"error": "<string>",
"message": "<string>",
"status": 123
}Use this endpoint to fetch tax exposure for a specific country. You can optionally filter by state and county to get a more granular view. This is useful for risk analysis, jurisdictional reporting, or identifying compliance obligations in specific regions.
Required Query Parameters
country(string, required) — ISO 3166-1 alpha-2 country code (e.g.,US,DE,IN)
Optional Query Parameters
state(string, optional) — Two-letter or full state name depending on country conventions (e.g.,CA,Bayern)county(string, optional) — Specific county or district within the state (e.g.,Los Angeles,Cook)
Response Fields
country(string) — Country for which the exposure is returnedstate(string, optional) — State-level filter appliedcounty(string, optional) — County-level filter appliedcurrency(string) — ISO currency code (e.g.,USD,EUR)exposure_amount(integer) — Exposure amount in minor units (e.g., 198000 = $1,980.00)
Notes
- All exposure amounts are returned in minor units (e.g., cents or paise).
- Use this endpoint to build dashboards, exposure summaries, or jurisdiction-level heatmaps.
- Returns 0 if no exposure is recorded for that region.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
ISO 3166-1 alpha-2 country code.
Example:
"US"
State or region code (optional).
Example:
"CA"
County name (optional).
Example:
"Los Angeles"
⌘I