Look up the details about a phone number with a simple API request.
Voxology’s Phone Number Information Lookup API brings disparate data together in a simple service built to help developers validate phone numbers, lookup carrier information, increase notification deliverability, and reduce fraud.
The Phone Number Information Lookup method can return the following details about a phone number: carrier name, phone number type, caller id name (cnam), rate center, lata, city/state, postal code, and country.
Your request simply needs the phone number and the type of data you want to include: location
, cnam
, and carrier
. In addition to the details available within the include
query parameter, we also support 3rd party integrations which gives you access to additional information from other leading providers, all in one response.
NOTE: Phone Number Information Lookup fees apply – see our pricing page for more details.
curl -X GET \
'https://api.voxolo.gy/v1/PhoneNumberInformation/+19495551212?include=cnam,carrier,location&integrations=trestle_reverse_phone' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
The data below can be returned in your phone number lookups using the include
query parameter.
{
"country_code":"US",
"phone_number":"+13238732860",
"phone_number_formatted":"(323) 873-2860",
"carrier":{
"error":null,
"carrier_name":"BANDWIDTH.COM CLEC LLC - CA",
"phone_number_type":"mobile"
},
"cnam":{
"error":null,
"caller_name":"JOHN DOE"
},
"location":{
"time_zone":"America/Los_Angeles",
"latitude":34.10129344875499,
"longitude":-118.324525950829,
"country":"US",
"rate_center":"LOS ANGELES DA 14:Hollywood",
"city":"Los Angeles:DA 14",
"postal_code":"90028",
"lata":"730",
"region":"CA"
},
"error":null
}
In addition to the location, caller id name, and carrier look ups, Voxology supports integrations with 3rd party providers using the integrations
query parameter.
{
"country_code": "US",
"phone_number": "+13238732860",
"phone_number_formatted": "(323) 873-2860",
"integrations": {
"whitepages_reverse_phone": {
"current_addresses": [
{
"id": "Location.abcd85c1-7ed2-420e-8af1-86ce123456f8",
"location_type": "PostalCode",
"street_line_1": null,
"street_line_2": null,
"city": "Los Angeles",
"postal_code": "90011",
"zip4": null,
"state_code": "CA",
"country_code": "US",
"lat_long": {
"latitude": 34.0071,
"longitude": -118.2585,
"accuracy": "PostalCode"
},
"is_active": null,
"delivery_point": null,
"link_to_person_start_date": null
}
],
"belongs_to": {},
"warnings": {},
"historical_addresses": {},
"carrier": "Bandwidth SMSEnabled",
"associated_people": {},
"is_valid": true,
"line_type": "NonFixedVOIP",
"phone_number": "3238732860",
"alternate_phones": {},
"id": "Phone.12345fef-a2e0-4b08-cfe3-bc7128b54321",
"country_calling_code": "1"
}
},
"error": null
}
You can view a full list of Phone Number Information Lookup options on the API Reference.
This tutorial is a step-by-step guide to looking up the information of a phone number using the Voxology API.
To look up the details about a phone number, first determine which information you want to include: location
, cnam
(caller id name), carrier
, and/or other third party integrations.
You may choose to combine any include
types or integrations
types in your request. In this example, we will show you how to use both.
After you have selected the type of Phone Number Information you want to receive, prepare your REST request. This requires your API Key, the phone number (in E.164 format), and your desired query parameters. See the example below which includes carrier, cnam (caller id name), and Trestle Reverse Phone Lookup.
curl -X GET \
'https://api.voxolo.gy/v1/PhoneNumberInformation/+13238732860?include=cnam,carrier&integrations=trestle_reverse_phone' \
-H 'Cache-Control: no-cache' \
-H 'content-type: application/json' \
-H 'X-API-Key: YOUR_API_KEY'
Once your request is prepared, send it to receive information about the phone number. If your request was a success, you will see a JSON response that looks like the following.
{
"country_code": "US",
"phone_number": "+13238732860",
"phone_number_formatted": "(323) 873-2860",
"carrier": {
"error": null,
"carrier_name": "BANDWIDTH.COM CLEC LLC - CA",
"phone_number_type": "mobile"
},
"cnam": {
"error": null,
"caller_name": "JOHN DOE"
},
"integrations": {
"whitepages_reverse_phone": {
"current_addresses": [
{
"id": "Location.abcd85c1-7ed2-420e-8af1-86ce123456f8",
"location_type": "PostalCode",
"street_line_1": null,
"street_line_2": null,
"city": "Los Angeles",
"postal_code": "90011",
"zip4": null,
"state_code": "CA",
"country_code": "US",
"lat_long": {
"latitude": 34.0071,
"longitude": -118.2585,
"accuracy": "PostalCode"
},
"is_active": null,
"delivery_point": null,
"link_to_person_start_date": null
}
],
"belongs_to": {},
"warnings": {},
"historical_addresses": {},
"carrier": "Bandwidth SMSEnabled",
"associated_people": {},
"is_valid": true,
"line_type": "NonFixedVOIP",
"phone_number": "3238732860",
"alternate_phones": {},
"id": "Phone.12345fef-a2e0-4b08-cfe3-bc7128b54321",
"country_calling_code": "1"
}
}
}
Congratulations! You are now ready to look up information about phone numbers. You can view a full list of Phone Number Information Lookup options on the API Reference.