social

[USES 11 UNITS PER NAME] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number.

Changed on
get/api2/json/phoneCode/{firstName}/{lastName}/{phoneNumber}

Request

  • Base URL
    https://v2.namsor.com/NamSorAPIv2
  • Auth
    API key in header X-API-KEY

Path parameters

firstNamestring required
lastNamestring required
phoneNumberstring required

Response

A name with country and phone code.

scriptstring
idstring
explanationstring
firstNamestring

The first name (also known as given name)

lastNamestring

The last name (also known as family name, or surname)

internationalPhoneNumberVerifiedstring

The normalized phone number, verified using libphonenumber.

phoneCountryIso2Verifiedstring

The phone ISO2 country code, verified using libphonenumber.

phoneCountryCodeinteger

The phone country code of the phone number, verified using libphonenumber.

phoneCountryCodeAltinteger

The best alternative phone country code of the phone number.

phoneCountryIso2string

The likely country of the phone number.

phoneCountryIso2Altstring

The best alternative country of the phone number.

originCountryIso2string

The likely country of origin of the name.

originCountryIso2Altstring

The best alternative country of origin of the name.

phoneNumberstring

The input phone number.

verifiedboolean

Indicates if the phone number could be positively verified using libphonenumber.

scorenumber double

Higher score is better, but score is not normalized. Use calibratedProbability if available.

countryIso2string

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status