Phone Number Lookup
GET/lookup/phone_number/:e164_number
This endpoint allows you to look up validity and formatting information about a number. You can optionally lookup additional information about the number such as carrier and caller ID data.
Permissions
The API token must include the following scopes: Numbers.
Request
Path Parameters
Number in E.164 format.
Query Parameters
carrier
: Lookup full carrier information for the number.cnam
: Lookup Caller ID information for the number.
Possible values: [carrier
, cnam
]
Further number information to include in the response, some of which are billable. You can specify:
Separate multiple values with a comma: include=carrier,cnam
.
Adding include=carrier
to your request will do a live lookup to determine the current carrier information about this number. This includes more accurate information about what type of number as well as location. Only valid for numbers with a +1 country code.
Adding include=cnam
to your request will do a live lookup to determine the current caller ID information about this number. Only valid for numbers with a +1 country code.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
The Country code associated with the number
1
Number in the countries national format.
5551234567
Whether the number supplied is a possible number. For example, in the United States +15551234567 is a possible number, but it is not a valid number.
true
Whether the number supplied is a valid number.
true
The E164 number formatted in national format.
(555) 123-4567
The E164 number formatted in international format.
+1 555-123-4567
The number in E164 format.
+15551234567
The location of the number based on its area code and NPA.
Texas
The ISO3166 alpha 2 country code associated with the number
US
The time zones associated with the number
["America/Austin"]
The type of number based on its area code and NPA. For more detailed record of number type, include carrier details in the request.
Fixed Line or Mobile
carrier
object
Adding include=carrier
to your request will do a live lookup to determine the current carrier information about this number. This includes more accurate information about what type of number as well as location.
The LRN associated with the number
15551234567
The Service Profile Identifier associated with the number
683X
The Operating Company Number associated with the number
12345
The Local Access and Transport Area number associated with the number
99999
The City associated with the number
Aberdeen
The State/Province/Region associated with the number
WA
The Jurisdiction associated with the number
indeterminate
The LEC or Carrier of the number.
Verizon
The type of line the number is. Generally either wireless
or landline
landline
cnam
object
Adding include=cnam
to your request will do a live lookup to determine the current caller ID information about this number.
The caller ID associated with the number.
John Smith
{
"country_code_number": 1,
"national_number": "5551234567",
"possible_number": true,
"valid_number": true,
"national_number_formatted": "(555) 123-4567",
"international_number_formatted": "+1 555-123-4567",
"e164": "+15551234567",
"location": "Texas",
"country_code": "US",
"timezones": [
"America/Austin"
],
"number_type": "Fixed Line or Mobile",
"carrier": {
"lrn": "15551234567",
"spid": "683X",
"ocn": "12345",
"lata": "99999",
"city": "Aberdeen",
"state": "WA",
"jurisdiction": "indeterminate",
"lec": "Verizon",
"linetype": "landline"
},
"cnam": {
"caller_id": "John Smith"
}
}