Loading
Loading
https://api.apifreaks.com/v1.0/vat/rates/ip-address
1. Open the Authorizations dropdown and Verify your API key.
2. Click Run to see the live response here.
$ pip install requestsimport requests
url = "https://api.apifreaks.com/v1.0/vat/rates/ip-address"
payload = {}
headers = {
'X-apiKey': ''
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
Successful responses return an array of VAT objects. Each item in the array contains the following fields for all supported countries.
| Field | Type | Requirement | Description |
|---|---|---|---|
| country | string | Mandatory | Country resolved from the provided or originating IP address. |
| type | string | Mandatory | Tax type for the resolved country, such as vat. |
| currency | string | Mandatory | ISO 4217 currency code for the resolved country. |
| standard_rate | number | Mandatory | Standard VAT rate for the resolved country. |
For EU countries and the UK, the response may also include these additional VAT-specific fields.
| Field | Type | Requirement | Description |
|---|---|---|---|
| reduced_rate | Array<number> | Mandatory | Reduced VAT rates when defined for the country. |
| super_reduced_rate | Array<number> | Optional | Optional super-reduced VAT rates for eligible categories. |
| parking_rate | number | Optional | Optional parking rate when the country defines one. |
| categories | Record<string, number> | Mandatory | Category-wise VAT rates such as books, newspapers, and broadcasting. |