Phone Number Lookup
Look up phone 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
No API token scope is required to make a successful request to this endpoint.
Learn more about API scopes.
get/api/relay/rest/lookup/phone_number/{e164_number}
Path parameters
e164_numberstring required
The phone number in E.164 format.
Query parameters
includestring
Further number information to include in the response, some of which are billable. You can specify: carrier (Lookup full carrier information for the number), cnam (Lookup Caller ID information for the number). Separate multiple values with a comma: include=carrier,cnam.
Response
The request has succeeded.
Example response
{
"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",
"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"
}
}