Get Country-wise Exposure Overview
curl --request GET \
--url https://api.antei.com/v1/exposure/countries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.antei.com/v1/exposure/countries"
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/countries', 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/countries",
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/countries"
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/countries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.antei.com/v1/exposure/countries")
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{
"exposure": [
{
"country_code": "<string>",
"country_name": "<string>",
"exposure_amount": 123,
"jurisdictions": [
{
"jurisdiction_code": "<string>",
"jurisdiction_name": "<string>",
"exposure_amount": 123,
"counties": [
{
"county_name": "<string>",
"exposure_amount": 123
}
]
}
]
}
]
}{
"error": "<string>",
"message": "<string>",
"status": 123
}{
"error": "<string>",
"message": "<string>",
"status": 123
}Exposure
Get Global Tax Exposure
Retrieve a hierarchical breakdown of your tax exposure across countries, states, and counties.
GET
/
v1
/
exposure
/
countries
Get Country-wise Exposure Overview
curl --request GET \
--url https://api.antei.com/v1/exposure/countries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.antei.com/v1/exposure/countries"
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/countries', 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/countries",
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/countries"
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/countries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.antei.com/v1/exposure/countries")
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{
"exposure": [
{
"country_code": "<string>",
"country_name": "<string>",
"exposure_amount": 123,
"jurisdictions": [
{
"jurisdiction_code": "<string>",
"jurisdiction_name": "<string>",
"exposure_amount": 123,
"counties": [
{
"county_name": "<string>",
"exposure_amount": 123
}
]
}
]
}
]
}{
"error": "<string>",
"message": "<string>",
"status": 123
}{
"error": "<string>",
"message": "<string>",
"status": 123
}Use this endpoint to fetch a real-time summary of your tax exposure across all supported countries. The response includes a nested structure showing totals at the country level, with optional breakdowns for states and counties where applicable.
Response Fields
Each item in the response may include:country– ISO 3166-1 alpha-2 country code (e.g.,US,IN,FR)country_name– Full name of the countryexposure_amount– Total exposure in minor units (e.g., cents, paise)currency– ISO 4217 currency code (e.g.,USD,EUR,INR)jurisdictions[](optional) – State or region-level breakdowns:state– State or region codestate_name– Full name of the state or regionexposure_amount– Exposure amount at the state levelcounties[](optional) – County-level exposure within the state:county– Name of the countyexposure_amount– County-level exposure
Notes
- All monetary fields (
exposure_amount) are returned as integers, multiplied by 100 (e.g.,190000= 1,900.00). - Jurisdiction and county fields only appear if exposure exists at those levels.
- Ideal for generating compliance dashboards, audit reports, or jurisdiction-specific financial summaries.
⌘I