Look up a phone number
/phone-numbers/lookupReturns detailed information about a phone number including validation, formatting (E.164, national, international), number type, and NANPA geocoding (city, state/province) for North American numbers. The geocoding data is sourced from different database with 240,000+ NPA-NXX entries.
Requires an Enterprise plan (Dedicated Enterprise). Returns 403 if your organization does not have an active enterprise subscription.
Headers
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Query parameters
numberRequiredstringPhone number to look up. Can be E.164 format (+12125551234), national format (2125551234), or with formatting ((212) 555-1234).
Returns
inputoptionalstringThe original input string
validoptionalbooleanWhether the phone number is valid
possibleoptionalbooleanWhether the phone number is a possible number (less strict than valid)
e164optionalstringE.164 formatted number
nationaloptionalstringNational formatted number
internationaloptionalstringInternational formatted number
country_calling_codeoptionalstringCountry calling code without +
countryoptionalstring | nullISO 3166-1 alpha-2 country code
national_numberoptionalstringNational number without country code
typeoptionalstringNumber type detected by libphonenumber
"FIXED_LINE""MOBILE""FIXED_LINE_OR_MOBILE""TOLL_FREE""PREMIUM_RATE""SHARED_COST""VOIP""PERSONAL_NUMBER""PAGER""UAN""VOICEMAIL"locationoptionalobject | nullNANPA geocoding location (only for North American numbers with country code 1)
locationoptionalobject | nullNANPA geocoding location (only for North American numbers with country code 1)
cityoptionalstring | nullCity name
regionoptionalstring | nullState/province abbreviation
region_nameoptionalstring | nullFull state/province name
area_codeoptionalstringNPA area code (first 3 digits of national number, only for NANP numbers)
exchangeoptionalstringNXX exchange code (digits 4-6 of national number, only for NANP numbers)
area_code_regionoptionalstringGeneral region for the area code (most common city, only for NANP numbers)
Response codes
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X GET https://api.blooio.com/v2/api/phone-numbers/lookup?number=%2B12125551234 \ -H "Authorization: Bearer bl_live_..."{ "input": "+12125551234", "valid": false, "possible": false, "e164": "+12125551234", "national": "(212) 555-1234", "international": "+1 212 555 1234", "country_calling_code": "1", "country": "US", "national_number": "2125551234", "type": "FIXED_LINE_OR_MOBILE", "location": { "city": "New York", "region": "NY", "region_name": "New York" }, "area_code": "212", "exchange": "555", "area_code_region": "New York, NY"}