Number Lookup
Lookup phone number data
Returns information about the provided phone number.
get/number_lookup/{phone_number}
Path parameters
phone_numberstring required
Example:+18665552368
The phone number to be looked up
Query parameters
type'carrier' | 'caller-name'
Specifies the type of number lookup to be performed
Response
Successful response
Example response
{
"data": {
"caller_name": {
"caller_name": "TELNYX LLC",
"error_code": "10001"
},
"carrier": {
"mobile_country_code": "US",
"mobile_network_code": "0866",
"name": "Telnyx/4",
"normalized_carrier": "AT&T",
"type": "voip"
},
"country_code": "US",
"national_format": "(0312) 945-7420",
"phone_number": "+13129457420",
"portability": {
"altspid": "073H",
"altspid_carrier_name": "Telnyx/4",
"altspid_carrier_type": "3",
"city": "WAUKEGAN",
"line_type": "voip",
"lrn": "2245701999",
"ocn": "073H",
"ported_date": "2017-10-20",
"ported_status": "Y",
"spid": "073H",
"spid_carrier_name": "Telnyx/4",
"spid_carrier_type": "3",
"state": "Illinois"
},
"record_type": "number_lookup"
}
}