Lookup phone number data
Changed onReturns information about the provided phone number.
Request
- Base URLhttps://api.telnyx.com/v2
- URLhttps://api.telnyx.com/v2/number_lookup/{phone_number}
- AuthHTTP bearer
Path parameters
The phone number to be looked up
Query parameters
Specifies the type of number lookup to be performed. May be supplied more than once to request several data sources in a single call (for example, ?type=carrier&type=enhanced-caller-name). Each requested type populates the corresponding object in the response.
Response
Successful response
Example response
{
"data": {
"record_type": "number_lookup",
"country_code": "US",
"national_format": "(0312) 945-7420",
"phone_number": "+13129457420",
"carrier": {
"mobile_country_code": "US",
"mobile_network_code": "0866",
"name": "Telnyx/4",
"type": "voip",
"normalized_carrier": "AT&T"
},
"caller_name": {
"caller_name": "TELNYX LLC",
"error_code": "10001"
},
"portability": {
"lrn": "2245701999",
"ported_status": "Y",
"ported_date": "2017-10-20",
"ocn": "073H",
"line_type": "voip",
"spid": "073H",
"spid_carrier_name": "Telnyx/4",
"spid_carrier_type": "3",
"altspid": "073H",
"altspid_carrier_name": "Telnyx/4",
"altspid_carrier_type": "3",
"city": "WAUKEGAN",
"state": "Illinois"
},
"valid_number": true,
"enhanced_caller_name": {
"caller_name": "Jane Doe"
},
"caller_identity": {
"name": "Jane Doe",
"address": {
"street_line_1": "123 Main St",
"city": "Anytown",
"state_code": "CA",
"postal_code": "90210",
"zip4": "1234",
"country_code": "US"
},
"confidence_score": 80
}
}
}Changes
- warning
added the new
fixed lineenum value to the//response property for the response status - warning
added the new
fixed line or mobileenum value to the//response property for the response status - warning
added the new
mobileenum value to the//response property for the response status - warning
added the new
pagerenum value to the//response property for the response status - warning
added the new
personal numberenum value to the//response property for the response status - warning
added the new
premium rateenum value to the//response property for the response status - warning
added the new
shared costenum value to the//response property for the response status - warning
added the new
toll freeenum value to the//response property for the response status - warning
added the new
uanenum value to the//response property for the response status - warning
added the new
unknownenum value to the//response property for the response status - warning
added the new
voicemailenum value to the//response property for the response status - warning
added the new
voipenum value to the//response property for the response status - info
added the new enum value
caller-identityto thequeryrequest parametertype - info
added the new enum value
enhanced-caller-nameto thequeryrequest parametertype - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- warning
- breaking
the
//response's property type changed fromintegertostring, and format fromint32to no format for status - breaking
the
//response's property type changed fromintegertostring, and format fromint32to no format for status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- breaking