How to integrate our LIVE ENSOPHONE solution

History

DateNumber of versionDescription
28/02/20221.0Version 1 - EnsoPhone API launch 
11/05/20221.1Version 1.1 - Country_code param added as mandatory - EnsoPhone

The use of several levels of control and validation of telephone numbers guarantees the new quality of your database by providing additional information:

Authentication

In order to access our services, you must authenticate yourself via a unique secure key (or token) provided by Data Enso. Your token must be integrated into the header under the "api_key" parameter and present for each call to the EnsoPhone API.

Calls to Data Enso Servers

Calls to the EnsoPhone service should be made to the following URL:

				
					https://api.dataenso.com/phone
				
			

Call the ENSOPHONE API

To check a phone number in real time and obtain reliable results, here's the list of fields available for composing your search.

FieldStatusTypeExampleComments
Api_keyRequiredStringyour-api-keyToken generated by Data Enso
numberRequiredString0623470248Check phone number
country_codeRequiredStringFRTo validate a telephone number in its local format, it is imperative to add the 2-digit country code

Although it's more efficient to provide phone numbers in a strictly numeric format (e.g. 441179287870), the DataEnso API is able to handle numbers containing special characters (e.g. +33 (0) 6 23 47 02 48).

API call response

Once you've made the call to our services, here are the fields available in return:

FieldTypeExampleComments
validStringTrueReturns true if the phone number is valid.
numberInteger330624473647Search phone number without special characters
local_formatInteger0624473647PPhone number required in local (national) format
international_formatString+33624473647Phone number required in international format
country_prefixString+33International country code prefix
country_codeStringFR2-letter country code assigned to the phone number you are looking for
country_nameStringFranceFull country name assigned to phone number
rentalStringIle de FranceIf available, returns the location (city, state or county) assigned to the phone number searched.
carrierStringSociete Francaise de Radiotelephone SA (SFR)Name of the operator with which the phone number is registered
line_typeStringmobileType of phone number: mobile, landline, special_services (e.g. Police), toll_free (e.g. hotels) , premium_rate (hotline), satellite, paging (messaging)

Examples

				
					https://api.dataenso.com/phone/?nb=0624473647&country_code=FR&format=2\
-h "api_key:your-token"
				
			

Answer:

				
					{

    “valid”: true,

    “number”: “330624473647”,

    “local_format”: “0624473647”,

    “international_format”: “+33624473647”,

    “country_prefix”: “+33”,

    “country_code”: “FR”,

    “country_name”: “France”,

    “location”: “”,

    “carrier”: “Societe Francaise de Radiotelephone SA (SFR)”,

    “line_type”: “mobile”

}
				
			

Examples of return codes

Type

Message

Description

404

"404_not_found

Non-existent resource

101

"missing_access_key"

API Key not specified

101

"invalid_access_key

Invalid Api Key

210

"no_phone_number_provided"

No phone number in query

211

"non_numeric_phone_number_provided"

No digital phone number.

310

"invalid_country_code"

Invalid 2-letter country code.

To receive our various API Docs by e-mail, please fill in the form below