Today, I’ll teach you how to use the free vatcheckapi.com API and the Apipheny API integrator to validate a list of VAT ids.
vatcheckapi.com is a service that validates European Union VAT numbers, ensuring compliance with tax regulations, preventing fraud, and simplifying cross-border transactions by providing accurate, real-time VAT data for businesses.
To validate data in Google Sheets using vatcheckapi.com, follow these steps:
Apipheny is an API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to unlimited API data sources, make unlimited API requests, and more. There is a 30 day free trial included.
1.) Install Apipheny by opening the following link on desktop and then clicking the Install button in the Google Marketplace: https://apipheny.io/install
2.) After you’ve installed Apipheny, open a Google Sheet and then click on the Extensions dropdown in the menu at the top.
In the dropdown list you should see Apipheny. Click Apipheny then click Import API to open the Apipheny sidebar in your Google Sheet.
Tip: you can open a new Google Sheet by entering this URL in your browser:
After logging in to your vatcheckapi.com account, go to API Keys and copy your API key from there:
Copy and paste your API key in a safe location because you’ll need it in the next steps.
Imagine you have the following table, and you want to check if the VAT id is registered or not.
To achieve this, we create and save a new Apipheny function:
https://api.vatcheckapi.com/v2/check?vat_number=ATU88888883as a placeholder for now
apikeyparameter as a header (2) so it can be re-used when you overwrite the URL later
After that, you go into your saved request and copy the request ID:
The second parameter of the APIPHENY function lets you overwrite the request URL. We will use this functionality to inject the email address of the corresponding row.
Now let’s use the saved function with an URL overwrite and some other Google Sheets functions to build the following:
This will fetch the data from vatcheckapi.com and filter down to only the value of the field with the key registration_info.is_registered. You can use any other field specified in the documentation.
If we insert this function into B1 and pull it down, it will fill column B with the validity of the VAT id like so:
Schedule requests for automatic updates
Reference cell values in requests
Stack multiple URLs in a single request
Run all saved requests at once
Crypto API tutorials and more:
Sponsored by Zink Virtual Tip Jar & Rewording.io Paraphrasing Tool
Accept donations on Twitch | Accept donations on Discord | Accept donations on YouTube | Accept donations on Telegram | Accept donations on Twitter | Accept donations on TikTok | Accept donations on Instagram | Accept donations on LinkedIn | Accept donations on Facebook | Accept donations on your Website