ScreenlyyIDDocs
Docs › API reference › Phone verification

HLR lookup

The home location register (HLR) is a central database with details of every mobile subscriber on the global mobile network. Use this API to confirm in real time that a mobile number is live and registered, and to find the carrier name, ported number status and current device status.

Note

This API has non-deterministic latency that depends on outside factors. The average is 1 to 5 seconds.

POSThttps://api.screenlyyid.com/api/v1/hlr-lookup

Headers#

NameTypeRequiredDescription
x-api-keystringYesYour ScreenlyyID API key
x-correlation-idstring (uuid)NoCorrelation ID for this customer check

Request body#

FieldTypeRequiredDescription
PhoneNumberstringNo
CountryCodestringNo

Responses#

StatusDescription
200Successful response

Response body (200)#

FieldTypeRequiredDescription
CountrystringNo
IsPortedbooleanYes
CountryCodestringNo
MncstringNo
NumberTypestringNo
InternationalNumberstringNo
OriginNetworkstringNo
RoamingCountryCodestringNo
ImsistringNo
LocalNumberstringNo
MccstringNo
HlrStatusstringNo
HlrValidbooleanYes
CurrentNetworkstringNo
MsinstringNo
IsRoamingbooleanYes
LocationstringNo
MscstringNo
CurrencyCodestringNo
InternationalCallingCodestringNo
NumberValidbooleanYes
PortedNetworkstringNo
IsMobilebooleanYes
CountryCode3stringNo

Code samples#

curl --request POST \
  --url 'https://api.screenlyyid.com/api/v1/hlr-lookup' \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'x-correlation-id: YOUR_CORRELATION_ID' \
  --header 'Content-Type: application/json' \
  --data '{
  "PhoneNumber": "+61412345678",
  "CountryCode": "AU"
}'