NumVerify is a powerful REST API offering both national and international phone number validation based on the most recent international numbering plan databases. We can use the NumVerify API and the Apipheny add-on to import data from NumVerify directly into Google Sheets. In this tutorial, we’ll show you how to connect the NumVerify REST API to Google Sheets in 5 steps:
To pull data from the NumVerify API to Google Sheets, first install and open the Apipheny Google Sheets add-on.
Apipheny is a no-code API integrator for Google Sheets that you can use to make unlimited API requests, connect to unlimited APIs, save API requests, schedule API requests, and more.
1. Install Apipheny by clicking this link on desktop and then clicking the Install button on the next page
2. After you’ve installed Apipheny, open a Google Sheet and then click on the Add-Ons or Extensions option in the top menu. In the add-ons menu, you should see Apipheny.
Click Apipheny > Import API to open the Apipheny sidebar in your Google Sheets:
After signing up for a NumVerify account, a page containing your API Access Key will be displayed:
Copy and paste your API Access Key to a safe location because you’ll need it to make your API request.
In this section, I’ll show you how to browse the NumVerify API documentation to find an API URL and endpoint that retrieves the specific information you need from the NumVerify API. An endpoint is the last part of the URL that creates a specific query.
If you already know your API URL, or you want to use the same example URL as us, just skip to Step 4.
First, open the NumVerify API documentation page: https://numverify.com/documentation
The menu on the left contains general information about the NumVerify API and a list of API endpoints:
An example endpoint group is National (Local) Numbers, which validates a phone number in a local format. The URL for this endpoint is:
If you use this URL, don’t forget to replace YOUR_ACCESS_KEY with your API access key, PHONE_NUMBER with a phone number, and COUNTRY_CODE with a country code.
When working with national (local) phone numbers, specifying a country code is mandatory.
The documentation for this endpoint contains a description of the endpoint’s purpose, an example request and a number of notes about the accepted parameters:
All API calls to the NumVerify API should be made using http://apilayer.net/api/ base domain. All endpoints and parameters should be appended to this base domain.
Okay, we’re in the home stretch. Now go back to your Google Sheet and make sure that the Apipheny add-on is open on the “Import” tab. With the Import Tab open, enter these details into the add-on:
API URL: In Step 3, we explained how you can find the NumVerify API endpoint that you need. Now copy the complete API URL into the Apipheny add-on, where it says API URL Path, followed by any GET parameters required for your query.
For this example, we are using the Validate phone number endpoint and we will validate a phone number. The corresponding URL for this endpoint is:
If you use this URL, replace YOUR_ACCESS_KEY with the the API access key you got in step 2, and replace PHONE_NUMBER with a real phone number.
Important: When working with international phone numbers, do not specify a country code parameter.
The last step is to click the Run button at the bottom of the Apipheny add-on and then your NumVerify data will be imported into your Google Sheet, like so:
After making a successful request to the NumVerify API, try querying a different NumVerify API endpoint, or try using one of the more advanced features in the Apipheny add-on, such as: